1 |
- !function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function e(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e,n,r,i,a,o){try{var s=t[a](o),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}System.register(["./index-legacy.90c82f08.js","./index.module-legacy.bef32549.js","./index-legacy.789a0824.js","./index-legacy.eb4bc59e.js","./function-call-legacy.aee1e992.js","./use-tab-status-legacy.bafe466c.js","./ImagePreview-legacy.356ad326.js","./index-legacy.64e3b474.js"],(function(t){"use strict";var n,i,a,o,s,c,u,l,f,d,p,g;return{setters:[function(t){n=t.d,i=t.ah,a=t.r,o=t.$,s=t.c,c=t.aj,u=t.ak,l=t.m},function(t){f=t.s},function(t){d=t.L},function(t){p=t.I},function(t){g=t.s},function(){},function(){},function(){}],execute:function(){t("default",n({name:"photo-detail",setup:function(){var t=i(),n=a({isEdit:!1,isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20}}),h=function(){var i,a=(i=regeneratorRuntime.mark((function r(){var i,a,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!n.isLoading){r.next=3;break}return r.abrupt("return");case 3:return n.isLoading=!0,r.next=6,l.post("/api-school/orchestraPhoto/page",{data:e(e({},n.params),{},{orchestraPhotoAlbumId:t.query.photoId})});case 6:if(i=r.sent,n.listState.loading=!1,a=i.data||{},!(n.list.length>0&&1===a.current)){r.next=11;break}return r.abrupt("return");case 11:o=a.rows||[],n.list=n.list.concat(o),n.listState.finished=a.current>=a.pages,n.params.page=a.current+1,n.listState.dataShow=n.list.length>0,n.isLoading=!1,r.next=24;break;case 19:r.prev=19,r.t0=r.catch(0),n.listState.dataShow=!1,n.listState.finished=!0,n.isLoading=!1;case 24:case"end":return r.stop()}}),r,null,[[0,19]])})),function(){var t=this,e=arguments;return new Promise((function(n,a){var o=i.apply(t,e);function s(t){r(o,n,a,s,c,"next",t)}function c(t){r(o,n,a,s,c,"throw",t)}s(void 0)}))});return function(){return a.apply(this,arguments)}}();return o((function(){h(),document.title=t.query.name||""})),function(){return s("div",{class:[f.phoneDetail,!n.listState.dataShow&&"emptyRootContainer"]},[s(c,{title:t.query.name||""},null),n.listState.dataShow?s(d,{finished:n.listState.finished,finishedText:" ",onLoad:h,immediateCheck:!1},{default:function(){return[s("div",{class:f.phoneContainer,style:{paddingTop:"12px"}},[n.list.map((function(t,e){return s("div",{class:[f.item],onClick:function(){!function(t){var e=n.list.map((function(t){return t.fileUrl}));g({images:e,startPosition:t,closeable:!0})}(e)}},[s(p,{class:f.img,src:t.fileUrl,fit:"cover"},null)])}))])]}}):s(u,{btnStatus:!1,tips:"暂无相片"},null)])}}}))}}}))}();
|