index-legacy.bbfc4ad9.js 11 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML="._phoneDetail_ivqxi_1{height:calc(100vh - var(--header-height) - var(--header-cellGroup));overflow:hidden;overflow-y:auto}._photoWrap_ivqxi_6{display:flex;flex-wrap:wrap;padding:.32rem;box-sizing:border-box;justify-content:space-between}._photoWrap_ivqxi_6 div{box-sizing:border-box}._photoItem_ivqxi_16{position:relative;width:49%;margin-bottom:.32rem}._photoItem_ivqxi_16 ._gridImg_ivqxi_21{display:flex;justify-content:center;align-items:center;height:50vw;width:100%;border-radius:.05333rem;overflow:hidden;position:relative;background-color:#eaeaea;background-repeat:no-repeat;background-position:center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAACRdJREFUeF7tnUtsU1cax7/v2nFCMK+UEErEK2AecZAC5SXeqN2guKPRjGZmW6mbdjUjNl10O5vZVO2q3VTqtq0qjYaAWMwovCQCUqCQODwMQTwDISFDMCHx45zqb8VVcn3te+zY5zrJ+STLUnLuPff87nfP9zjfuWYyooUAa+nFdEIGtCYlMKANaE0ENHVjNHqug5ZSvk9EXxDRx0S0lohqNI1JdzdJInpMRKeI6F/MPOh0ARXRaCnlISL6NxG9p3vUHvc3QkR/ZOZL9usoO+gpTe5dgJCzbAF7h12zKwH6ayL6u8ea5XX33zDzP6ZfRCVA3yeiFq9H6nH/A8y8qdKgE/PY8KnevyQzByoNWqpezXxux8wzZotKTB0GNBEZ0JoeIwO62kCfPXu2QQhxUgjxpykvolbTNVZFN5ZlUX19Pa1evZo2btxIgcAM2+Z6jUoaffr06XYpZScRNbuecQE0qK2tpb1799LSpUuVR+sKGpqcSqVuGsgzmQL2kSNHlDXbFfSZM2f+KYT4UvnWLaCGmzdvpq1btyqN2BV0Z2dnPxFtVzrbAmsUDAbp6NGjSqNWAT1BRAvK8CmRIyIYyBMnTig1VwFtAo4CKDs6OgxoJQKzbGRAuwBE6gE+cWNjI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gcpwy6OzJYrHY0mQy2Z5KpfDrOSFm3iilXM/MzVJK/GRT0edUuVAP2khmHpFSPmVmvDpsQAhxz+/399bU1PwaCoWKWkQtK5RoNBoIBAKrEolEIzPjtS8NUsoVQggYxCXM/LsxFEIsZmYYROw8qmPmOillLTPXYOFh6hvzPgwlvjNOx7QbmXE6plY8kJxPMXNaSoltDYmp70kpJYwgPu+klOOWZcEQZoyhlBKw3liWNcrMMIivpJTDgUDgZSKRGAqHwyUn+u2KUVbQHmjdnOnSgNZ0qwxoA1oTAU3dGI02oDUR0NTNb2QLa5d/JYlZAAAAAElFTkSuQmCC)}._photoItem_ivqxi_16 ._iconNew_ivqxi_35{position:absolute;top:.16rem;right:.16rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAiCAYAAADbLB6TAAAAAXNSR0IArs4c6QAAB6VJREFUaEPtmn9wVNUVx7/3vbe7b3ebOA4hypRWwZ/VjmDHERQQoiwWBIoQBjHaIhgTqFgETaVMIEapbQQDpEZCaNApUkQJvyQ4ID9UtPir1ZE6tjOlccbySwiVJPv27b73bufe27xks9nsZt+uM+qev3bunnvuuZ933rnn3F0CAKHbbrvSlKynKDAWQC4bywpAAJ0CrQCaCchRCusNP3E3kb17TyfLhzC4hmQdAXBhspO+43oGQPfIFFXe1w8dTsSCtAcKtlJgaiLF7PexBAiwWyLmfO/eN/8djw9pCxR8lU0LDsKH0laJSCW+fQf+3JMVBpg6MJ+dCp6rGcMK/76Dld2BZAGnMUQIsKw75Czg9AKmBKSoa7rIAk4jYG6K0lZZsoZ0HHzpAayqIBeKKo+2tQGtrHSML+SiiwGJAKYJerpLSZmXB+JyJb3ljrVI/3xAkcX6LS2ArvdogwwYIMZNC/T0qZ7X8flBLhCtAGV2mL0+Cqsu/PsOTmTT0gJYHjES6jKR362TJ6CV3A9oWly3fNt2gfj9sL48Da3oLlvPu7Ye0uDLkt5OeMtmRNavg+fxJ6HcdDOfp6+thdH4SowNMmgwfHXrBTjTRL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aYt4EM88DZbS1JpayFddDRoMiibEMJwgsecywO8DuMGJtbiAAUg3DuOvHtu0efQThBYtgK9xZ6+dHO+0+limdfiv1q2HPGgwrHMt0GYUQl1VA/maa2H89UPojz1qb9Pb8AKkgT9A5MB+hFdXw9e4A0SWYRx+C3rlMic4oh96e+DWDRR0lhOLvQHmqeLhRXCNv0NETH0dj6jeWmUngF1ziuGeMVOkhAfncsBEUaA31MPY3Hkn7p6/AK5Jk2G1tEBfWQXv8t8J/6pXwNjT5ARHNOC2wJhZANngxGIiwPB64a1bD+niAaDsFZUkHi3x7iKcAJauGwLvimq+nY6al8OePw/WPz6ztymPGg21XERqVG1cNAM4c8YJjmjAdNy4/HYa+Q8AJVWrCQGzVHHdEKhVK3kZ1CGZAAxZFuVal66N3brxvGpZnVvMvQC+LVuj/DGP/Quh0uJUMfQ4j7DRtsCYnQCZlKrlZADzVFEyF65p0xMDZofcmlUJ3WGNg7n3tRg9T3kFlFG32OPxLoDU59ZBvuxyWy+8eRMiDeLGLV3CAWtjx4w0CXkrVaPJAmY1qbe2DtIPL+FLOb2u5Cd+t1qY2VV+OgGehY/Y2+neOnd84SqZC3eXB64t/BWso5+kiiF+BLNv2gMFr1JAnER9lKQBs1Rx5VX2wZMpwOiXB9+ml3jlwsRuOrrtq2tzwdPI9Dv5jwDpFOEBi+JxtwwyLeljEJKTzgW+67ZswPxJB26dSUFfpPyX6Kykg0AMyPZAwVIKPJ4O41kbcSKVQWZ/pMhGsvMQiZsKWLqwqFWXzcmOIJ/vNdeyg8+ick2q1YUj174FkwnQmNRhJupklAGE3Q+m3PF9C5j1ZQvnFEsanhTgDquirQ5PIJBGU9AfA7iUADlO75P74vU3QJelhddlS1qs7t//z/8BiWSrXkTX3zkAAAAASUVORK5CYII=) no-repeat center center;background-size:100%;display:inline-block;width:1.17333rem;height:.45333rem}._photoItem_ivqxi_16 ._iconImage_ivqxi_45{display:flex;justify-content:center}._photoItem_ivqxi_16 ._gridName_ivqxi_49{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;padding:.21333rem 0 .10667rem}._photoItem_ivqxi_16 ._gridDes_ivqxi_56{color:#777;line-height:.45333rem;padding-left:.02667rem;font-size:.32rem}._cellGroup_ivqxi_62{width:calc(100% - .69333rem);margin:.32rem .34667rem 0}._select_ivqxi_66{height:1.2rem}._select_ivqxi_66 ._icon_ivqxi_35{width:.45333rem;height:.45333rem;margin-right:.10667rem;flex-shrink:0}._select_ivqxi_66 .van-cell__title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._select_ivqxi_66 .van-cell__right-icon{color:#333;transform:rotate(90deg);margin:0 0 0 .10667rem}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./icon-or-legacy.41f67ed6.js","./index-legacy.ad813f4d.js","./index-legacy.d64e5695.js","./index-legacy.148f784c.js","./index-legacy.918b8c74.js","./index-legacy.fad72574.js","./index-legacy.38b799d5.js","./use-tab-status-legacy.91417466.js","./Picker-legacy.95f03705.js","./index-legacy.ac7c51db.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var i,t,o,a,l,n,s,r,c,d,h,g,A,u,m,p,v,f,w;return{setters:[function(e){i=e.d,t=e.ah,o=e.ag,a=e.r,l=e.$,n=e.c,s=e.aj,r=e.q,c=e.ak,d=e.P,h=e.m,g=e.g},function(e){A=e.i},function(e){u=e.O},function(e){m=e.O},function(e){p=e.C},function(e){v=e.C},function(e){f=e.L},function(e){w=e.P},function(){},function(){},function(){},function(){},function(){}],execute:function(){var x="_phoneDetail_ivqxi_1",b="_photoWrap_ivqxi_6",y="_photoItem_ivqxi_16",q="_gridImg_ivqxi_21",C="_iconNew_ivqxi_35",B="_gridName_ivqxi_49",N="_gridDes_ivqxi_56",V="_cellGroup_ivqxi_62",j="_select_ivqxi_66",Z="_icon_ivqxi_35";e("default",i({name:"photo-detail",props:{orchestraId:{type:String,default:""}},setup(e){const i=t(),L=o(),Y=a({refreshing:!1,loading:!1,finished:!1,pages:{page:1,rows:20},list:[],schoolStatus:!1,schoolList:[],school:{}}),O=async()=>{Y.refreshing&&(Y.pages.page=1,Y.finished=!1,Y.list=[]),Y.loading=!0;try{var e;const i=await h.post(`${g.platformApi}/orchestraPhotoAlbum/page`,{data:{...Y.pages,schoolId:Y.school.id},hideLoading:!0});Array.isArray(null==i||null===(e=i.data)||void 0===e?void 0:e.rows)&&(Y.list=Y.list.concat(i.data.rows),Y.pages.page+=1,i.data.rows.length||(Y.finished=!0))}catch{Y.finished=!0}Y.loading=!1,setTimeout((()=>{Y.refreshing=!1}),500)};return l((async()=>{await(async()=>{try{var e;const i=await h.post("/api-teacher/school/teacherSchoolPage",{data:{teacherId:g.user.data.id,page:1,rows:999}});Array.isArray(null===(e=i.data)||void 0===e?void 0:e.rows)&&(Y.schoolList=i.data.rows.map((e=>({name:e.schoolName||"",id:e.schoolId||""}))),Y.school=Y.schoolList[0]||{})}catch{}})(),await O(),document.title=i.query.name||""})),()=>n("div",null,[n(u,{onGetHeight:e=>{document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[n(s,null,null)]}),Y.schoolList.length>0&&n(u,{offsetTop:"var(--header-height)",onGetHeight:e=>{document.documentElement.style.setProperty("--header-cellGroup",e+"px")}},{default:()=>[n("div",{style:{overflow:"hidden"}},[n(p,{inset:!0,class:V},{default:()=>[n(v,{class:j,center:!0,isLink:!0,onClick:()=>Y.schoolStatus=!0},{icon:()=>n("img",{class:Z,src:A},null),title:()=>n("div",{class:"van-ellipsis"},[Y.school.name])})]})])]}),n(m,{modelValue:Y.refreshing,"onUpdate:modelValue":e=>Y.refreshing=e,onRefresh:()=>O()},{default:()=>[n("div",{class:[x]},[!Y.loading&&!!Y.list.length&&n(f,{loading:Y.loading,finished:Y.finished,finishedText:"没有更多数据",onLoad:O,immediateCheck:!1},{default:()=>[n("div",{class:b},[Y.list.map(((e,i)=>n("div",{class:y,onClick:()=>{L.push({path:"/photo-list",query:{id:e.id,name:e.name}})}},[n("div",{class:q,style:e.coverUrl?{backgroundImage:`url(${e.coverUrl})`,backgroundSize:"cover"}:""},[e.newFlag?n("i",{class:C},null):""]),n("div",{class:B},[e.name]),n("div",{class:N},[e.photoCount,r("张")])])))])]}),!Y.loading&&!Y.list.length&&n("div",{class:"emptyRootContainer",style:{minHeight:"78%"}},[n(c,{btnStatus:!1,tips:"暂无相册"},null)]),n(d,{show:Y.schoolStatus,"onUpdate:show":e=>Y.schoolStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[n(w,{columns:Y.schoolList,columnsFieldNames:{text:"name",value:"id"},onCancel:()=>Y.schoolStatus=!1,onConfirm:({selectedValues:e})=>{var i;const t=e[0]||"";if(Y.schoolStatus=!1,t==(null===(i=Y.school)||void 0===i?void 0:i.id))return;const o=Y.schoolList.find((e=>e.id==t))||{};Y.school=o,Y.pages.page=1,Y.list=[],Y.finished=!1,O()}},null)]})])]})])}}))}}}))}();