photo-detail-legacy.94316478.js 3.2 KB

1
  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 c=t[a](o),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(r,i)}System.register(["./index-legacy.48c8d62c.js","./index.module-legacy.bef32549.js","./index-legacy.04f465c8.js","./index-legacy.0e0de364.js","./function-call-legacy.ac971547.js","./use-tab-status-legacy.6949b1de.js","./ImagePreview-legacy.caacc6f4.js","./index-legacy.71047e87.js"],(function(t){"use strict";var n,i,a,o,c,s,u,l,f,d,p;return{setters:[function(t){n=t.d,i=t.aV,a=t.r,o=t.$,c=t.c,s=t.ai,u=t.m},function(t){l=t.s},function(t){f=t.L},function(t){d=t.I},function(t){p=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}}),g=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,u.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 c(t){r(o,n,a,c,s,"next",t)}function s(t){r(o,n,a,c,s,"throw",t)}c(void 0)}))});return function(){return a.apply(this,arguments)}}();return o((function(){g(),document.title=t.query.name||""})),function(){return c("div",{class:[l.phoneDetail,!n.listState.dataShow&&"emptyRootContainer"]},[n.listState.dataShow?c(f,{finished:n.listState.finished,finishedText:" ",onLoad:g,immediateCheck:!1},{default:function(){return[c("div",{class:l.phoneContainer,style:{paddingTop:"12px"}},[n.list.map((function(t,e){return c("div",{class:[l.item],onClick:function(){!function(t){var e=n.list.map((function(t){return t.fileUrl}));p({images:e,startPosition:t,closeable:!0})}(e)}},[c(d,{class:l.img,src:t.fileUrl,fit:"cover"},null)])}))])]}}):c(s,{btnStatus:!1,tips:"暂无相片"},null)])}}}))}}}))}();