1 |
- !function(){function e(e,t,l,n,r,i,o){try{var a=e[i](o),_=a.value}catch(c){return void l(c)}a.done?t(_):Promise.resolve(_).then(n,r)}function t(t){return function(){var l=this,n=arguments;return new Promise((function(r,i){var o=t.apply(l,n);function a(t){e(o,r,i,a,_,"next",t)}function _(t){e(o,r,i,a,_,"throw",t)}a(void 0)}))}}var l=document.createElement("style");l.innerHTML="._detailCellGroup_1fllt_1{margin:.32rem .34667rem;overflow:hidden;border-radius:.26667rem}._subjectContainer_1fllt_6{display:flex}._subjectContainer_1fllt_6>span{flex-shrink:0}._subjectContainer_1fllt_6 ._tagSubject_1fllt_12{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem}._sectionCellGroup_1fllt_17 .van-cell{padding:.48rem .4rem;font-size:.42667rem}._detailCell_1fllt_1{padding:.4rem .34667rem}._detailCell_1fllt_1 .van-cell__title{flex:1 auto;flex-basis:48%}._detailCell_1fllt_1 ._teacherContent_1fllt_28{display:flex;align-items:center;justify-content:space-between}._detailCell_1fllt_1 ._teacherContent_1fllt_28 .van-tag+.van-tag{margin-left:.13333rem}._detailCell_1fllt_1 ._teacherContent_1fllt_28 ._content_1fllt_36{width:1.86667rem;flex:1 auto}._detailCell_1fllt_1 ._teacherContent_1fllt_28 ._name_1fllt_40{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:1.86667rem}._detailCell_1fllt_1 ._teacherContent_1fllt_28 ._classNum_1fllt_47{text-align:center;width:1.6rem}._detailCell_1fllt_1 ._teacherContent_1fllt_28 ._num_1fllt_51{font-size:.53333rem;font-weight:700;color:#f67146;line-height:.64rem;font-family:DINA}._detailCell_1fllt_1 ._teacherContent_1fllt_28 ._numText_1fllt_58{font-size:.32rem;color:#333;line-height:.45333rem}._detailCell_1fllt_1 ._messageImg_1fllt_63{margin-top:.13333rem;width:.64rem;height:.64rem}._detailCell_1fllt_1 ._avatarContainer_1fllt_68{position:relative}._detailCell_1fllt_1 ._avatarContainer_1fllt_68 ._avatarType_1fllt_71{position:absolute;left:.08rem;bottom:.05333rem;padding:0 .24rem}._detailCell_1fllt_1 ._img_1fllt_77{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._detailCell_1fllt_1 ._name_1fllt_40{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._detailCell_1fllt_1 ._phone_1fllt_90{font-size:.37333rem;color:#777;line-height:.53333rem}._detailCell_1fllt_1 ._status_1fllt_95{font-size:.42667rem;font-weight:500;color:#333}._detailCell_1fllt_1 ._frozen_1fllt_100{color:#f44541}._sectionTitle_1fllt_103{padding:.21333rem .34667rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._sectionTitle_1fllt_103 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._functionGrid_1fllt_118{margin:.32rem .34667rem;padding:.26667rem 0;background:#ffffff;border-radius:.32rem;overflow:hidden}._functionGrid_1fllt_118 ._functionImg_1fllt_125{width:1.25333rem;height:1.25333rem}._functionGrid_1fllt_118 ._functionText_1fllt_129{padding-top:.13333rem;font-size:.32rem;color:#333;line-height:.45333rem}._functionGrid_1fllt_118 .van-grid-item__content{padding-top:.26667rem;padding-bottom:.26667rem}._companionCell_1fllt_139{padding:.4rem}._companionCell_1fllt_139 ._className_1fllt_142{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._companionCell_1fllt_139 ._musicName_1fllt_148{padding-top:.16rem;font-size:.37333rem;color:#777;line-height:.53333rem}._companionCell_1fllt_139 ._nums_1fllt_154{font-size:.53333rem;font-weight:700;color:#f67146;line-height:.64rem;font-family:DINA}._companionCell_1fllt_139 ._numTip_1fllt_161{font-size:.37333rem;color:#777;line-height:.53333rem}._codeContainer_1fllt_166 ._codeImg_1fllt_166{width:8.61333rem;height:12.4rem;background:url(./assets/download.275aac0e.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_1fllt_166 ._codeImg_1fllt_166 ._codeContent_1fllt_173{padding-left:.21333rem}._codeContainer_1fllt_166 ._codeImg_1fllt_166 ._codeTitle_1fllt_176{text-align:center;padding-top:.34667rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a}._codeContainer_1fllt_166 ._codeImg_1fllt_166 ._codeName_1fllt_184{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_1fllt_166 ._codeImg_1fllt_166 ._codeQr_1fllt_190{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_1fllt_166 ._codeImg_1fllt_166 ._codeQr_1fllt_190 img{width:100%;height:100%}._codeContainer_1fllt_166 ._codeImg_1fllt_166 ._codeBtnText_1fllt_203{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_1fllt_166 ._codeImg_1fllt_166 ._codeTips_1fllt_213{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#f16437;line-height:.48rem;text-align:center}._codeContainer_1fllt_166 ._close_1fllt_221{position:absolute;top:.32rem;right:.4rem}._codeContainer_1fllt_166 ._codeBottom_1fllt_226{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_1fllt_166 ._title_1fllt_233{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_1fllt_166 ._title_1fllt_233 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_1fllt_166 ._shareImg_1fllt_248{width:1.25333rem;height:1.25333rem}._codeContainer_1fllt_166 ._shareText_1fllt_252{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n",document.head.appendChild(l),System.register(["./index-legacy.81fd4e6f.js","./index-legacy.a9944503.js","./icon_teacher-legacy.07765f44.js","./icon-message-legacy.a5fad892.js","./index-legacy.00d82922.js","./index-legacy.ea1cf20b.js","./index-legacy.75e78f7b.js","./index-legacy.16d013c6.js","./index-legacy.aa24f77a.js","./index-legacy.c74636d9.js","./index-legacy.2605abd7.js","./index-legacy.819d05e3.js"],(function(e){"use strict";var l,n,r,i,o,a,_,c,s,f,u,d,m,g,h,p,C,v,b,x,w,y,T,j,I,k,N,z,G;return{setters:[function(e){l=e.O},function(e){n=e.d,r=e.aU,i=e.ag,o=e.r,a=e.$,_=e.c,c=e.q,s=e.ai,f=e.B,u=e.P,d=e.a5,m=e.k,g=e.F,h=e.aj,p=e.m,C=e.f},function(e){v=e.i},function(e){b=e.i,x=e.a,w=e.b},function(e){y=e.O},function(e){T=e.O},function(e){j=e.C},function(e){I=e.C},function(e){k=e.I},function(e){N=e.T},function(e){z=e.G,G=e.a},function(){}],execute:function(){var B={detailCellGroup:"_detailCellGroup_1fllt_1",subjectContainer:"_subjectContainer_1fllt_6",tagSubject:"_tagSubject_1fllt_12",sectionCellGroup:"_sectionCellGroup_1fllt_17",detailCell:"_detailCell_1fllt_1",teacherContent:"_teacherContent_1fllt_28",content:"_content_1fllt_36",name:"_name_1fllt_40",classNum:"_classNum_1fllt_47",num:"_num_1fllt_51",numText:"_numText_1fllt_58",messageImg:"_messageImg_1fllt_63",avatarContainer:"_avatarContainer_1fllt_68",avatarType:"_avatarType_1fllt_71",img:"_img_1fllt_77",phone:"_phone_1fllt_90",status:"_status_1fllt_95",frozen:"_frozen_1fllt_100",sectionTitle:"_sectionTitle_1fllt_103",functionGrid:"_functionGrid_1fllt_118",functionImg:"_functionImg_1fllt_125",functionText:"_functionText_1fllt_129",companionCell:"_companionCell_1fllt_139",className:"_className_1fllt_142",musicName:"_musicName_1fllt_148",nums:"_nums_1fllt_154",numTip:"_numTip_1fllt_161",codeContainer:"_codeContainer_1fllt_166",codeImg:"_codeImg_1fllt_166",codeContent:"_codeContent_1fllt_173",codeTitle:"_codeTitle_1fllt_176",codeName:"_codeName_1fllt_184",codeQr:"_codeQr_1fllt_190",codeBtnText:"_codeBtnText_1fllt_203",codeTips:"_codeTips_1fllt_213",close:"_close_1fllt_221",codeBottom:"_codeBottom_1fllt_226",title:"_title_1fllt_233",shareImg:"_shareImg_1fllt_248",shareText:"_shareText_1fllt_252"};e("default",n({name:"companion-detail",setup:function(e,n){n.slots,n.attrs,n.emit;var S=r(),R=i(),L=o({showMessage:!1,detail:{},classList:[],showDialog:!1}),M=function(){var e=t(regeneratorRuntime.mark((function e(){var t,l,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=S.query,e.next=4,p.post("/api-school/teacher/detail",{data:{teacherId:t.id,schoolId:C.user.data.school.id}});case 4:l=e.sent,n=l.data,L.detail=n,r=n.subjectName?n.subjectName.split(","):[],L.detail.subjectNames=r,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=t(regeneratorRuntime.mark((function e(){var t,l,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=S.query,e.next=4,p.post("/api-school/classGroup/page",{data:{teacherId:t.id,schoolId:C.user.data.school.id,page:1,rows:100}});case 4:l=e.sent,n=l.data,L.classList=n.rows||[],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)}}(),D=function(){var e=t(regeneratorRuntime.mark((function e(){var t,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.post("/api-school/classGroup/teacherHandoverList/"+S.query.id,{hideLoading:!1});case 3:if(t=e.sent,l=t.data,!((l||[]).length>0)){e.next=9;break}return R.push({path:"/companion-unbind",query:{id:S.query.id}}),e.abrupt("return");case 9:L.showDialog=!0,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=t(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.post("/api-school/classGroup/handoverTeacher",{data:{teacherId:S.query.id}});case 3:R.back(),e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}();return a((function(){M(),q()})),function(){return _(g,null,[_(l,null,null),_(j,{inset:!0,class:B.detailCellGroup},{default:function(){return[_(I,{center:!0,class:B.detailCell},{icon:function(){return _("div",{class:B.avatarContainer},[_(k,{class:B.img,src:L.detail.avatar||v,fit:"cover"},null),L.detail.delFlag&&_(N,{class:B.avatarType,round:!0,color:"#F44541",textColor:"#fff"},{default:function(){return[c("解绑")]}})])},title:function(){return _("div",{class:B.teacherContent},[_("div",{class:B.content},[_("p",{class:[B.name,"van-ellipsis"]},[L.detail.nickname])]),_("div",{class:B.classNum},[_("p",{class:B.num},[L.detail.completedCourseScheduleNum||0,c("/"),L.detail.totalCourseScheduleNum||0]),_("p",{class:B.numText},[c("课时")])])])},value:function(){return _(k,{class:B.messageImg,src:b,onClick:function(){return L.showMessage=!0}},null)}}),L.detail.subjectNames&&L.detail.subjectNames.legnth>0&&_(I,{center:!0},{title:function(){return _("div",{class:B.subjectContainer},[_("span",null,[c("声部:")]),_("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},[L.detail.subjectNames&&L.detail.subjectNames.map((function(e){return _(N,{type:"primary",class:B.tagSubject,color:"#FFE7DA",textColor:"#F67146"},"function"==typeof(t=e)||"[object Object]"===Object.prototype.toString.call(t)&&!h(t)?e:{default:function(){return[e]}});var t}))])])}})]}}),_("div",{class:B.sectionTitle},[_("i",null,null),c("基本信息")]),_(j,{inset:!0,class:[B.detailCellGroup,B.sectionCellGroup]},{default:function(){return[_(I,{title:"手机号码",value:L.detail.phone},null),_(I,{title:"性别",value:1==L.detail.gender?"男":0==L.detail.gender?"女":""},null),_(I,{title:"声部",value:L.detail.subjectName},null)]}}),_("div",{class:B.sectionTitle},[_("i",null,null),c("所在班级")]),_(j,{inset:!0,class:[B.detailCellGroup,B.sectionCellGroup]},{default:function(){return[L.classList.map((function(e){return _(I,{center:!0,class:B.companionCell},{title:function(){return _("div",{class:B.classInfo},[_("p",{class:B.className},[e.name]),_("p",{class:B.musicName},[e.orchestraName])])},value:function(){return _("div",{class:B.num},[_("p",{class:B.nums},[e.completeCourseScheduleNum,c("/"),e.courseScheduleNum]),_("p",{class:B.numTip},[c("总课时")])])}})})),L.classList.length<=0&&_(s,{btnStatus:!1,tips:"暂无班级"},null)]}}),L.detail.id&&!L.detail.delFlag&&_(y,{position:"bottom"},{default:function(){return[_("div",{class:["btnGroup"],style:{paddingLeft:"13px",paddingRight:"13px"}},[_(f,{type:"primary",round:!0,block:!0,onClick:D},{default:function(){return[c("解除绑定")]}})])]}}),_(u,{show:L.showMessage,"onUpdate:show":function(e){return L.showMessage=e},position:"bottom",style:{background:"transparent"}},{default:function(){return[_("div",{class:B.codeContainer},[_("div",{class:B.codeBottom},[_(d,{name:"cross",size:22,class:B.close,color:"#666",onClick:function(){return L.showMessage=!1}},null),_("h3",{class:B.title},[_("i",null,null),c("联系方式")]),_(z,{columnNum:2,border:!1},{default:function(){return[_(G,{onClick:function(){m({api:"joinChatGroup",content:{type:"single",id:L.detail.imUserId}}),L.showMessage=!1}},{icon:function(){return _(k,{class:B.shareImg,src:x},null)},text:function(){return _("div",{class:B.shareText},[c("发送消息")])}}),_(G,{onClick:function(){m({api:"callPhone",content:{phone:L.detail.phone}}),L.showMessage=!1}},{icon:function(){return _(k,{class:B.shareImg,src:w},null)},text:function(){return _("div",{class:B.shareText},[c("拨打电话")])}})]}})])])]}}),_(T,{show:L.showDialog,"onUpdate:show":function(e){return L.showDialog=e},title:"解除绑定",message:"解除绑定后,该伴学指导将退出所有班级群,若需重新绑定可通过伴学老师邀请码重新填写资料后绑定\n\n确认需要解除绑定吗?",messageAlign:"left",showCancelButton:!0,confirmButtonText:"确认",cancelButtonText:"取消",onConfirm:F},null)])}}}))}}}))}();
|