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 i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,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,i,o,a){try{var s=e[o](a),c=s.value}catch(d){return void n(d)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}var o=document.createElement("style");o.innerHTML="._searchBand_spdri_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._subjectContainer_spdri_7{display:flex}._subjectContainer_spdri_7>span{flex-shrink:0;font-weight:500}._subjectContainer_spdri_7 ._tagSubject_spdri_14{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.21333rem;padding:.08rem .21333rem .05333rem;font-weight:500}._manageCell_spdri_21{padding:.4rem .34667rem}._manageCell_spdri_21 .van-cell__title{flex:1 auto;flex-basis:14%}._manageCell_spdri_21 ._teacherContent_spdri_28{display:flex;align-items:center;justify-content:space-between}._manageCell_spdri_21 ._teacherContent_spdri_28 ._content_spdri_33{width:1.86667rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._name_spdri_36{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:1.86667rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._classNum_spdri_43{text-align:center;width:1.6rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._num_spdri_47{font-size:.53333rem;font-weight:700;color:#f67146;font-family:DINA;line-height:.64rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._numText_spdri_54{padding-top:.08rem;font-size:.32rem;color:#333;line-height:.45333rem}._manageCell_spdri_21 ._teacherContent_spdri_28 ._messageImg_spdri_60{margin-top:.13333rem;width:.64rem;height:.64rem}._manageCell_spdri_21 ._avatarContainer_spdri_65{position:relative}._manageCell_spdri_21 ._avatarContainer_spdri_65 ._avatarType_spdri_68{position:absolute;left:.08rem;bottom:.05333rem;padding:0 .24rem}._manageCell_spdri_21 ._img_spdri_74{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._manageCell_spdri_21 ._name_spdri_36{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._manageCell_spdri_21 ._phone_spdri_87{font-size:.37333rem;color:#777;line-height:.53333rem}._manageCell_spdri_21 ._status_spdri_92{font-size:.42667rem;font-weight:500;color:#333}._manageCell_spdri_21 ._frozen_spdri_97{color:#f44541}._codeContainer_spdri_100 ._codeImg_spdri_100{width:8.61333rem;height:12.4rem;background:url(./assets/download.275aac0e.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeContent_spdri_107{padding-left:.21333rem}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeTitle_spdri_110{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_spdri_100 ._codeImg_spdri_100 ._codeName_spdri_120{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeQr_spdri_126{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_spdri_100 ._codeImg_spdri_100 ._codeQr_spdri_126 img{width:100%;height:100%}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeBtnText_spdri_139{margin:.4rem auto 0;display:inline-block;background:linear-gradient(135deg,#ff9c63 0%,#ff7144 100%);border-radius:.48rem;padding:.16rem .42667rem;font-size:.42667rem;font-weight:600;color:#fff}._codeContainer_spdri_100 ._codeImg_spdri_100 ._codeTips_spdri_149{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#f16437;line-height:.48rem;text-align:center}._codeContainer_spdri_100 ._close_spdri_157{position:absolute;top:.32rem;right:.4rem}._codeContainer_spdri_100 ._codeBottom_spdri_162{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_spdri_100 ._title_spdri_169{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_spdri_100 ._title_spdri_169 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_spdri_100 ._shareImg_spdri_184{width:1.25333rem;height:1.25333rem}._codeContainer_spdri_100 ._shareText_spdri_188{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n",document.head.appendChild(o),System.register(["./index-legacy.47bc1690.js","./index-legacy.d856500a.js","./index-legacy.697c501a.js","./icon-call-message-legacy.418e09d8.js","./icon_teacher-legacy.07765f44.js","./icon-message-legacy.e6b4ca35.js","./index-legacy.7cfd729a.js","./index-legacy.cf9bcf39.js","./index-legacy.57721991.js","./index-legacy.bab9fe30.js","./index-legacy.92a01198.js","./index-legacy.0ebc214d.js","./index-legacy.453fd926.js","./index-legacy.4df1d4ab.js","./index-legacy.62a334e5.js","./index-legacy.569a2858.js","./index-legacy.41022c63.js","./use-tab-status-legacy.7bf91b8c.js","./Picker-legacy.cd27e6c1.js","./index-legacy.00966b07.js","./index-legacy.18044794.js","./index-legacy.21964237.js"],(function(e){"use strict";var n,r,o,a,s,c,d,l,_,u,p,m,f,g,h,b,v,w,C,x,y,j,S,I,k,T,P,O,z,N,L;return{setters:[function(e){n=e.d,r=e.ag,o=e.r,a=e.$,s=e.e,c=e.b3,d=e.c,l=e.aj,_=e.a5,u=e.q,p=e.ak,m=e.P,f=e.al,g=e.m,h=e.g},function(e){b=e.O},function(e){v=e.O},function(e){w=e.i,C=e.a},function(e){x=e.i},function(e){y=e.i},function(e){j=e.O},function(e){S=e.O},function(e){I=e.L},function(e){k=e.C},function(e){T=e.C},function(e){P=e.I},function(e){O=e.T},function(e){z=e.G,N=e.a},function(e){L=e.P},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var B={searchBand:"_searchBand_spdri_1",subjectContainer:"_subjectContainer_spdri_7",tagSubject:"_tagSubject_spdri_14",manageCell:"_manageCell_spdri_21",teacherContent:"_teacherContent_spdri_28",content:"_content_spdri_33",name:"_name_spdri_36",classNum:"_classNum_spdri_43",num:"_num_spdri_47",numText:"_numText_spdri_54",messageImg:"_messageImg_spdri_60",avatarContainer:"_avatarContainer_spdri_65",avatarType:"_avatarType_spdri_68",img:"_img_spdri_74",phone:"_phone_spdri_87",status:"_status_spdri_92",frozen:"_frozen_spdri_97",codeContainer:"_codeContainer_spdri_100",codeImg:"_codeImg_spdri_100",codeContent:"_codeContent_spdri_107",codeTitle:"_codeTitle_spdri_110",codeName:"_codeName_spdri_120",codeQr:"_codeQr_spdri_126",codeBtnText:"_codeBtnText_spdri_139",codeTips:"_codeTips_spdri_149",close:"_close_spdri_157",codeBottom:"_codeBottom_spdri_162",title:"_title_spdri_169",shareImg:"_shareImg_spdri_184",shareText:"_shareText_spdri_188"};function E(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!f(e)}e("default",n({name:"companion-teacher",setup:function(){var e=r(),n=o({showMessage:!1,showPopover:!1,oPopover:!1,subjectList:[{text:"全部声部",value:"ALL"}],action:[{name:"解绑",id:!0},{name:"绑定",id:!1,selected:!0}],list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},subjectText:"全部声部",statusText:"绑定",params:{keyword:null,delFlag:!1,subjectId:null,page:1,rows:20},selectItem:{}}),f=function(){var e=i(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:50}});case 3:t=e.sent,r=t.data,(r.rows||[]).forEach((function(e){n.subjectList.push({text:e.subjectName,value:e.subjectId})})),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=i(regeneratorRuntime.mark((function e(){var r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("/api-school/teacher/page",{data:t(t({},n.params),{},{schoolId:h.user.data.school.id})});case 3:if(r=e.sent,n.listState.loading=!1,n.listState.refreshing=!1,i=r.data||{},!(n.list.length>0&&1===i.current)){e.next=9;break}return e.abrupt("return");case 9:(o=i.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),n.list=n.list.concat(o),n.listState.finished=i.current>=i.pages,n.params.page=i.current+1,n.listState.dataShow=n.list.length>0,e.next=22;break;case 17:e.prev=17,e.t0=e.catch(0),n.listState.dataShow=!1,n.listState.refreshing=!1,n.listState.finished=!0;case 22:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(){return e.apply(this,arguments)}}(),M=function(){n.params.page=1,n.list=[],n.listState.dataShow=!0,n.listState.loading=!1,n.listState.finished=!1,R()};a(i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f(),R(),window.history.pushState(null,"",document.URL),window.addEventListener("popstate",D,!1);case 4:case"end":return e.stop()}}),e)}))));var D=function(){s({api:"back"})};return c((function(){window.removeEventListener("popstate",D)})),function(){var t;return d("div",{class:!n.listState.dataShow&&"emptyRootContainer"},[d(v,{position:"top",onGetHeight:function(e){n.listState.height=e}},{default:function(){return[d(l,{border:!1},{right:function(){return d(_,{name:"plus",size:19,onClick:function(){e.push({path:"save-share-image",query:{type:"teacher"}})}},null)}}),d(b,{placeholder:"请输入伴学老师姓名",class:"searchGroupInput",onSearch:function(e){n.params.keyword=e,M()}},null),d("div",{class:"searchGroup"},[d("div",{class:["searchItem",n.showPopover&&"searchItem-active"],onClick:function(){return n.showPopover=!0}},[d("span",null,[n.subjectText]),d("i",{class:"arrow"},null)]),d("div",{class:["searchItem",n.oPopover&&"searchItem-active"],onClick:function(){return n.oPopover=!0}},[d("span",null,[n.statusText]),d("i",{class:"arrow"},null)])])]}}),n.listState.dataShow?d(j,{modelValue:n.listState.refreshing,"onUpdate:modelValue":function(e){return n.listState.refreshing=e},onRefresh:M,style:{minHeight:"calc(100vh - ".concat(n.listState.height,"px)")}},{default:function(){return[d(I,{finished:n.listState.finished,finishedText:" ",class:[B.liveList],onLoad:R,style:{paddingTop:"12px"},immediateCheck:!1},E(t=n.list.map((function(t){return d(k,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return function(t){e.push({path:"/companion-teacher-detail",query:{id:t.id}})}(t)}},{default:function(){return[d(T,{center:!0,isLink:!0,class:B.manageCell,clickable:!1},{icon:function(){return d("div",{class:B.avatarContainer},[d(P,{class:B.img,src:t.avatar?t.avatar:x,fit:"cover"},null),t.delFlag&&d(O,{class:B.avatarType,round:!0,color:"#F44541",textColor:"#fff"},{default:function(){return[u("解绑")]}})])},title:function(){return d("div",{class:B.teacherContent},[d("div",{class:B.content},[d("p",{class:[B.name,"van-ellipsis"]},[t.nickname])])])},value:function(){return d("div",{class:B.teacherContent},[d("div",{class:B.classNum},[d("p",{class:B.num},[t.completedCourseScheduleNum||0,u("/"),t.totalCourseScheduleNum||0]),d("p",{class:B.numText},[u("课时")])]),d("div",{class:B.message,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.showMessage=!0,n.selectItem=t}},[d(P,{class:B.messageImg,src:y},null)])])}}),d(T,{center:!0},{title:function(){return d("div",{class:B.subjectContainer},[d("span",null,[u("声部:")]),d("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},[t.subjectNames&&t.subjectNames.length>0&&t.subjectNames.map((function(e){return d(O,{type:"primary",class:B.tagSubject,color:"#FFE7DA",textColor:"#F67146"},E(e)?e:{default:function(){return[e]}})}))])])}})]}})})))?t:{default:function(){return[t]}})]}}):d(p,{btnStatus:!1,tips:"暂无伴学老师"},null),d(m,{show:n.showMessage,"onUpdate:show":function(e){return n.showMessage=e},position:"bottom",style:{background:"transparent"}},{default:function(){return[d("div",{class:B.codeContainer},[d("div",{class:B.codeBottom},[d(_,{name:"cross",size:22,class:B.close,color:"#666",onClick:function(){return n.showMessage=!1}},null),d("h3",{class:B.title},[d("i",null,null),u("联系方式")]),d(z,{columnNum:2,border:!1},{default:function(){return[d(N,{onClick:function(){s({api:"joinChatGroup",content:{type:"single",id:n.selectItem.imUserId}}),n.showMessage=!1}},{icon:function(){return d(P,{class:B.shareImg,src:w},null)},text:function(){return d("div",{class:B.shareText},[u("发送消息")])}}),d(N,{onClick:function(){s({api:"callPhone",content:{phone:n.selectItem.phone}}),n.showMessage=!1}},{icon:function(){return d(P,{class:B.shareImg,src:C},null)},text:function(){return d("div",{class:B.shareText},[u("拨打电话")])}})]}})])])]}}),d(S,{show:n.oPopover,"onUpdate:show":function(e){return n.oPopover=e},actions:n.action,onSelect:function(e){n.action.forEach((function(e){e.selected=!1})),e.selected=!0,n.statusText=e.name,n.params.delFlag="ALL"===e.id?null:e.id,n.oPopover=!1,M()}},null),d(m,{show:n.showPopover,"onUpdate:show":function(e){return n.showPopover=e},round:!0,position:"bottom",class:"popupBottomSearch"},{default:function(){return[d(L,{columns:n.subjectList,onCancel:function(){return n.showPopover=!1},onConfirm:function(e){return function(e){n.subjectText=e.selectedOptions[0].text,n.params.subjectId="ALL"===e.selectedOptions[0].value?null:e.selectedOptions[0].value,n.showPopover=!1,M()}(e)}},null)]}})])}}}))}}}))}();
|