index-legacy.b1d0f61a.js 3.2 KB

1
  1. !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 i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,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,i,o,a){try{var c=e[o](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,i)}System.register(["./index-legacy.c1f63540.js","./index.module-legacy.f0c1d135.js","./index-legacy.7e71b67e.js","./index-legacy.3d6462c3.js","./use-tab-status-legacy.77a01b2b.js"],(function(e){"use strict";var n,i,o,a,c,u,s,l,d,f,p,g,h,v;return{setters:[function(e){n=e.d,i=e.ah,o=e.ag,a=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=i(),y=o();console.log("🚀 ~ route",n);var b=a({loading:!1,finished:!1,pages:{page:1,rows:20},list:[]}),m=function(){var i,o=(i=regeneratorRuntime.mark((function r(){var i,o;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:o=r.sent,Array.isArray(null==o||null===(i=o.data)||void 0===i?void 0:i.rows)?(b.list=b.list.concat(o.data.rows),b.pages.page+=1,b.finished=!o.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,o){var a=i.apply(e,t);function c(e){r(a,n,o,c,u,"next",e)}function u(e){r(a,n,o,c,u,"throw",e)}c(void 0)}))});return function(){return o.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)])])}}}))}}}))}();