!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;o0&&1===o.pageNo)){e.next=8;break}return e.abrupt("return");case 8:(r=o.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),g.list=g.list.concat(r),g.listState.finished=o.current>=o.pages,g.params.page=o.current+1,g.listState.dataShow=g.list.length>0,e.next=20;break;case 16:e.prev=16,e.t0=e.catch(0),g.listState.dataShow=!1,g.listState.finished=!0;case 20:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(){return e.apply(this,arguments)}}(),R=function(){g.params.page=1,g.list=[],g.listState.dataShow=!0,g.listState.loading=!1,g.listState.finished=!1,D()};return f((function(){E(h.user.data.id),I(),D()})),function(){var t;return b(j,null,[b(i,{position:"top"},{default:function(){return[b(n,{border:!1},{right:function(){return b(w,{name:"plus",size:19,onClick:function(){return g.showQrcode=!0}},null)}}),b(c,{placeholder:"请输入伴学老师姓名",inputBackground:"white",background:"#f6f8f9",onSearch:function(e){g.params.keyword=e,R()}},null),b("div",{style:{padding:"12px 13px 16px",background:"#F8F8F8"}},[b("div",{class:A.searchBand,onClick:function(){return g.showPopover=!0}},[g.subjectText,v(" "),b(w,{name:g.showPopover?"arrow-up":"arrow-down"},null)]),b("div",{class:A.searchBand,style:"margin-left: 16px",onClick:function(){return g.oPopover=!0}},[g.statusText,v(" "),b(w,{name:g.oPopover?"arrow-up":"arrow-down"},null)])])]}}),g.listState.dataShow?b(O,{loading:g.listState.loading,"onUpdate:loading":function(e){return g.listState.loading=e},finished:g.listState.finished,finishedText:" ",class:[A.liveList],onLoad:D,immediateCheck:!1},M(t=g.list.map((function(t){return b(P,{center:!0,isLink:!0,class:A.manageCell,onClick:function(){return function(t){e.push({path:"/companion-teacher-detail",query:{id:t.id}})}(t)}},{icon:function(){return b(N,{class:A.img,src:t.avatar?t.avatar:d},null)},title:function(){return b("div",{class:A.teacherContent},[b("div",{class:A.content},[b("p",{class:[A.name,"van-ellipsis"]},[t.nickname]),b("p",{class:A.subjects},[t.subjectNames&&t.subjectNames.length>0&&t.subjectNames.map((function(e){return b(z,{type:"primary"},M(e)?e:{default:function(){return[e]}})}))])]),b("div",{class:A.classNum},[b("p",{class:A.num},[t.completedCourseScheduleNum||0,v("/"),t.totalCourseScheduleNum||0]),b("p",{class:A.numText},[v("课时")])]),b("div",{class:A.message,onClick:function(e){e.stopPropagation(),e.preventDefault(),g.showMessage=!0,g.selectItem=t}},[b(N,{class:A.messageImg,src:s},null)])])},value:function(){return b("span",{class:[A.status,"LOCKED"===t.status?A.frozen:""]},[T[t.status]])}})})))?t:{default:function(){return[t]}}):b(x,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无伴学老师"},null),b(C,{show:g.showQrcode,"onUpdate:show":function(e){return g.showQrcode=e},position:"bottom",style:{background:"transparent"},safeAreaInsetBottom:!0},{default:function(){return[b("div",{class:A.codeContainer},[b("div",{class:A.codeImg},[b("div",{class:A.codeContent},[b("h2",{class:A.codeTitle},[g.schoolName]),b("div",{class:A.codeName},[v("邀请您成为乐团伴学老师")]),b("div",{class:A.codeQr},[b(o,{text:g.url,size:"100%"},null)]),b("div",{style:{textAlign:"center"}},[b("span",{class:A.codeBtnText},[v("扫描上方二维码完成资料填写")])]),b("div",{class:A.codeTips},[v("二维码将在两小时后失效,请及时登记")])])]),b("div",{class:A.codeBottom},[b(w,{name:"cross",size:22,class:A.close,color:"#666",onClick:function(){return g.showQrcode=!1}},null),b("h3",{class:A.title},[b("i",null,null),v("分享方式")]),b(B,{columnNum:2,border:!1},{default:function(){return[b(L,null,{icon:function(){return b(N,{class:A.shareImg,src:a},null)},text:function(){return b("div",{class:A.shareText},[v("保存图片")])}}),b(L,null,{icon:function(){return b(N,{class:A.shareImg,src:l},null)},text:function(){return b("div",{class:A.shareText},[v("微信")])}})]}})])])]}}),b(C,{show:g.showMessage,"onUpdate:show":function(e){return g.showMessage=e},position:"bottom",style:{background:"transparent"},safeAreaInsetBottom:!0},{default:function(){return[b("div",{class:A.codeContainer},[b("div",{class:A.codeBottom},[b(w,{name:"cross",size:22,class:A.close,color:"#666",onClick:function(){return g.showMessage=!1}},null),b("h3",{class:A.title},[b("i",null,null),v("联系方式")]),b(B,{columnNum:2,border:!1},{default:function(){return[b(L,{onClick:function(){y({api:"joinChatGroup",content:{type:"single",id:g.selectItem.id}}),g.showMessage=!1}},{icon:function(){return b(N,{class:A.shareImg,src:u},null)},text:function(){return b("div",{class:A.shareText},[v("发送消息")])}}),b(L,{onClick:function(){y({api:"callPhone",content:{id:g.selectItem.phone}}),g.showMessage=!1}},{icon:function(){return b(N,{class:A.shareImg,src:_},null)},text:function(){return b("div",{class:A.shareText},[v("拨打电话")])}})]}})])])]}}),b(S,{show:g.oPopover,"onUpdate:show":function(e){return g.oPopover=e},cancelText:"取消",actions:[{name:"全部",id:"ALL"},{name:"注销",id:"CANCEL"},{name:"冻结",id:"LOCKED"},{name:"正常",id:"ACTIVATION"}],onSelect:function(e){g.statusText=e.name,g.params.status="ALL"===e.id?null:e.id,g.oPopover=!1,R()}},null),b(C,{show:g.showPopover,"onUpdate:show":function(e){return g.showPopover=e},round:!0,position:"bottom"},{default:function(){return[b(Q,{columns:g.subjectList,onCancel:function(){return g.showPopover=!1},onConfirm:function(e){return function(e){g.subjectText=e.selectedOptions[0].text,g.params.subjectId=e.selectedOptions[0].value,g.showPopover=!1,R()}(e)}},null)]}})])}}}))}}}))}();