!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,a,i,o){try{var c=e[i](o),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,a)}System.register(["./index-legacy.5d6d69c8.js","./index.module-legacy.f0c1d135.js","./index-legacy.fa52babd.js","./index-legacy.fda61a79.js","./use-tab-status-legacy.ae8f1f6a.js"],(function(e){"use strict";var n,a,i,o,c,u,s,l,d,f,p,g,h,v;return{setters:[function(e){n=e.d,a=e.ah,i=e.ag,o=e.r,c=e.$,u=e.c,s=e.aj,l=e.q,d=e.ak,f=e.m,p=e.g},function(e){g=e.s},function(e){h=e.O},function(e){v=e.L},function(){}],execute:function(){e("default",n({name:"photo-detail",props:{orchestraId:{type:String,default:""}},setup:function(e){var n=a(),y=i();console.log("🚀 ~ route",n);var b=o({loading:!1,finished:!1,pages:{page:1,rows:20},list:[]}),m=function(){var a,i=(a=regeneratorRuntime.mark((function r(){var a,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!b.loading){r.next=2;break}return r.abrupt("return");case 2:return b.loading=!0,r.prev=3,r.next=6,f.post("".concat(p.platformApi,"/orchestraPhotoAlbum/page"),{data:t(t({},b.pages),{},{orchestraId:e.orchestraId||n.query.orchestraId,parentId:n.query.id})});case 6:i=r.sent,Array.isArray(null==i||null===(a=i.data)||void 0===a?void 0:a.rows)?(b.list=b.list.concat(i.data.rows),b.pages.page+=1,b.finished=!i.data.next):b.finished=!0,r.next=13;break;case 10:r.prev=10,r.t0=r.catch(3),b.finished=!0;case 13:b.loading=!1;case 14:case"end":return r.stop()}}),r,null,[[3,10]])})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=a.apply(e,t);function c(e){r(o,n,i,c,u,"next",e)}function u(e){r(o,n,i,c,u,"throw",e)}c(void 0)}))});return function(){return i.apply(this,arguments)}}();return c((function(){m(),document.title=n.query.name||""})),function(){return u("div",null,[u(h,null,{default:function(){return[u(s,{title:n.query.name||"相册"},null)]}}),u("div",{class:g.phoneDetail},[!b.loading&&!!b.list.length&&u(v,{loadingText:" ",finished:b.finished,finishedText:" ",onLoad:m,immediateCheck:!1},{default:function(){return[u("div",{class:g.photoWrap},[b.list.map((function(e,t){return u("div",{class:g.photoItem,onClick:function(){y.push({path:"/photo-list-detail",query:{photoId:e.id}})}},[u("div",{class:g.gridImg,style:e.coverUrl?{backgroundImage:"url(".concat(e.coverUrl,")"),backgroundSize:"cover"}:""},null),u("div",{class:g.gridName},[e.name||""]),u("div",{class:g.gridDes},[e.photoCount||0,l("张")])])}))])]}}),!b.loading&&!b.list.length&&u(d,{btnStatus:!1,tips:"暂无相册"},null)])])}}}))}}}))}();
