1 |
- System.register(["./index-legacy.eb062188.js","./index.module-legacy.f0c1d135.js","./index-legacy.ad813f4d.js","./index-legacy.fad72574.js","./use-tab-status-legacy.91417466.js"],(function(e){"use strict";var t,a,i,s,n,o,l,d,r,c,u,g,h,p;return{setters:[function(e){t=e.d,a=e.ah,i=e.ag,s=e.r,n=e.$,o=e.c,l=e.aj,d=e.q,r=e.ak,c=e.m,u=e.g},function(e){g=e.s},function(e){h=e.O},function(e){p=e.L},function(){}],execute:function(){e("default",t({name:"photo-detail",props:{orchestraId:{type:String,default:""}},setup(e){const t=a(),f=i();console.log("🚀 ~ route",t);const m=s({loading:!1,finished:!1,pages:{page:1,rows:20},list:[]}),y=async()=>{if(!m.loading){m.loading=!0;try{var a;const i=await c.post(`${u.platformApi}/orchestraPhotoAlbum/page`,{data:{...m.pages,orchestraId:e.orchestraId||t.query.orchestraId,parentId:t.query.id}});Array.isArray(null==i||null===(a=i.data)||void 0===a?void 0:a.rows)?(m.list=m.list.concat(i.data.rows),m.pages.page+=1,m.finished=!i.data.next):m.finished=!0}catch{m.finished=!0}m.loading=!1}};return n((()=>{y(),document.title=t.query.name||""})),()=>o("div",null,[o(h,null,{default:()=>[o(l,{title:t.query.name||"相册"},null)]}),o("div",{class:g.phoneDetail},[!m.loading&&!!m.list.length&&o(p,{loadingText:" ",finished:m.finished,finishedText:" ",onLoad:y,immediateCheck:!1},{default:()=>[o("div",{class:g.photoWrap},[m.list.map(((e,t)=>o("div",{class:g.photoItem,onClick:()=>{f.push({path:"/photo-list-detail",query:{photoId:e.id}})}},[o("div",{class:g.gridImg,style:e.coverUrl?{backgroundImage:`url(${e.coverUrl})`,backgroundSize:"cover"}:""},null),o("div",{class:g.gridName},[e.name||""]),o("div",{class:g.gridDes},[e.photoCount||0,d("张")])])))])]}),!m.loading&&!m.list.length&&o(r,{btnStatus:!1,tips:"暂无相册"},null)])])}}))}}}));
|