index-legacy.eb8c268d.js 9.8 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%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 o(e,t,n,o,r,a,i){try{var c=e[a](i),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function c(e){o(i,r,a,c,s,"next",e)}function s(e){o(i,r,a,c,s,"throw",e)}c(void 0)}))}}var a=document.createElement("style");a.innerHTML="._searchBand_xq215_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._manageCell_xq215_7{padding:.4rem .34667rem}._manageCell_xq215_7 ._img_xq215_10{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._manageCell_xq215_7 ._name_xq215_17{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._manageCell_xq215_7 ._phone_xq215_23{font-size:.37333rem;color:#777;line-height:.53333rem}._manageCell_xq215_7 ._status_xq215_28{font-size:.42667rem;font-weight:500;color:#333}._manageCell_xq215_7 ._frozen_xq215_33{color:#f44541}._codeContainer_xq215_36 ._codeImg_xq215_36{width:8.61333rem;height:12.4rem;background:url(./assets/download.44c3f17d.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_xq215_36 ._codeImg_xq215_36 ._codeContent_xq215_43{padding-left:.21333rem}._codeContainer_xq215_36 ._codeImg_xq215_36 ._codeTitle_xq215_46{text-align:center;padding-top:.34667rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a}._codeContainer_xq215_36 ._codeImg_xq215_36 ._codeName_xq215_54{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_xq215_36 ._codeImg_xq215_36 ._codeQr_xq215_60{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_xq215_36 ._codeImg_xq215_36 ._codeQr_xq215_60 img{width:100%;height:100%}._codeContainer_xq215_36 ._codeImg_xq215_36 ._codeBtnText_xq215_73{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_xq215_36 ._codeImg_xq215_36 ._codeTips_xq215_83{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#5a6dee;line-height:.48rem;text-align:center}._codeContainer_xq215_36 ._close_xq215_91{position:absolute;top:.32rem;right:.4rem}._codeContainer_xq215_36 ._codeBottom_xq215_96{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_xq215_36 ._title_xq215_103{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_xq215_36 ._title_xq215_103 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_xq215_36 ._shareImg_xq215_118{width:1.25333rem;height:1.25333rem}._codeContainer_xq215_36 ._shareText_xq215_122{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n",document.head.appendChild(a),System.register(["./index-legacy.c52b7cbb.js","./index-legacy.a7e7ca32.js","./index-legacy.fb25da3a.js","./index-legacy.4e7f0184.js","./icon_teacher-legacy.42ba77b1.js","./index-legacy.2ae28dc5.js","./index-legacy.ca3a829d.js","./index-legacy.9fb17640.js","./index-legacy.51e5b886.js","./index-legacy.d61b8a1f.js","./index-legacy.f657fbb5.js","./index-legacy.d11fa8f4.js","./index-legacy.261ae52e.js","./use-tab-status-legacy.17f6d490.js"],(function(e){"use strict";var n,o,a,i,c,s,l,d,u,_,f,m,g,h,p,x,q,b,w,v,y,C,j,S,k,O,I;return{setters:[function(e){n=e.O},function(e){o=e.O,a=e.i,i=e.a},function(e){c=e.O},function(e){s=e.O},function(e){l=e.i},function(e){d=e.d,u=e.aQ,_=e.R,f=e.X,m=e.s,g=e.k,h=e.a2,p=e.l,x=e.be,q=e.P,b=e.F,w=e.ad,v=e.g},function(e){y=e.a},function(e){C=e.L},function(e){j=e.C},function(e){S=e.I},function(e){k=e.G,O=e.a},function(e){I=e.A},function(){},function(){}],execute:function(){var T={searchBand:"_searchBand_xq215_1",manageCell:"_manageCell_xq215_7",img:"_img_xq215_10",name:"_name_xq215_17",phone:"_phone_xq215_23",status:"_status_xq215_28",frozen:"_frozen_xq215_33",codeContainer:"_codeContainer_xq215_36",codeImg:"_codeImg_xq215_36",codeContent:"_codeContent_xq215_43",codeTitle:"_codeTitle_xq215_46",codeName:"_codeName_xq215_54",codeQr:"_codeQr_xq215_60",codeBtnText:"_codeBtnText_xq215_73",codeTips:"_codeTips_xq215_83",close:"_close_xq215_91",codeBottom:"_codeBottom_xq215_96",title:"_title_xq215_103",shareImg:"_shareImg_xq215_118",shareText:"_shareText_xq215_122"};e("default",d({name:"companion-teacher",setup:function(){var e=u(),d=_({oPopover:!1,showQrcode:!1,schoolName:null,schoolId:null,url:null,list:[],listState:{dataShow:!0,loading:!1,finished:!1},statusText:"状态",params:{keyword:null,status:null,page:1,rows:20}}),z=function(){var e=r(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.get("/api-school/schoolStaff/detail/"+t);case 3:n=e.sent,console.log(n,"res"),d.schoolName=n.data.schoolName,d.schoolId=n.data.schoolId,d.url=location.origin+"/orchestra-school/#/manage-teacher-register?id="+n.data.schoolId+"&name="+n.data.schoolName,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=r(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.post("/api-school/schoolStaff/page",{data:t(t({},d.params),{},{schoolId:m.user.data.school.id})});case 3:if(n=e.sent,d.listState.loading=!1,o=n.data||{},!(d.list.length>0&&1===o.current)){e.next=8;break}return e.abrupt("return");case 8:d.list=d.list.concat(o.rows||[]),d.listState.finished=o.current>=o.pages,d.params.page=o.current+1,d.listState.dataShow=d.list.length>0,e.next=18;break;case 14:e.prev=14,e.t0=e.catch(0),d.listState.dataShow=!1,d.listState.finished=!0;case 18:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}(),B=function(){d.params.page=1,d.list=[],d.listState.dataShow=!0,d.listState.loading=!1,d.listState.finished=!1,P()};return f((function(){console.log(m.user.data.id,"1212"),z(m.user.data.id),P()})),function(){var t,r;return g(b,null,[g(s,{position:"top"},{default:function(){return[g(n,{border:!1},{right:function(){return g(h,{name:"plus",size:19,onClick:function(){return d.showQrcode=!0}},null)}}),g(c,{placeholder:"请输入管理老师姓名",inputBackground:"white",background:"#f6f8f9",onSearch:function(e){console.log(e),d.params.keyword=e,B()}},{left:function(){return g("div",{class:T.searchBand,style:{marginRight:"13px"},onClick:function(){return d.oPopover=!0}},[d.statusText,p(" "),g(h,{name:d.oPopover?"arrow-up":"arrow-down"},null)])}})]}}),d.listState.dataShow?g(C,{loading:d.listState.loading,"onUpdate:loading":function(e){return d.listState.loading=e},finished:d.listState.finished,finishedText:" ",class:[T.liveList],onLoad:P,immediateCheck:!1},(r=t=d.list.map((function(t){return g(j,{center:!0,isLink:!0,class:T.manageCell,onClick:function(){return function(t){e.push({path:"/manage-teacher-detail",query:{id:t.id}})}(t)}},{icon:function(){return g(S,{class:T.img,src:t.avatar?t.avatar:l},null)},title:function(){return g("div",{class:T.content},[g("p",{class:T.name},[t.nickname]),g("p",{class:T.phone},[t.phone])])},value:function(){return g("span",{class:[T.status,"LOCKED"===t.status?T.frozen:""]},[y[t.status]])}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!w(r)?t:{default:function(){return[t]}})):g(x,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无管理老师"},null),g(q,{show:d.showQrcode,"onUpdate:show":function(e){return d.showQrcode=e},position:"bottom",style:{background:"transparent"},safeAreaInsetBottom:!0},{default:function(){return[g("div",{class:T.codeContainer},[g("div",{class:T.codeImg},[g("div",{class:T.codeContent},[g("h2",{class:T.codeTitle},[d.schoolName]),g("div",{class:T.codeName},[p("邀请您成为乐团管理老师")]),g("div",{class:T.codeQr},[g(o,{text:d.url,size:"100%"},null)]),g("div",{style:{textAlign:"center"}},[g("span",{class:T.codeBtnText},[p("扫描上方二维码完成资料填写")])]),g("div",{class:T.codeTips},[p("二维码将在两小时后失效,请及时登记")])])]),g("div",{class:T.codeBottom},[g(h,{name:"cross",size:22,class:T.close,color:"#666",onClick:function(){return d.showQrcode=!1}},null),g("h3",{class:T.title},[g("i",null,null),p("分享方式")]),g(k,{columnNum:2,border:!1},{default:function(){return[g(O,null,{icon:function(){return g(S,{class:T.shareImg,src:a},null)},text:function(){return g("div",{class:T.shareText},[p("保存图片")])}}),g(O,null,{icon:function(){return g(S,{class:T.shareImg,src:i},null)},text:function(){return g("div",{class:T.shareText},[p("微信")])}})]}})])])]}}),g(I,{show:d.oPopover,"onUpdate:show":function(e){return d.oPopover=e},cancelText:"取消",actions:[{name:"全部",id:"ALL"},{name:"注销",id:"CANCEL"},{name:"冻结",id:"LOCKED"},{name:"正常",id:"ACTIVATION"}],onSelect:function(e){d.statusText=e.name,d.params.status="ALL"===e.id?null:e.id,d.oPopover=!1,B()}},null)])}}}))}}}))}();