1 |
- import{O as v}from"./index.8b92ee84.js";import{O as W}from"./index.bf624f4f.js";import{s as a,l as T}from"./logo.0109e500.js";import{d as u,ag as d,c as t,q as i,F as g,k as B,o as r,r as E,$ as F,aT as y,a5 as I,ai as U,f as N,m as p}from"./index.83786b38.js";import{d as w}from"./default-icon.11fd2315.js";import{m as C}from"./msg-icon.adf37f7b.js";import{g as R}from"./index.931cf0b8.js";import"./index.44821b13.js";var b="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 Q="_itemWrap_1vqpc_1",_="_topWrap_1vqpc_6",D="_itemRight_1vqpc_14",L="_itemLeft_1vqpc_17",q="_headerWrap_1vqpc_22",M="_infoWrap_1vqpc_42",O="_msgIcon_1vqpc_48",H="_bottomWrap_1vqpc_52",k="_statusTagWrap_1vqpc_68",z="_statusTag_1vqpc_68";var e={itemWrap:Q,topWrap:_,itemRight:D,itemLeft:L,headerWrap:q,infoWrap:M,msgIcon:O,bottomWrap:H,statusTagWrap:k,statusTag:z},S=u({props:["item"],name:"teacher-item",setup(l){d();const s=async()=>{try{await B({api:"joinChatGroup",content:{type:"single",id:l.item.imUserId}})}catch{r("\u53D1\u8D77\u804A\u5929\u5931\u8D25")}};return console.log(l.item),()=>t(g,null,[t("div",{class:e.itemWrap,onClick:s},[t("div",{class:e.topWrap},[t("div",{class:e.itemLeft},[t("div",{class:e.headerWrap},[t("img",{src:l.item.avatar?l.item.avatar:w,alt:""},null)])]),t("div",{class:e.itemRight},[t("div",{class:e.infoWrap},[t("p",null,[l.item.nickname])]),t("img",{class:e.msgIcon,src:C,alt:""},null)])]),t("div",null,[t("div",{class:e.bottomWrap},[t("p",null,[i("\u58F0\u90E8\uFF1A")]),t("div",{class:e.statusTagWrap},[l.item.subjectName.split(",").map(n=>t("div",{class:e.statusTag},[n||"\u6682\u65E0\u58F0\u90E8"]))])])])])])}}),Z=u({name:"school-detail",setup(){const l=d(),s=E({list:[],info:{},heightV:0,scrollTop:0}),n=async()=>{const o=(N.user.data.schoolInfos||[]).map(c=>c.id).join(",");try{const{data:c}=await p.get(`/api-school/school/detail/${o}`,{});s.info=c}catch(c){r(c.message)}},A=()=>{l.push({path:"/school-eidt"})},h=async()=>{try{const{data:o}=await p.post("/api-school/teacher/page",{data:{page:1,rows:9999,delFlag:!1}});s.list=o.rows}catch(o){r(o.message)}};F(()=>{window.addEventListener("scroll",m),n(),h()}),y(()=>{window.removeEventListener("scroll",m)});const f=o=>{s.heightV=o},m=()=>{const o=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;s.scrollTop=o};return()=>t(g,null,[t("div",{class:a.schoolWrap},[t(W,{onGetHeight:f},{default:()=>[t(v,{border:!1,background:s.heightV>s.scrollTop?"transparent":"#fff"},{right:()=>t(I,{style:{fontSize:"24px"},name:b,onClick:A},null)})]}),t("div",{class:a.absWrap},[t("div",{class:a.schoolMainTitle},[t("div",{class:a.schoolMainLeft},[t("img",{src:s.info.logo?s.info.logo:T,alt:""},null)]),t("div",{class:a.schoolMainRight},[t("p",{class:a.schoolMainTitle},[s.info.name]),t("p",{class:a.schoolMainSub},[s.info.provinceName,s.info.cityName])])]),t("div",{class:a.detailInfo},[t("p",null,[t("span",null,[i("\u4E3B\u7BA1\u9886\u5BFC")]),s.info.emergencyContact]),t("p",null,[t("span",null,[i("\u7BA1\u7406\u8001\u5E08")]),s.info.educationalAdministrationUsername]),t("p",null,[t("span",null,[i("\u5B66\u5E74\u5236")]),R[s.info.schoolSystem]," "]),t("p",null,[t("span",null,[i("\u90AE\u7BB1\u8D26\u53F7")]),s.info.email]),t("p",{class:a.flexP},[t("span",null,[i("\u5B66\u6821\u5730\u5740")]),i(" "),t("p",null,[s.info.address])])])]),t("div",{class:[a.teacherList]},[t("h2",{class:a.teacherTitle},[t("div",{class:a.dot},null),t("p",null,[i("\u4F34\u5B66\u6307\u5BFC")])]),s.list.length>0?t("div",null,[s.list.map(o=>t(S,{item:o},null))]):t(U,{tips:"\u6682\u65E0\u4F34\u5B66\u6307\u5BFC"},null)])])])}});export{Z as default};
|