index.cbff9e9e.js 5.8 KB

1
  1. import{d as A,ag as f,c as s,q as o,F as v,r as E,$ as I,b1 as w,aj as F,a5 as u,ak as M,P as C,e as m,g as b,m as p,o as g}from"./index.5f7ffb46.js";import{O as y}from"./index.7790de2a.js";import{s as t,l as U}from"./logo.8acf0b46.js";import{d as D}from"./default-icon.11fd2315.js";import{m as N}from"./msg-icon.adf37f7b.js";import{g as R}from"./index.b28db9f5.js";import{i as Q,a as _}from"./icon-call-message.08ca784d.js";import{G as q,a as d}from"./index.adf0b8fc.js";import{I as h}from"./index.276a5d68.js";var L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA+JJREFUaEPtmU9oFFccx7+/mbUhVl3aiwjaXvYiOQQyY6iiFwWpf1qkkt1EvUmTeCzEUiO6b4UqVMWjRntU426oiNg/CHpoRTE7L5BDKBQ96BbES6WJJlSz85OxWTM7zmzerMnuRPOOM29mvp/f3zfvEeb5oHmuH+82QEtLy2oiOgpgI4BlNfbWKICbzNw7NDT0Z9C3Az3Q3NzcFIvFbtdBuFfr6OTk5Lrh4eERP4hAAMMwrgHYVmOrB33uZynl9rAATwF8GBGAZ1LKJWEB2P2AlLKmCW8YhtL3K4WQ0gvmykMLAKoWWPBAgAVUDfj+5oBpmluYuQ/AqirDqKBpWmc+n//N7/k594BhGA/fQnxJc0FK+ckCQDUWmAqhswBWVhtCRNRlWdavAd8fB9A4dW9cSum7KohyEjvG+XoK4JyUsnNeLSUAkGmanzuiLctyEr1sZVCCiawHVMMysgCcad8Gts8AZIPQTemsb65UDRCiDxQqJaufpfnILgN28Y/pJOa/SeR8+03VACH7QGC99wJwb8dyNNh5cFmDfEgi++msJvFcAHBf5yI8Gr0J8PrXYslJXt5N6Vz/rALMRQixSJ0B0FUulE6QuLQ/9E+96lpEtVrMNI9Fshug05551zFib6WBgWKkATjdsR5k3wDwgUvoPTTorXTg4pNK8FUn8UwWVb3PB9tXYRHnASyffobHoOlr6XC/71aK+911BeBv2hoR134HYLpE2QDvJJG7omKE+gKI1HkAu8uEEgtK5zIq4p05dQNg0d4D8HGP0CsQ2a8IYFeVQ6VGWBcAFqnNAH4BoLsARjA+sZZ+uDrmXPP0mcBGWHMAFm0JQLsL4GOX+H+go5UOZe+XrqmW8ZoC8LdfLsXixjsAmlzii9CxlQ5lr7vDKXIA7OSbSF0GsMOTtD2Uzp30Jm30ADLJNJiER+gFEtk9fhUnUgAskjsA+gmA5hIr8a+9gU4NTEQagI90NMEu3gFoqUvoY7ygNfT9pUJQvY+EB/jYro/wX3EQQMIl9DlY20SZ/luVmlXdAbitTUeT5tR6p+ZPj/9/D50dvYqj/gCi/TjAPR7xfZTOds8kfqqRKZ1PVOoDqkdMb/zzcibZAdAFsHupQrewYtlG6jr7IpFINMTj8fPM/AURNSgAjUop437zZuuQr6zVs0g9AODe8yzgubaGjvY/dkSYprmXmX9UEP5qChFdtixrZyiAkMesHoBkAaDSluMENH0DHb4oSwLCADDzk1gs9tng4OBfoQCcyYoH3T4hlNoChrOnowG8j0TWObJ9PRRDyDnovqHr+ndB4l95R9WNUZ23AFBvz7wEGz4uT68z61QAAAAASUVORK5CYII=";const k="_itemWrap_1vqpc_1",O="_topWrap_1vqpc_6",z="_itemRight_1vqpc_14",H="_itemLeft_1vqpc_17",G="_headerWrap_1vqpc_22",S="_infoWrap_1vqpc_42",P="_msgIcon_1vqpc_48",V="_bottomWrap_1vqpc_52",J="_statusTagWrap_1vqpc_68",Y="_statusTag_1vqpc_68";var l={itemWrap:k,topWrap:O,itemRight:z,itemLeft:H,headerWrap:G,infoWrap:S,msgIcon:P,bottomWrap:V,statusTagWrap:J,statusTag:Y},j=A({props:["item"],emits:["toMsg"],name:"teacher-item",setup(i,{emit:a}){return f(),()=>s(v,null,[s("div",{class:l.itemWrap,onClick:()=>{a("toMsg",i.item)}},[s("div",{class:l.topWrap},[s("div",{class:l.itemLeft},[s("div",{class:l.headerWrap},[s("img",{src:i.item.avatar?i.item.avatar:D,alt:""},null)])]),s("div",{class:l.itemRight},[s("div",{class:l.infoWrap},[s("p",null,[i.item.nickname])]),s("img",{class:l.msgIcon,src:N,alt:""},null)])]),s("div",null,[s("div",{class:l.bottomWrap},[s("p",null,[o("\u58F0\u90E8\uFF1A")]),s("div",{class:l.statusTagWrap},[i.item.subjectName.split(",").map(c=>s("div",{class:l.statusTag},[c||"\u6682\u65E0\u58F0\u90E8"]))])])])])])}}),os=A({name:"school-detail",setup(){const i=f(),a=E({list:[],info:{},heightV:0,scrollTop:0,showMessage:!1,selectItem:{}}),c=async()=>{const e=(b.user.data.schoolInfos||[]).map(n=>n.id).join(",");try{const{data:n}=await p.get(`/api-school/school/detail/${e}`,{});a.info=n}catch(n){g(n.message)}},W=()=>{i.push({path:"/school-eidt",query:{page:"type"}})},T=async()=>{try{const{data:e}=await p.post("/api-school/teacher/page",{data:{page:1,rows:9999,delFlag:!1}});a.list=e.rows}catch(e){g(e.message)}};I(()=>{window.addEventListener("scroll",r),c(),T()}),w(()=>{window.removeEventListener("scroll",r)});const B=e=>{a.heightV=e},r=()=>{const e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;a.scrollTop=e};return()=>s(v,null,[s("div",{class:t.schoolWrap},[s(y,{onGetHeight:B},{default:()=>[s(F,{border:!1,background:a.heightV>a.scrollTop?"transparent":"#fff"},{right:()=>s(u,{style:{fontSize:"24px"},name:L,onClick:W},null)})]}),s("div",{class:t.absWrap},[s("div",{class:t.schoolMainTitle},[s("div",{class:t.schoolMainLeft},[s("img",{src:a.info.logo?a.info.logo:U,alt:""},null)]),s("div",{class:t.schoolMainRight},[s("p",{class:t.schoolMainTitle},[a.info.name]),s("p",{class:t.schoolMainSub},[a.info.provinceName,a.info.cityName])])]),s("div",{class:t.detailInfo},[s("p",null,[s("span",null,[o("\u4E3B\u7BA1\u9886\u5BFC")]),a.info.emergencyContact]),s("p",null,[s("span",null,[o("\u7BA1\u7406\u8001\u5E08")]),a.info.educationalAdministrationUsername]),s("p",null,[s("span",null,[o("\u5B66\u5E74\u5236")]),R[a.info.schoolSystem]," "]),s("p",null,[s("span",null,[o("\u90AE\u7BB1\u8D26\u53F7")]),a.info.email]),s("p",{class:t.flexP},[s("span",null,[o("\u5B66\u6821\u5730\u5740")]),o(" "),s("p",null,[a.info.address])])])]),s("div",{class:[t.teacherList]},[s("h2",{class:t.teacherTitle},[s("div",{class:t.dot},null),s("p",null,[o("\u4F34\u5B66\u8001\u5E08")])]),a.list.length>0?s("div",null,[a.list.map(e=>s(j,{item:e,onToMsg:n=>{a.selectItem=n,a.showMessage=!0}},null))]):s(M,{tips:"\u6682\u65E0\u4F34\u5B66\u8001\u5E08"},null)])]),s(C,{show:a.showMessage,"onUpdate:show":e=>a.showMessage=e,position:"bottom",style:{background:"transparent"}},{default:()=>[s("div",{class:t.codeContainer},[s("div",{class:t.codeBottom},[s(u,{name:"cross",size:22,class:t.close,color:"#666",onClick:()=>a.showMessage=!1},null),s("h3",{class:t.title},[s("i",null,null),o("\u8054\u7CFB\u65B9\u5F0F")]),s(q,{columnNum:2,border:!1},{default:()=>[s(d,{onClick:()=>{m({api:"joinChatGroup",content:{type:"single",id:a.selectItem.imUserId}}),a.showMessage=!1}},{icon:()=>s(h,{class:t.shareImg,src:Q},null),text:()=>s("div",{class:t.shareText},[o("\u53D1\u9001\u6D88\u606F")])}),s(d,{onClick:()=>{m({api:"callPhone",content:{phone:a.selectItem.phone}}),a.showMessage=!1}},{icon:()=>s(h,{class:t.shareImg,src:_},null),text:()=>s("div",{class:t.shareText},[o("\u62E8\u6253\u7535\u8BDD")])})]})])])]})])}});export{os as default};