index-legacy.ee739983.js 8.8 KB

1
  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.90c82f08.js","./index-legacy.84457c4c.js","./logo-legacy.56c05c44.js","./default-icon-legacy.59172ab1.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.4e015ad0.js","./icon-call-message-legacy.418e09d8.js","./index-legacy.e4343e46.js","./index-legacy.eb4bc59e.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,W,b,y,x,T,M,C;return{setters:[function(e){n=e.d,i=e.ag,r=e.c,o=e.q,a=e.F,c=e.r,s=e.$,l=e.aZ,p=e.aj,u=e.a5,m=e.ak,d=e.P,f=e.e,g=e.g,_=e.m,v=e.o},function(e){h=e.O},function(e){A=e.s,w=e.l},function(e){q=e.d},function(e){W=e.m},function(e){b=e.g},function(e){y=e.i,x=e.a},function(e){T=e.G,M=e.a},function(e){C=e.I}],execute:function(){var R="_itemWrap_1vqpc_1",E="_topWrap_1vqpc_6",U="_itemRight_1vqpc_14",k="_itemLeft_1vqpc_17",j="_headerWrap_1vqpc_22",B="_infoWrap_1vqpc_42",F="_msgIcon_1vqpc_48",I="_bottomWrap_1vqpc_52",N="_statusTagWrap_1vqpc_68",Q="_statusTag_1vqpc_68",L=n({props:["item"],emits:["toMsg"],name:"teacher-item",setup:function(e,t){var n=t.emit;return i(),function(){return r(a,null,[r("div",{class:R,onClick:function(){n("toMsg",e.item)}},[r("div",{class:E},[r("div",{class:k},[r("div",{class:j},[r("img",{src:e.item.avatar?e.item.avatar:q,alt:""},null)])]),r("div",{class:U},[r("div",{class:B},[r("p",null,[e.item.nickname])]),r("img",{class:F,src:W,alt:""},null)])]),r("div",null,[r("div",{class:I},[r("p",null,[o("声部:")]),r("div",{class:N},[e.item.subjectName.split(",").map((function(e){return r("div",{class:Q},[e||"暂无声部"])}))])])])])])}}});e("default",n({name:"school-detail",setup:function(){var e=i(),n=c({list:[],info:{},heightV:0,scrollTop:0,showMessage:!1,selectItem:{}}),q=function(){var e=t(regeneratorRuntime.mark((function e(){var t,i,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(g.user.data.schoolInfos||[]).map((function(e){return e.id})).join(","),e.prev=1,e.next=4,_.get("/api-school/school/detail/".concat(t),{});case 4:i=e.sent,r=i.data,n.info=r,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),v(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}}(),W=function(){e.push({path:"/school-eidt",query:{page:"type"}})},R=function(){var e=t(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.post("/api-school/teacher/page",{data:{page:1,rows:9999,delFlag:!1}});case 3:t=e.sent,i=t.data,n.list=i.rows,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),v(e.t0.message);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();s((function(){window.addEventListener("scroll",U),q(),R()})),l((function(){window.removeEventListener("scroll",U)}));var E=function(e){n.heightV=e},U=function(){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;n.scrollTop=e};return function(){return r(a,null,[r("div",{class:A.schoolWrap},[r(h,{onGetHeight:E},{default:function(){return[r(p,{border:!1,background:n.heightV>n.scrollTop?"transparent":"#fff"},{right:function(){return r(u,{style:{fontSize:"24px"},name:"data:image/png;base64,iVBORw0KGg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SZ/luVmlXdAbitTUeT5tR6p+ZPj/9/D50dvYqj/gCi/TjAPR7xfZTOds8kfqqRKZ1PVOoDqkdMb/zzcibZAdAFsHupQrewYtlG6jr7IpFINMTj8fPM/AURNSgAjUop437zZuuQr6zVs0g9AODe8yzgubaGjvY/dkSYprmXmX9UEP5qChFdtixrZyiAkMesHoBkAaDSluMENH0DHb4oSwLCADDzk1gs9tng4OBfoQCcyYoH3T4hlNoChrOnowG8j0TWObJ9PRRDyDnovqHr+ndB4l95R9WNUZ23AFBvz7wEGz4uT68z61QAAAAASUVORK5CYII=",onClick:W},null)}})]}}),r("div",{class:A.absWrap},[r("div",{class:A.schoolMainTitle},[r("div",{class:A.schoolMainLeft},[r("img",{src:n.info.logo?n.info.logo:w,alt:""},null)]),r("div",{class:A.schoolMainRight},[r("p",{class:A.schoolMainTitle},[n.info.name]),r("p",{class:A.schoolMainSub},[n.info.provinceName,n.info.cityName])])]),r("div",{class:A.detailInfo},[r("p",null,[r("span",null,[o("主管领导")]),n.info.emergencyContact]),r("p",null,[r("span",null,[o("管理老师")]),n.info.educationalAdministrationUsername]),r("p",null,[r("span",null,[o("学年制")]),b[n.info.schoolSystem]," "]),r("p",null,[r("span",null,[o("邮箱账号")]),n.info.email]),r("p",{class:A.flexP},[r("span",null,[o("学校地址")]),o(" "),r("p",null,[n.info.address])])])]),r("div",{class:[A.teacherList]},[r("h2",{class:A.teacherTitle},[r("div",{class:A.dot},null),r("p",null,[o("伴学老师")])]),n.list.length>0?r("div",null,[n.list.map((function(e){return r(L,{item:e,onToMsg:function(e){n.selectItem=e,n.showMessage=!0}},null)}))]):r(m,{tips:"暂无伴学老师"},null)])]),r(d,{show:n.showMessage,"onUpdate:show":function(e){return n.showMessage=e},position:"bottom",style:{background:"transparent"}},{default:function(){return[r("div",{class:A.codeContainer},[r("div",{class:A.codeBottom},[r(u,{name:"cross",size:22,class:A.close,color:"#666",onClick:function(){return n.showMessage=!1}},null),r("h3",{class:A.title},[r("i",null,null),o("联系方式")]),r(T,{columnNum:2,border:!1},{default:function(){return[r(M,{onClick:function(){f({api:"joinChatGroup",content:{type:"single",id:n.selectItem.imUserId}}),n.showMessage=!1}},{icon:function(){return r(C,{class:A.shareImg,src:y},null)},text:function(){return r("div",{class:A.shareText},[o("发送消息")])}}),r(M,{onClick:function(){f({api:"callPhone",content:{phone:n.selectItem.phone}}),n.showMessage=!1}},{icon:function(){return r(C,{class:A.shareImg,src:x},null)},text:function(){return r("div",{class:A.shareText},[o("拨打电话")])}})]}})])])]}})])}}}))}}}))}();