1 |
- !function(){function e(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function t(t){return function(){var n=this,i=arguments;return new Promise((function(r,o){var a=t.apply(n,i);function c(t){e(a,r,o,c,s,"next",t)}function s(t){e(a,r,o,c,s,"throw",t)}c(void 0)}))}}var n=document.createElement("style");n.innerHTML="._itemWrap_1vqpc_1{background-color:#fff;margin-bottom:.32rem;border-radius:.26667rem}._itemWrap_1vqpc_1 ._topWrap_1vqpc_6{padding:.4rem .34667rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:.02667rem solid #f2f2f2}._itemWrap_1vqpc_1:nth-last-child(1) ._itemRight_1vqpc_14{border-bottom:none!important}._itemWrap_1vqpc_1 ._itemLeft_1vqpc_17{display:flex;flex-direction:row;align-items:center}._itemWrap_1vqpc_1 ._itemLeft_1vqpc_17 ._headerWrap_1vqpc_22{width:1.06667rem;height:1.06667rem;border-radius:50%;margin-right:.26667rem;overflow:hidden}._itemWrap_1vqpc_1 ._itemLeft_1vqpc_17 ._headerWrap_1vqpc_22 img{width:100%;height:100%}._itemWrap_1vqpc_1 ._itemRight_1vqpc_14{height:1.28rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-right:.34667rem;width:8.05333rem}._itemWrap_1vqpc_1 ._itemRight_1vqpc_14 ._infoWrap_1vqpc_42 p{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._itemWrap_1vqpc_1 ._itemRight_1vqpc_14 ._msgIcon_1vqpc_48{width:.64rem;height:.64rem}._itemWrap_1vqpc_1 ._bottomWrap_1vqpc_52{display:flex;flex-direction:row;align-items:top;padding:.4rem .32rem;font-size:.37333rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.53333rem}._itemWrap_1vqpc_1 ._bottomWrap_1vqpc_52 p{width:1.28rem;padding-top:.05333rem;margin-bottom:.16rem}._itemWrap_1vqpc_1 ._bottomWrap_1vqpc_52 ._statusTagWrap_1vqpc_68{width:7.06667rem;display:flex;flex-direction:row;align-items:top;flex-wrap:wrap;margin-top:.02667rem}._itemWrap_1vqpc_1 ._bottomWrap_1vqpc_52 ._statusTagWrap_1vqpc_68 ._statusTag_1vqpc_68{font-size:.32rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#f67146;line-height:.50667rem;padding:.02667rem .21333rem;margin-right:.16rem;margin-bottom:.16rem;background:#ffe7da;border-radius:.10667rem}\n",document.head.appendChild(n),System.register(["./index-legacy.a7d85227.js","./index-legacy.03e232b9.js","./logo-legacy.56c05c44.js","./index-legacy.2542fc2a.js","./default-icon-legacy.59172ab1.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.ec5d708a.js","./icon-call-message-legacy.418e09d8.js","./index-legacy.f11810bd.js","./index-legacy.4d21a2de.js","./index-legacy.18da61db.js"],(function(e){"use strict";var n,i,r,o,a,c,s,l,p,u,m,d,f,g,_,v,h,A,w,q,b,W,y,x,T,M,C;return{setters:[function(e){n=e.O},function(e){i=e.O},function(e){r=e.s,o=e.l},function(e){a=e.d,c=e.ag,s=e.c,l=e.q,p=e.F,u=e.r,m=e.$,d=e.a_,f=e.a5,g=e.aj,_=e.P,v=e.k,h=e.f,A=e.m,w=e.o},function(e){q=e.d},function(e){b=e.m},function(e){W=e.g},function(e){y=e.i,x=e.a},function(e){T=e.G,M=e.a},function(e){C=e.I},function(){}],execute:function(){var R="_itemWrap_1vqpc_1",j="_topWrap_1vqpc_6",E="_itemRight_1vqpc_14",U="_itemLeft_1vqpc_17",k="_headerWrap_1vqpc_22",B="_infoWrap_1vqpc_42",F="_msgIcon_1vqpc_48",I="_bottomWrap_1vqpc_52",N="_statusTagWrap_1vqpc_68",Q="_statusTag_1vqpc_68",L=a({props:["item"],emits:["toMsg"],name:"teacher-item",setup:function(e,t){var n=t.emit;return c(),function(){return s(p,null,[s("div",{class:R,onClick:function(){n("toMsg",e.item)}},[s("div",{class:j},[s("div",{class:U},[s("div",{class:k},[s("img",{src:e.item.avatar?e.item.avatar:q,alt:""},null)])]),s("div",{class:E},[s("div",{class:B},[s("p",null,[e.item.nickname])]),s("img",{class:F,src:b,alt:""},null)])]),s("div",null,[s("div",{class:I},[s("p",null,[l("声部:")]),s("div",{class:N},[e.item.subjectName.split(",").map((function(e){return s("div",{class:Q},[e||"暂无声部"])}))])])])])])}}});e("default",a({name:"school-detail",setup:function(){var e=c(),a=u({list:[],info:{},heightV:0,scrollTop:0,showMessage:!1,selectItem:{}}),q=function(){var e=t(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(h.user.data.schoolInfos||[]).map((function(e){return e.id})).join(","),e.prev=1,e.next=4,A.get("/api-school/school/detail/".concat(t),{});case 4:n=e.sent,i=n.data,a.info=i,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),w(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}}(),b=function(){e.push({path:"/school-eidt",query:{page:"type"}})},R=function(){var e=t(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,A.post("/api-school/teacher/page",{data:{page:1,rows:9999,delFlag:!1}});case 3:t=e.sent,n=t.data,a.list=n.rows,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),w(e.t0.message);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();m((function(){window.addEventListener("scroll",E),q(),R()})),d((function(){window.removeEventListener("scroll",E)}));var j=function(e){a.heightV=e},E=function(){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;a.scrollTop=e};return function(){return s(p,null,[s("div",{class:r.schoolWrap},[s(i,{onGetHeight:j},{default:function(){return[s(n,{border:!1,background:a.heightV>a.scrollTop?"transparent":"#fff"},{right:function(){return s(f,{style:{fontSize:"24px"},name:"data:image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/wX3EQQMIl9DlY20SZ/luVmlXdAbitTUeT5tR6p+ZPj/9/D50dvYqj/gCi/TjAPR7xfZTOds8kfqqRKZ1PVOoDqkdMb/zzcibZAdAFsHupQrewYtlG6jr7IpFINMTj8fPM/AURNSgAjUop437zZuuQr6zVs0g9AODe8yzgubaGjvY/dkSYprmXmX9UEP5qChFdtixrZyiAkMesHoBkAaDSluMENH0DHb4oSwLCADDzk1gs9tng4OBfoQCcyYoH3T4hlNoChrOnowG8j0TWObJ9PRRDyDnovqHr+ndB4l95R9WNUZ23AFBvz7wEGz4uT68z61QAAAAASUVORK5CYII=",onClick:b},null)}})]}}),s("div",{class:r.absWrap},[s("div",{class:r.schoolMainTitle},[s("div",{class:r.schoolMainLeft},[s("img",{src:a.info.logo?a.info.logo:o,alt:""},null)]),s("div",{class:r.schoolMainRight},[s("p",{class:r.schoolMainTitle},[a.info.name]),s("p",{class:r.schoolMainSub},[a.info.provinceName,a.info.cityName])])]),s("div",{class:r.detailInfo},[s("p",null,[s("span",null,[l("主管领导")]),a.info.emergencyContact]),s("p",null,[s("span",null,[l("管理老师")]),a.info.educationalAdministrationUsername]),s("p",null,[s("span",null,[l("学年制")]),W[a.info.schoolSystem]," "]),s("p",null,[s("span",null,[l("邮箱账号")]),a.info.email]),s("p",{class:r.flexP},[s("span",null,[l("学校地址")]),l(" "),s("p",null,[a.info.address])])])]),s("div",{class:[r.teacherList]},[s("h2",{class:r.teacherTitle},[s("div",{class:r.dot},null),s("p",null,[l("伴学指导")])]),a.list.length>0?s("div",null,[a.list.map((function(e){return s(L,{item:e,onToMsg:function(e){a.selectItem=e,a.showMessage=!0}},null)}))]):s(g,{tips:"暂无伴学指导"},null)])]),s(_,{show:a.showMessage,"onUpdate:show":function(e){return a.showMessage=e},position:"bottom",style:{background:"transparent"}},{default:function(){return[s("div",{class:r.codeContainer},[s("div",{class:r.codeBottom},[s(f,{name:"cross",size:22,class:r.close,color:"#666",onClick:function(){return a.showMessage=!1}},null),s("h3",{class:r.title},[s("i",null,null),l("联系方式")]),s(T,{columnNum:2,border:!1},{default:function(){return[s(M,{onClick:function(){v({api:"joinChatGroup",content:{type:"single",id:a.selectItem.imUserId}}),a.showMessage=!1}},{icon:function(){return s(C,{class:r.shareImg,src:y},null)},text:function(){return s("div",{class:r.shareText},[l("发送消息")])}}),s(M,{onClick:function(){v({api:"callPhone",content:{phone:a.selectItem.phone}}),a.showMessage=!1}},{icon:function(){return s(C,{class:r.shareImg,src:x},null)},text:function(){return s("div",{class:r.shareText},[l("拨打电话")])}})]}})])])]}})])}}}))}}}))}();
|