companion-detail-legacy.cdb52d3d.js 12 KB

1
  1. !function(){var e=document.createElement("style");e.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(e),System.register(["./index-legacy.eb062188.js","./icon_teacher-legacy.07765f44.js","./icon-message-legacy.e6b4ca35.js","./icon-call-message-legacy.418e09d8.js","./index-legacy.ad813f4d.js","./index-legacy.e0860c0a.js","./index-legacy.148f784c.js","./index-legacy.918b8c74.js","./index-legacy.fecc738b.js","./index-legacy.11f1ea5f.js","./index-legacy.761bf286.js"],(function(e){"use strict";var o,t,n,a,i,_,l,r,s,c,d,f,m,u,g,h,k,q,p,C,b,w,v,y,x,T,j,I,N;return{setters:[function(e){o=e.d,t=e.ah,n=e.ag,a=e.r,i=e.$,_=e.c,l=e.aj,r=e.q,s=e.ak,c=e.B,d=e.P,f=e.a5,m=e.e,u=e.F,g=e.al,h=e.m,k=e.g},function(e){q=e.i},function(e){p=e.i},function(e){C=e.i,b=e.a},function(e){w=e.O},function(e){v=e.O},function(e){y=e.C},function(e){x=e.C},function(e){T=e.I},function(e){j=e.T},function(e){I=e.G,N=e.a}],execute:function(){var z={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(e,{slots:o,attrs:G,emit:B}){const S=t(),L=n(),M=a({showMessage:!1,detail:{},classList:[],showDialog:!1}),D=async()=>{try{const{data:e}=await h.post("/api-school/classGroup/teacherHandoverList/"+S.query.id,{hideLoading:!1});if((e||[]).length>0)return void L.push({path:"/companion-unbind",query:{id:S.query.id}});M.showDialog=!0}catch{}},F=async()=>{try{await h.post("/api-school/classGroup/handoverTeacher",{data:{teacherId:S.query.id}}),L.back()}catch{}};return i((()=>{(async()=>{try{const e=S.query,{data:o}=await h.post("/api-school/teacher/detail",{data:{teacherId:e.id,schoolId:k.user.data.school.id}});M.detail=o;const t=o.subjectName?o.subjectName.split(","):[];M.detail.subjectNames=t}catch{}})(),(async()=>{try{const e=S.query,{data:o}=await h.post("/api-school/classGroup/page",{data:{teacherId:e.id,schoolId:k.user.data.school.id,page:1,rows:100}});M.classList=o.rows||[]}catch{}})()})),()=>_(u,null,[_(l,null,null),_(y,{inset:!0,class:z.detailCellGroup},{default:()=>[_(x,{center:!0,class:z.detailCell},{icon:()=>_("div",{class:z.avatarContainer},[_(T,{class:z.img,src:M.detail.avatar||q,fit:"cover"},null),M.detail.delFlag&&_(j,{class:z.avatarType,round:!0,color:"#F44541",textColor:"#fff"},{default:()=>[r("解绑")]})]),title:()=>_("div",{class:z.teacherContent},[_("div",{class:z.content},[_("p",{class:[z.name,"van-ellipsis"]},[M.detail.nickname])]),_("div",{class:z.classNum},[_("p",{class:z.num},[M.detail.completedCourseScheduleNum||0,r("/"),M.detail.totalCourseScheduleNum||0]),_("p",{class:z.numText},[r("课时")])])]),value:()=>_(T,{class:z.messageImg,src:p,onClick:()=>M.showMessage=!0},null)}),M.detail.subjectNames&&M.detail.subjectNames.legnth>0&&_(x,{center:!0},{title:()=>_("div",{class:z.subjectContainer},[_("span",null,[r("声部:")]),_("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},[M.detail.subjectNames&&M.detail.subjectNames.map((e=>{return _(j,{type:"primary",class:z.tagSubject,color:"#FFE7DA",textColor:"#F67146"},"function"==typeof(o=e)||"[object Object]"===Object.prototype.toString.call(o)&&!g(o)?e:{default:()=>[e]});var o}))])])})]}),_("div",{class:z.sectionTitle},[_("i",null,null),r("基本信息")]),_(y,{inset:!0,class:[z.detailCellGroup,z.sectionCellGroup]},{default:()=>[_(x,{title:"手机号码",value:M.detail.phone},null),_(x,{title:"性别",value:1==M.detail.gender?"男":0==M.detail.gender?"女":""},null),_(x,{title:"声部",value:M.detail.subjectName},null)]}),_("div",{class:z.sectionTitle},[_("i",null,null),r("所在班级")]),_(y,{inset:!0,class:[z.detailCellGroup,z.sectionCellGroup]},{default:()=>[M.classList.map((e=>_(x,{center:!0,class:z.companionCell},{title:()=>_("div",{class:z.classInfo},[_("p",{class:z.className},[e.name]),_("p",{class:z.musicName},[e.orchestraName])]),value:()=>_("div",{class:z.num},[_("p",{class:z.nums},[e.completeCourseScheduleNum,r("/"),e.courseScheduleNum]),_("p",{class:z.numTip},[r("总课时")])])}))),M.classList.length<=0&&_(s,{btnStatus:!1,tips:"暂无班级"},null)]}),M.detail.id&&!M.detail.delFlag&&_(w,{position:"bottom"},{default:()=>[_("div",{class:["btnGroup"],style:{paddingLeft:"13px",paddingRight:"13px"}},[_(c,{type:"primary",round:!0,block:!0,onClick:D},{default:()=>[r("解除绑定")]})])]}),_(d,{show:M.showMessage,"onUpdate:show":e=>M.showMessage=e,position:"bottom",style:{background:"transparent"}},{default:()=>[_("div",{class:z.codeContainer},[_("div",{class:z.codeBottom},[_(f,{name:"cross",size:22,class:z.close,color:"#666",onClick:()=>M.showMessage=!1},null),_("h3",{class:z.title},[_("i",null,null),r("联系方式")]),_(I,{columnNum:2,border:!1},{default:()=>[_(N,{onClick:()=>{m({api:"joinChatGroup",content:{type:"single",id:M.detail.imUserId}}),M.showMessage=!1}},{icon:()=>_(T,{class:z.shareImg,src:C},null),text:()=>_("div",{class:z.shareText},[r("发送消息")])}),_(N,{onClick:()=>{m({api:"callPhone",content:{phone:M.detail.phone}}),M.showMessage=!1}},{icon:()=>_(T,{class:z.shareImg,src:b},null),text:()=>_("div",{class:z.shareText},[r("拨打电话")])})]})])])]}),_(v,{show:M.showDialog,"onUpdate:show":e=>M.showDialog=e,title:"解除绑定",message:"解除绑定后,该伴学老师将退出所有班级群,若需重新绑定可通过伴学老师邀请码重新填写资料后绑定\\n\\n确认需要解除绑定吗?",messageAlign:"left",showCancelButton:!0,confirmButtonText:"确认",cancelButtonText:"取消",onConfirm:F},null)])}}))}}}))}();