index-legacy.33210e3f.js 8.6 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,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 i(e,t,n,i,r,o,a){try{var c=e[o](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){i(a,r,o,c,u,"next",e)}function u(e){i(a,r,o,c,u,"throw",e)}c(void 0)}))}}var o=document.createElement("style");o.innerHTML="._searchBand_1u71i_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._manageCell_1u71i_7{padding:.4rem .34667rem}._manageCell_1u71i_7 ._img_1u71i_10{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._manageCell_1u71i_7 ._name_1u71i_17{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:5.33333rem}._manageCell_1u71i_7 ._phone_1u71i_24{padding-top:.05333rem;font-size:.37333rem;color:#777;line-height:.53333rem}._manageCell_1u71i_7 ._status_1u71i_30{font-size:.42667rem;font-weight:500;color:#333}._manageCell_1u71i_7 ._frozen_1u71i_35{color:#f44541}._codeContainer_1u71i_38 ._codeImg_1u71i_38{width:8.61333rem;height:12.4rem;background:url(./assets/download.44c3f17d.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeContent_1u71i_45{padding-left:.21333rem}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeTitle_1u71i_48{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_1u71i_38 ._codeImg_1u71i_38 ._codeName_1u71i_58{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeQr_1u71i_64{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_1u71i_38 ._codeImg_1u71i_38 ._codeQr_1u71i_64 img{width:100%;height:100%}._codeContainer_1u71i_38 ._codeImg_1u71i_38 ._codeBtnText_1u71i_77{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_1u71i_38 ._codeImg_1u71i_38 ._codeTips_1u71i_87{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#5a6dee;line-height:.48rem;text-align:center}._codeContainer_1u71i_38 ._close_1u71i_95{position:absolute;top:.32rem;right:.4rem}._codeContainer_1u71i_38 ._codeBottom_1u71i_100{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_1u71i_38 ._title_1u71i_107{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_1u71i_38 ._title_1u71i_107 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_1u71i_38 ._shareImg_1u71i_122{width:1.25333rem;height:1.25333rem}._codeContainer_1u71i_38 ._shareText_1u71i_126{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n",document.head.appendChild(o),System.register(["./index-legacy.a7d85227.js","./index-legacy.5a250004.js","./index-legacy.03e232b9.js","./icon_teacher-legacy.07765f44.js","./index-legacy.2542fc2a.js","./index-legacy.adc69fb1.js","./index-legacy.ec5d708a.js","./index-legacy.3fa80a82.js","./index-legacy.a9b41d56.js","./index-legacy.77168e06.js","./index-legacy.4d21a2de.js","./index-legacy.18da61db.js","./index-legacy.f31a7c63.js","./index-legacy.b2fdf445.js","./use-tab-status-legacy.4b173f34.js"],(function(e){"use strict";var n,i,o,a,c,u,s,d,_,l,f,m,g,h,p,b,w,y,v,C;return{setters:[function(e){n=e.O},function(e){i=e.O},function(e){o=e.O},function(e){a=e.i},function(e){c=e.d,u=e.ag,s=e.r,d=e.$,_=e.c,l=e.a5,f=e.aj,m=e.ak,g=e.m,h=e.f},function(e){p=e.O},function(e){b=e.m},function(e){w=e.O},function(e){y=e.L},function(e){v=e.C},function(e){C=e.I},function(){},function(){},function(){},function(){}],execute:function(){var x={searchBand:"_searchBand_1u71i_1",manageCell:"_manageCell_1u71i_7",img:"_img_1u71i_10",name:"_name_1u71i_17",phone:"_phone_1u71i_24",status:"_status_1u71i_30",frozen:"_frozen_1u71i_35",codeContainer:"_codeContainer_1u71i_38",codeImg:"_codeImg_1u71i_38",codeContent:"_codeContent_1u71i_45",codeTitle:"_codeTitle_1u71i_48",codeName:"_codeName_1u71i_58",codeQr:"_codeQr_1u71i_64",codeBtnText:"_codeBtnText_1u71i_77",codeTips:"_codeTips_1u71i_87",close:"_close_1u71i_95",codeBottom:"_codeBottom_1u71i_100",title:"_title_1u71i_107",shareImg:"_shareImg_1u71i_122",shareText:"_shareText_1u71i_126"};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"}]}),S=function(){var e=r(regeneratorRuntime.mark((function e(){var n,i;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,g.post("/api-school/schoolStaff/page",{data:t(t({},c.params),{},{schoolId:h.user.data.school.id})});case 6:if(n=e.sent,c.listState.loading=!1,c.listState.refreshing=!1,i=n.data||{},!(c.list.length>0&&1===i.current)){e.next=12;break}return e.abrupt("return");case 12:c.list=c.list.concat(i.rows||[]),c.listState.finished=i.current>=i.pages,c.params.page=i.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)}}(),j=function(){c.params.page=1,c.list=[],c.listState.dataShow=!0,c.listState.loading=!1,c.listState.finished=!1,S()};return d(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S();case 1:case"end":return e.stop()}}),e)})))),function(){var t;return _("div",{class:!c.listState.dataShow&&"emptyRootContainer"},[_(o,{position:"top",onGetHeight:function(e){c.listState.height=e}},{default:function(){return[_(n,{border:!1},{right:function(){return _(l,{name:"plus",size:19,onClick:function(){e.push({path:"save-share-image",query:{type:"manage"}})}},null)}}),_(i,{placeholder:"请输入管理老师姓名",onSearch:function(e){console.log(e),c.params.keyword=e,j()}},{left:function(){return _("div",{class:["searchItem-left",c.oPopover?"searchItem-active":""],onClick:function(){return c.oPopover=!0}},[_("span",null,[c.statusText])])}})]}}),c.listState.dataShow?_(p,{modelValue:c.listState.refreshing,"onUpdate:modelValue":function(e){return c.listState.refreshing=e},onRefresh:j,style:{minHeight:"calc(100vh - ".concat(c.listState.height,"px)")}},{default:function(){return[_(y,{finished:c.listState.finished,finishedText:" ",class:[x.liveList],onLoad:S,style:{paddingTop:"12px"},immediateCheck:!1},(n=t=c.list.map((function(t){return _(v,{center:!0,isLink:!0,class:x.manageCell,onClick:function(){return function(t){e.push({path:"/manage-teacher-detail",query:{id:t.id}})}(t)}},{icon:function(){return _(C,{class:x.img,src:t.avatar?t.avatar:a},null)},title:function(){return _("div",{class:x.content},[_("p",{class:[x.name,"van-ellipsis"]},[t.nickname]),_("p",{class:x.phone},[t.phone])])},value:function(){return _("span",{class:[x.status,"LOCKED"===t.status?x.frozen:""]},[b[t.status]])}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!m(n)?t:{default:function(){return[t]}}))];var n}}):_(f,{btnStatus:!1,tips:"暂无管理老师"},null),_(w,{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,j()}},null)])}}}))}}}))}();