companion-detail-legacy.e62f3aed.js 14 KB

1
  1. !function(){function e(e,t,o,n,r,i,a){try{var l=e[i](a),_=l.value}catch(c){return void o(c)}l.done?t(_):Promise.resolve(_).then(n,r)}function t(t){return function(){var o=this,n=arguments;return new Promise((function(r,i){var a=t.apply(o,n);function l(t){e(a,r,i,l,_,"next",t)}function _(t){e(a,r,i,l,_,"throw",t)}l(void 0)}))}}var o=document.createElement("style");o.innerHTML="._detailCellGroup_okqf8_1{margin:.32rem .34667rem;overflow:hidden;border-radius:.26667rem}._subjectContainer_okqf8_6{display:flex}._subjectContainer_okqf8_6>span{flex-shrink:0}._subjectContainer_okqf8_6 ._tagSubject_okqf8_12{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}._sectionCellGroup_okqf8_18 .van-cell{padding:.48rem .4rem;font-size:.42667rem}._detailCell_okqf8_1{padding:.4rem .34667rem}._detailCell_okqf8_1 .van-cell__title{flex:1 auto;flex-basis:48%}._detailCell_okqf8_1 ._teacherContent_okqf8_29{display:flex;align-items:center;justify-content:space-between}._detailCell_okqf8_1 ._teacherContent_okqf8_29 .van-tag+.van-tag{margin-left:.13333rem}._detailCell_okqf8_1 ._teacherContent_okqf8_29 ._content_okqf8_37{width:1.86667rem;flex:1 auto}._detailCell_okqf8_1 ._teacherContent_okqf8_29 ._name_okqf8_41{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:1.86667rem}._detailCell_okqf8_1 ._teacherContent_okqf8_29 ._classNum_okqf8_48{text-align:center;width:1.6rem}._detailCell_okqf8_1 ._teacherContent_okqf8_29 ._num_okqf8_52{font-size:.53333rem;font-weight:700;color:#f67146;line-height:.64rem;font-family:DINA}._detailCell_okqf8_1 ._teacherContent_okqf8_29 ._numText_okqf8_59{font-size:.32rem;color:#333;line-height:.45333rem}._detailCell_okqf8_1 ._messageImg_okqf8_64{margin-top:.13333rem;width:.64rem;height:.64rem}._detailCell_okqf8_1 ._avatarContainer_okqf8_69{position:relative}._detailCell_okqf8_1 ._avatarContainer_okqf8_69 ._avatarType_okqf8_72{position:absolute;left:.08rem;bottom:.05333rem;padding:0 .24rem}._detailCell_okqf8_1 ._img_okqf8_78{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._detailCell_okqf8_1 ._name_okqf8_41{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._detailCell_okqf8_1 ._phone_okqf8_91{font-size:.37333rem;color:#777;line-height:.53333rem}._detailCell_okqf8_1 ._status_okqf8_96{font-size:.42667rem;font-weight:500;color:#333}._detailCell_okqf8_1 ._frozen_okqf8_101{color:#f44541}._sectionTitle_okqf8_104{padding:.21333rem .34667rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._sectionTitle_okqf8_104 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._functionGrid_okqf8_119{margin:.32rem .34667rem;padding:.26667rem 0;background:#ffffff;border-radius:.32rem;overflow:hidden}._functionGrid_okqf8_119 ._functionImg_okqf8_126{width:1.25333rem;height:1.25333rem}._functionGrid_okqf8_119 ._functionText_okqf8_130{padding-top:.13333rem;font-size:.32rem;color:#333;line-height:.45333rem}._functionGrid_okqf8_119 .van-grid-item__content{padding-top:.26667rem;padding-bottom:.26667rem}._companionCell_okqf8_140{padding:.4rem}._companionCell_okqf8_140 .van-cell__title{flex-basis:45%}._companionCell_okqf8_140 ._className_okqf8_146{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._companionCell_okqf8_140 ._musicName_okqf8_152{padding-top:.16rem;font-size:.37333rem;color:#777;line-height:.53333rem}._companionCell_okqf8_140 ._nums_okqf8_158{font-size:.53333rem;font-weight:700;color:#f67146;line-height:.64rem;font-family:DINA}._companionCell_okqf8_140 ._numTip_okqf8_165{font-size:.37333rem;color:#777;line-height:.53333rem}._codeContainer_okqf8_170 ._codeImg_okqf8_170{width:8.61333rem;height:12.4rem;background:url(./assets/download.275aac0e.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_okqf8_170 ._codeImg_okqf8_170 ._codeContent_okqf8_177{padding-left:.21333rem}._codeContainer_okqf8_170 ._codeImg_okqf8_170 ._codeTitle_okqf8_180{text-align:center;padding-top:.34667rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a}._codeContainer_okqf8_170 ._codeImg_okqf8_170 ._codeName_okqf8_188{padding:.96rem .21333rem 0;font-size:.48rem;font-weight:600;color:#fff}._codeContainer_okqf8_170 ._codeImg_okqf8_170 ._codeQr_okqf8_194{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_okqf8_170 ._codeImg_okqf8_170 ._codeQr_okqf8_194 img{width:100%;height:100%}._codeContainer_okqf8_170 ._codeImg_okqf8_170 ._codeBtnText_okqf8_207{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_okqf8_170 ._codeImg_okqf8_170 ._codeTips_okqf8_217{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#f16437;line-height:.48rem;text-align:center}._codeContainer_okqf8_170 ._close_okqf8_225{position:absolute;top:.32rem;right:.4rem}._codeContainer_okqf8_170 ._codeBottom_okqf8_230{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_okqf8_170 ._title_okqf8_237{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_okqf8_170 ._title_okqf8_237 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_okqf8_170 ._shareImg_okqf8_252{width:1.25333rem;height:1.25333rem}._codeContainer_okqf8_170 ._shareText_okqf8_256{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}\n",document.head.appendChild(o),System.register(["./index-legacy.47bc1690.js","./icon_teacher-legacy.07765f44.js","./icon-message-legacy.e6b4ca35.js","./icon-call-message-legacy.418e09d8.js","./index-legacy.697c501a.js","./index-legacy.df49868a.js","./index-legacy.bab9fe30.js","./index-legacy.92a01198.js","./index-legacy.0ebc214d.js","./index-legacy.453fd926.js","./index-legacy.4df1d4ab.js"],(function(e){"use strict";var o,n,r,i,a,l,_,c,s,f,u,d,m,g,h,p,k,q,C,v,b,w,x,y,T,j,I,N,z;return{setters:[function(e){o=e.d,n=e.ah,r=e.ag,i=e.r,a=e.$,l=e.c,_=e.aj,c=e.q,s=e.ak,f=e.B,u=e.P,d=e.a5,m=e.e,g=e.F,h=e.al,p=e.m,k=e.g},function(e){q=e.i},function(e){C=e.i},function(e){v=e.i,b=e.a},function(e){w=e.O},function(e){x=e.O},function(e){y=e.C},function(e){T=e.C},function(e){j=e.I},function(e){I=e.T},function(e){N=e.G,z=e.a}],execute:function(){var G={detailCellGroup:"_detailCellGroup_okqf8_1",subjectContainer:"_subjectContainer_okqf8_6",tagSubject:"_tagSubject_okqf8_12",sectionCellGroup:"_sectionCellGroup_okqf8_18",detailCell:"_detailCell_okqf8_1",teacherContent:"_teacherContent_okqf8_29",content:"_content_okqf8_37",name:"_name_okqf8_41",classNum:"_classNum_okqf8_48",num:"_num_okqf8_52",numText:"_numText_okqf8_59",messageImg:"_messageImg_okqf8_64",avatarContainer:"_avatarContainer_okqf8_69",avatarType:"_avatarType_okqf8_72",img:"_img_okqf8_78",phone:"_phone_okqf8_91",status:"_status_okqf8_96",frozen:"_frozen_okqf8_101",sectionTitle:"_sectionTitle_okqf8_104",functionGrid:"_functionGrid_okqf8_119",functionImg:"_functionImg_okqf8_126",functionText:"_functionText_okqf8_130",companionCell:"_companionCell_okqf8_140",className:"_className_okqf8_146",musicName:"_musicName_okqf8_152",nums:"_nums_okqf8_158",numTip:"_numTip_okqf8_165",codeContainer:"_codeContainer_okqf8_170",codeImg:"_codeImg_okqf8_170",codeContent:"_codeContent_okqf8_177",codeTitle:"_codeTitle_okqf8_180",codeName:"_codeName_okqf8_188",codeQr:"_codeQr_okqf8_194",codeBtnText:"_codeBtnText_okqf8_207",codeTips:"_codeTips_okqf8_217",close:"_close_okqf8_225",codeBottom:"_codeBottom_okqf8_230",title:"_title_okqf8_237",shareImg:"_shareImg_okqf8_252",shareText:"_shareText_okqf8_256"};e("default",o({name:"companion-detail",setup:function(e,o){o.slots,o.attrs,o.emit;var B=n(),S=r(),R=i({showMessage:!1,detail:{},classList:[],showDialog:!1}),L=function(){var e=t(regeneratorRuntime.mark((function e(){var t,o,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=B.query,e.next=4,p.post("/api-school/teacher/detail",{data:{teacherId:t.id,schoolId:k.user.data.school.id}});case 4:o=e.sent,n=o.data,R.detail=n,r=n.subjectName?n.subjectName.split(","):[],R.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)}}(),M=function(){var e=t(regeneratorRuntime.mark((function e(){var t,o,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=B.query,e.next=4,p.post("/api-school/classGroup/page",{data:{teacherId:t.id,schoolId:k.user.data.school.id,page:1,rows:100}});case 4:o=e.sent,n=o.data,R.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,o;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/"+B.query.id,{hideLoading:!1});case 3:if(t=e.sent,o=t.data,!((o||[]).length>0)){e.next=9;break}return S.push({path:"/companion-unbind",query:{id:B.query.id}}),e.abrupt("return");case 9:R.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:B.query.id}});case 3:S.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(){L(),M()})),function(){return l(g,null,[l(_,null,null),l(y,{inset:!0,class:G.detailCellGroup},{default:function(){return[l(T,{center:!0,class:G.detailCell},{icon:function(){return l("div",{class:G.avatarContainer},[l(j,{class:G.img,src:R.detail.avatar||q,fit:"cover"},null),R.detail.delFlag&&l(I,{class:G.avatarType,round:!0,color:"#F44541",textColor:"#fff"},{default:function(){return[c("解绑")]}})])},title:function(){return l("div",{class:G.teacherContent},[l("div",{class:G.content},[l("p",{class:[G.name,"van-ellipsis"]},[R.detail.nickname])]),l("div",{class:G.classNum},[l("p",{class:G.num},[R.detail.completedCourseScheduleNum||0,c("/"),R.detail.totalCourseScheduleNum||0]),l("p",{class:G.numText},[c("课时")])])])},value:function(){return l(j,{class:G.messageImg,src:C,onClick:function(){return R.showMessage=!0}},null)}}),R.detail.subjectNames&&R.detail.subjectNames.legnth>0&&l(T,{center:!0},{title:function(){return l("div",{class:G.subjectContainer},[l("span",null,[c("声部:")]),l("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},[R.detail.subjectNames&&R.detail.subjectNames.map((function(e){return l(I,{type:"primary",class:G.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}))])])}})]}}),l("div",{class:G.sectionTitle},[l("i",null,null),c("基本信息")]),l(y,{inset:!0,class:[G.detailCellGroup,G.sectionCellGroup]},{default:function(){return[l(T,{title:"手机号码",value:R.detail.phone},null),l(T,{title:"性别",value:1==R.detail.gender?"男":0==R.detail.gender?"女":""},null),l(T,{title:"声部",value:R.detail.subjectName},null)]}}),l("div",{class:G.sectionTitle},[l("i",null,null),c("所在班级")]),l(y,{inset:!0,class:[G.detailCellGroup,G.sectionCellGroup]},{default:function(){return[R.classList.map((function(e){return l(T,{center:!0,class:G.companionCell},{title:function(){return l("div",{class:G.classInfo},[l("p",{class:G.className},[e.name]),l("p",{class:G.musicName},[e.orchestraName])])},value:function(){return l("div",{class:G.num},[l("p",{class:G.nums},[e.completeCourseScheduleNum,c("/"),e.courseScheduleNum]),l("p",{class:G.numTip},[c("总课时")])])}})})),R.classList.length<=0&&l(s,{btnStatus:!1,tips:"暂无班级"},null)]}}),R.detail.id&&!R.detail.delFlag&&l(w,{position:"bottom"},{default:function(){return[l("div",{class:["btnGroup"],style:{paddingLeft:"13px",paddingRight:"13px"}},[l(f,{type:"primary",round:!0,block:!0,onClick:D},{default:function(){return[c("解除绑定")]}})])]}}),l(u,{show:R.showMessage,"onUpdate:show":function(e){return R.showMessage=e},position:"bottom",style:{background:"transparent"}},{default:function(){return[l("div",{class:G.codeContainer},[l("div",{class:G.codeBottom},[l(d,{name:"cross",size:22,class:G.close,color:"#666",onClick:function(){return R.showMessage=!1}},null),l("h3",{class:G.title},[l("i",null,null),c("联系方式")]),l(N,{columnNum:2,border:!1},{default:function(){return[l(z,{onClick:function(){m({api:"joinChatGroup",content:{type:"single",id:R.detail.imUserId}}),R.showMessage=!1}},{icon:function(){return l(j,{class:G.shareImg,src:v},null)},text:function(){return l("div",{class:G.shareText},[c("发送消息")])}}),l(z,{onClick:function(){m({api:"callPhone",content:{phone:R.detail.phone}}),R.showMessage=!1}},{icon:function(){return l(j,{class:G.shareImg,src:b},null)},text:function(){return l("div",{class:G.shareText},[c("拨打电话")])}})]}})])])]}}),l(x,{show:R.showDialog,"onUpdate:show":function(e){return R.showDialog=e},title:"解除绑定",message:"解除绑定后,该伴学老师将退出所有班级群,若需重新绑定可通过伴学老师邀请码重新填写资料后绑定\n\n确认需要解除绑定吗?",messageAlign:"left",showCancelButton:!0,confirmButtonText:"确认",cancelButtonText:"取消",onConfirm:F},null)])}}}))}}}))}();