index-legacy.3d8891fb.js 8.6 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,i,c,u,"throw",e)}c(void 0)}))}}var i=document.createElement("style");i.innerHTML="._searchBand_qubbg_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._manageCell_qubbg_7{padding:.4rem .34667rem}._manageCell_qubbg_7 ._img_qubbg_10{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._manageCell_qubbg_7 ._name_qubbg_17{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:5.33333rem}._manageCell_qubbg_7 ._phone_qubbg_24{font-size:.37333rem;color:#777;line-height:.53333rem}._manageCell_qubbg_7 ._status_qubbg_29{font-size:.42667rem;font-weight:500;color:#333}._manageCell_qubbg_7 ._frozen_qubbg_34{color:#f44541}._codeContainer_qubbg_37 ._codeImg_qubbg_37{width:8.61333rem;height:12.4rem;background:url(./assets/download.44c3f17d.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_qubbg_37 ._codeImg_qubbg_37 ._codeContent_qubbg_44{padding-left:.21333rem}._codeContainer_qubbg_37 ._codeImg_qubbg_37 ._codeTitle_qubbg_47{text-align:center;padding-top:.34667rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a;max-width:90%;padding-left:5%}._codeContainer_qubbg_37 ._codeImg_qubbg_37 ._codeName_qubbg_57{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_qubbg_37 ._codeImg_qubbg_37 ._codeQr_qubbg_63{margin:.61333rem auto 0;width:6.16rem;height:6.16rem;padding:.26667rem;background:linear-gradient(180deg,#ffffff 0%,#ffffff 100%);border-radius:.29333rem;overflow:hidden}._codeContainer_qubbg_37 ._codeImg_qubbg_37 ._codeQr_qubbg_63 img{width:100%;height:100%}._codeContainer_qubbg_37 ._codeImg_qubbg_37 ._codeBtnText_qubbg_76{margin:.4rem auto 0;display:inline-block;background:linear-gradient(133deg,#bb9dff 0%,#6d82ff 100%);border-radius:.48rem;padding:.16rem .42667rem;font-size:.42667rem;font-weight:600;color:#fff}._codeContainer_qubbg_37 ._codeImg_qubbg_37 ._codeTips_qubbg_86{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#5a6dee;line-height:.48rem;text-align:center}._codeContainer_qubbg_37 ._close_qubbg_94{position:absolute;top:.32rem;right:.4rem}._codeContainer_qubbg_37 ._codeBottom_qubbg_99{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_qubbg_37 ._title_qubbg_106{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_qubbg_37 ._title_qubbg_106 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_qubbg_37 ._shareImg_qubbg_121{width:1.25333rem;height:1.25333rem}._codeContainer_qubbg_37 ._shareText_qubbg_125{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n",document.head.appendChild(i),System.register(["./index-legacy.81fd4e6f.js","./index-legacy.c7f919fb.js","./index-legacy.00d82922.js","./icon_teacher-legacy.07765f44.js","./index-legacy.a9944503.js","./index-legacy.0e551442.js","./index-legacy.5ee1edf1.js","./index-legacy.b9c4417f.js","./index-legacy.8271e59c.js","./index-legacy.16d013c6.js","./index-legacy.aa24f77a.js","./index-legacy.819d05e3.js","./index-legacy.0256f666.js","./index-legacy.57a461ad.js","./use-tab-status-legacy.7b80393c.js"],(function(e){"use strict";var n,r,i,a,c,u,s,g,_,d,l,b,f,m,h,p,q,w,y,v;return{setters:[function(e){n=e.O},function(e){r=e.O},function(e){i=e.O},function(e){a=e.i},function(e){c=e.d,u=e.ag,s=e.r,g=e.$,_=e.c,d=e.a5,l=e.ai,b=e.aj,f=e.m,m=e.f},function(e){h=e.O},function(e){p=e.m},function(e){q=e.O},function(e){w=e.L},function(e){y=e.C},function(e){v=e.I},function(){},function(){},function(){},function(){}],execute:function(){var C={searchBand:"_searchBand_qubbg_1",manageCell:"_manageCell_qubbg_7",img:"_img_qubbg_10",name:"_name_qubbg_17",phone:"_phone_qubbg_24",status:"_status_qubbg_29",frozen:"_frozen_qubbg_34",codeContainer:"_codeContainer_qubbg_37",codeImg:"_codeImg_qubbg_37",codeContent:"_codeContent_qubbg_44",codeTitle:"_codeTitle_qubbg_47",codeName:"_codeName_qubbg_57",codeQr:"_codeQr_qubbg_63",codeBtnText:"_codeBtnText_qubbg_76",codeTips:"_codeTips_qubbg_86",close:"_close_qubbg_94",codeBottom:"_codeBottom_qubbg_99",title:"_title_qubbg_106",shareImg:"_shareImg_qubbg_121",shareText:"_shareText_qubbg_125"};e("default",c({name:"companion-teacher",setup:function(){var e=u(),c=s({oPopover:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},statusText:"状态",params:{keyword:null,status:null,page:1,rows:20},isClick:!1,actions:[{name:"全部",id:"ALL",selected:!0},{name:"冻结",id:"LOCKED"},{name:"正常",id:"ACTIVATION"}]}),x=function(){var e=o(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!c.isClick){e.next=3;break}return e.abrupt("return");case 3:return c.isClick=!0,e.next=6,f.post("/api-school/schoolStaff/page",{data:t(t({},c.params),{},{schoolId:m.user.data.school.id})});case 6:if(n=e.sent,c.listState.loading=!1,c.listState.refreshing=!1,r=n.data||{},!(c.list.length>0&&1===r.current)){e.next=12;break}return e.abrupt("return");case 12:c.list=c.list.concat(r.rows||[]),c.listState.finished=r.current>=r.pages,c.params.page=r.current+1,c.listState.dataShow=c.list.length>0,c.isClick=!1,e.next=25;break;case 19:e.prev=19,e.t0=e.catch(0),c.listState.dataShow=!1,c.listState.finished=!0,c.listState.refreshing=!1,c.isClick=!1;case 25:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),S=function(){c.params.page=1,c.list=[],c.listState.dataShow=!0,c.listState.loading=!1,c.listState.finished=!1,x()};return g(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x();case 1:case"end":return e.stop()}}),e)})))),function(){var t;return _("div",{class:!c.listState.dataShow&&"emptyRootContainer"},[_(i,{position:"top",onGetHeight:function(e){c.listState.height=e}},{default:function(){return[_(n,{border:!1},{right:function(){return _(d,{name:"plus",size:19,onClick:function(){e.push({path:"save-share-image",query:{type:"manage"}})}},null)}}),_(r,{placeholder:"请输入管理老师姓名",onSearch:function(e){console.log(e),c.params.keyword=e,S()}},{left:function(){return _("div",{class:["searchItem-left",c.oPopover?"searchItem-active":""],onClick:function(){return c.oPopover=!0}},[_("span",null,[c.statusText])])}})]}}),c.listState.dataShow?_(h,{modelValue:c.listState.refreshing,"onUpdate:modelValue":function(e){return c.listState.refreshing=e},onRefresh:S,style:{minHeight:"calc(100vh - ".concat(c.listState.height,"px)")}},{default:function(){return[_(w,{finished:c.listState.finished,finishedText:" ",class:[C.liveList],onLoad:x,style:{paddingTop:"12px"},immediateCheck:!1},(n=t=c.list.map((function(t){return _(y,{center:!0,isLink:!0,class:C.manageCell,onClick:function(){return function(t){e.push({path:"/manage-teacher-detail",query:{id:t.id}})}(t)}},{icon:function(){return _(v,{class:C.img,src:t.avatar?t.avatar:a},null)},title:function(){return _("div",{class:C.content},[_("p",{class:[C.name,"van-ellipsis"]},[t.nickname]),_("p",{class:C.phone},[t.phone])])},value:function(){return _("span",{class:[C.status,"LOCKED"===t.status?C.frozen:""]},[p[t.status]])}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!b(n)?t:{default:function(){return[t]}}))];var n}}):_(l,{btnStatus:!1,tips:"暂无管理老师"},null),_(q,{show:c.oPopover,"onUpdate:show":function(e){return c.oPopover=e},actions:c.actions,onSelect:function(e){c.actions.forEach((function(e){e.selected=!1})),e.selected=!0,c.statusText=e.name,c.params.status="ALL"===e.id?null:e.id,c.oPopover=!1,S()}},null)])}}}))}}}))}();