index-legacy.cd0b93a3.js 8.6 KB

12
  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.48c8d62c.js","./index-legacy.f3037807.js","./index-legacy.87ef53c1.js","./index-legacy.8cf5f94f.js","./icon_teacher-legacy.07765f44.js","./index-legacy.b00f6427.js","./index-legacy.8895675d.js","./index-legacy.3373b1d3.js","./index-legacy.04f465c8.js","./index-legacy.087e0425.js","./index-legacy.0e0de364.js","./index-legacy.ac553194.js","./index-legacy.55fe5b03.js","./index-legacy.b7e8815a.js","./use-tab-status-legacy.6949b1de.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.d,i=e.ag,o=e.r,a=e.$,c=e.c,u=e.a5,s=e.ai,_=e.ak,d=e.m,l=e.f},function(e){f=e.O},function(e){m=e.O},function(e){g=e.O},function(e){h=e.i},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",n({name:"companion-teacher",setup:function(){var e=i(),n=o({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 i,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!n.isClick){e.next=3;break}return e.abrupt("return");case 3:return n.isClick=!0,e.next=6,d.post("/api-school/schoolStaff/page",{data:t(t({},n.params),{},{schoolId:l.user.data.school.id})});case 6:if(i=e.sent,n.listState.loading=!1,n.listState.refreshing=!1,r=i.data||{},!(n.list.length>0&&1===r.current)){e.next=12;break}return e.abrupt("return");case 12:n.list=n.list.concat(r.rows||[]),n.listState.finished=r.current>=r.pages,n.params.page=r.current+1,n.listState.dataShow=n.list.length>0,n.isClick=!1,e.next=25;break;case 19:e.prev=19,e.t0=e.catch(0),n.listState.dataShow=!1,n.listState.finished=!0,n.listState.refreshing=!1,n.isClick=!1;case 25:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),j=function(){n.params.page=1,n.list=[],n.listState.dataShow=!0,n.listState.loading=!1,n.listState.finished=!1,S()};return a(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 c("div",{class:!n.listState.dataShow&&"emptyRootContainer"},[c(g,{position:"top",onGetHeight:function(e){n.listState.height=e}},{default:function(){return[c(f,{border:!1},{right:function(){return c(u,{name:"plus",size:19,onClick:function(){e.push({path:"save-share-image",query:{type:"manage"}})}},null)}}),c(m,{placeholder:"请输入管理老师姓名",onSearch:function(e){console.log(e),n.params.keyword=e,j()}},{left:function(){return c("div",{class:["searchItem-left",n.oPopover?"searchItem-active":""],onClick:function(){return n.oPopover=!0}},[c("span",null,[n.statusText])])}})]}}),n.listState.dataShow?c(p,{modelValue:n.listState.refreshing,"onUpdate:modelValue":function(e){return n.listState.refreshing=e},onRefresh:j,style:{minHeight:"calc(100vh - ".concat(n.listState.height,"px)")}},{default:function(){return[c(y,{finished:n.listState.finished,finishedText:" ",class:[x.liveList],onLoad:S,style:{paddingTop:"12px"},immediateCheck:!1},(i=t=n.list.map((function(t){return c(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(C,{class:x.img,src:t.avatar?t.avatar:h},null)},title:function(){return c("div",{class:x.content},[c("p",{class:[x.name,"van-ellipsis"]},[t.nickname]),c("p",{class:x.phone},[t.phone])])},value:function(){return c("span",{class:[x.status,"LOCKED"===t.status?x.frozen:""]},[b[t.status]])}})})),"function"==typeof i||"[object Object]"===Object.prototype.toString.call(i)&&!_(i)?t:{default:function(){return[t]}}))];var i}}):c(s,{btnStatus:!1,tips:"暂无管理老师"},null),c(w,{show:n.oPopover,"onUpdate:show":function(e){return n.oPopover=e},actions:n.actions,onSelect:function(e){n.actions.forEach((function(e){e.selected=!1})),e.selected=!0,n.statusText=e.name,n.params.status="ALL"===e.id?null:e.id,n.oPopover=!1,j()}},null)])}}}))}}}))}();