detail-legacy.c7291b4c.js 9.8 KB

1
  1. !function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function n(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){t(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function r(e,n,t,r,o,a,i){try{var c=e[a](i),u=c.value}catch(s){return void t(s)}c.done?n(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var n=this,t=arguments;return new Promise((function(o,a){var i=e.apply(n,t);function c(e){r(i,o,a,c,u,"next",e)}function u(e){r(i,o,a,c,u,"throw",e)}c(void 0)}))}}var a=document.createElement("style");a.innerHTML="._imgWrap_12n2v_1{position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;background-color:#eaeaea;background-repeat:no-repeat;background-position:center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAACRdJREFUeF7tnUtsU1cax7/v2nFCMK+UEErEK2AecZAC5SXeqN2guKPRjGZmW6mbdjUjNl10O5vZVO2q3VTqtq0qjYaAWMwovCQCUqCQODwMQTwDISFDMCHx45zqb8VVcn3te+zY5zrJ+STLUnLuPff87nfP9zjfuWYyooUAa+nFdEIGtCYlMKANaE0ENHVjNHqug5ZSvk9EXxDRx0S0lohqNI1JdzdJInpMRKeI6F/MPOh0ARXRaCnlISL6NxG9p3vUHvc3QkR/ZOZL9usoO+gpTe5dgJCzbAF7h12zKwH6ayL6u8ea5XX33z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HvksgI2yJtnxefzpS3LSqVSKXyjziIRj8eTwWBwsrW1dYKZ1d9OVSHwZdFogOrr63vfsiz89spqIlqZTqcbLctC7jbzkVLiDar4YPkGdV7IxuMbJaRqm1xKhwDQeHHiWyLCBhl8o7J9jJmRaEcOflQIMerz+bBjaZiIngshBtva2gbLcaOKAh2LxWrHx8f3+ny+D6SUbUSEvW8t+EkQZp6XyScpZXrqpz6Q94gxc186ne6pr6+/GgqFlDdJKoOORqNfCyE+JaLcd5qVrmlz+ci4ZVnfh8PhGT8Dkm9AxYD+RAjxuZTyg/mqvap3fUrLeyzL+jYcDv+gcpwy6OzJYrHY0mQy2Z5KpfDrOSFm3iilXM/MzVJK/GRT0edUuVAP2khmHpFSPmVmvDpsQAhxz+/399bU1PwaCoWKWkQtK5RoNBoIBAKrEolEIzPjtS8NUsoVQggYxCXM/LsxFEIsZmYYROw8qmPmOillLTPXYOFh6hvzPgwlvjNOx7QbmXE6plY8kJxPMXNaSoltDYmp70kpJYwgPu+klOOWZcEQZoyhlBKw3liWNcrMMIivpJTDgUDgZSKRGAqHwyUn+u2KUVbQHmjdnOnSgNZ0qwxoA1oTAU3dGI02oDUR0NTNb2QLa5d/JYlZAAAAAElFTkSuQmCC)}\n",document.head.appendChild(a),System.register(["./index-legacy.90c82f08.js","./index.module-legacy.f0c1d135.js","./index-legacy.84457c4c.js","./index-legacy.02f13b7a.js","./index-legacy.617aab72.js","./index-legacy.789a0824.js","./ImagePreview-legacy.356ad326.js","./index-legacy.64e3b474.js","./index-legacy.eb4bc59e.js","./use-tab-status-legacy.bafe466c.js"],(function(e){"use strict";var t,r,a,i,c,u,s,l,d,f,g,p,A,m,v,b,h,y,w,O,j,x,R;return{setters:[function(e){t=e.d,r=e.R,a=e.c,i=e.b5,c=e.ah,u=e.r,s=e.y,l=e.$,d=e.aj,f=e.bF,g=e.ak,p=e.al,A=e.m,m=e.g,v=e.bq,b=e.p,h=e.bD,y=e.bE},function(e){w=e.s},function(e){O=e.O},function(e){j=e.O},function(e){x=e.I},function(e){R=e.L},function(){},function(){},function(){},function(){}],execute:function(){var k={imgWrap:"_imgWrap_12n2v_1"},N=t({name:"o-image",props:{src:{type:String,default:""}},setup:function(e){var n=r(!0);return function(){return a("div",{class:k.imageWrap,style:n.value?"":{backgroundImage:"url(".concat(e.src,")"),backgroundSize:"cover"}},[a(i,{name:"van-fade"},{default:function(){return[n.value&&a("img",{style:{display:"none"},src:e.src,onLoad:function(){n.value=!1}},null)]}})])}}});e("default",t({name:"photo-detail",props:{orchestraId:{type:String,default:""}},setup:function(e){var t=c();console.log("🚀 ~ route",t);var i=u({downLoading:!1,downIndex:0,refreshing:!1,loading:!1,finished:!1,pages:{page:1,rows:20},list:[],startPosition:0,imgShow:!1}),k=function(){var e=o(regeneratorRuntime.mark((function e(){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.loading){e.next=2;break}return e.abrupt("return");case 2:return i.loading=!0,i.refreshing&&(i.list=[],i.pages.page=1),e.prev=4,e.next=7,A.post("".concat(m.platformApi,"/orchestraPhoto/page"),{data:n(n({},i.pages),{},{orchestraPhotoAlbumId:t.query.photoId})});case 7:o=e.sent,Array.isArray(null==o||null===(r=o.data)||void 0===r?void 0:r.rows)?(i.list=i.list.concat(o.data.rows),i.pages.page=o.data.current+1,i.finished=!o.data.next):i.finished=!0,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),i.finished=!0;case 14:i.refreshing=!1,i.loading=!1;case 16:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(){return e.apply(this,arguments)}}(),E=s((function(){return i.list.map((function(e){return e.fileUrl}))})),S=r(),P=function(e){var n=document.createElement("canvas");n.width=e.width,n.height=e.height;var t=n.getContext("2d");return null==t||t.drawImage(e,0,0,n.width,n.height),n.toDataURL("image/png")},C=function(){var e=o(regeneratorRuntime.mark((function e(){var n,t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=E.value[i.downIndex],!i.downLoading&&n){e.next=3;break}return e.abrupt("return");case 3:t=v({message:"保存中",duration:0}),(r=document.createElement("img")).crossOrigin="anonymous",r.onload=o(regeneratorRuntime.mark((function e(){var n,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=P(r),e.prev=1,e.next=4,b({api:"savePicture",content:{base64:n}});case 4:"success"===(null==(a=e.sent)||null===(o=a.content)||void 0===o?void 0:o.status)?h("保存成功"):y("保存失败"),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:t.close(),i.downLoading=!1;case 12:case"end":return e.stop()}}),e,null,[[1,8]])}))),r.src=n+"?v=".concat(Date.now());case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return l((function(){k(),document.title=t.query.name||""})),function(){var e;return a("div",null,[a(O,{onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[a(d,null,null)]}}),a(j,{modelValue:i.refreshing,onRefresh:function(){i.refreshing=!0,k()}},{default:function(){return[a("div",{class:w.phoneListDetailWrap},[a(R,{loadingText:" ",finished:i.finished,finishedText:" ",onLoad:k,immediateCheck:!1},{default:function(){return[a("div",{class:w.phoneListDetail},[a(f,{name:"van-fade"},(n=e=i.list.map((function(e,n){return a("div",{key:"index-".concat(n),class:w.gridItem,onClick:function(){return function(e){i.downIndex=i.startPosition=e,i.imgShow=!0}(n)}},[a(N,{class:w.gridImg,src:e.fileUrl},null)])})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!p(n)?e:{default:function(){return[e]}})),!i.loading&&!i.list.length&&a(g,{key:"OEmpty1",btnStatus:!1,tips:"暂无照片"},null)])];var n}})])]}}),a(x,{ref:S,show:i.imgShow,"onUpdate:show":function(e){return i.imgShow=e},startPosition:i.startPosition,images:E.value,onChange:function(e){return i.downIndex=e}},{cover:function(){return a("div",{class:w.downBtn,onClick:function(){return C()}},[a("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAetJREFUWEftlz1OAzEQhd8EboH4KamT3AEQDQ0kIISoEiquEOcKFAgoEQI2aSjhEJuWmizHgB20PwHHu+s4u04kJKfdmXmfn2ccm2Dpx/32Pji8ASgEcYd6gzcbpclGkagG91ufYKyl9T5IeFs2alsBZCFqwPu3BBSS8FYcoKkDzkFTp4rinIPOwQoOuHOwgnlxqnPQOWjigDuoZ7nE4ngXFN7FccyXJAYvco6pgyyODkB0ldSpdUg8vc7Spnq9vkNEt4k2d0ejUeYmzP3WGIz1pBh/gWqn1Hv2JsVNALnfboHDB4BW0/MjoJ63oQI2m809Zo55iKhLjUZjDEzEMfZ9f1NNmgbMQs4CzMAlB1wuoMITRIAsA/m+nzkb460Bhr+rV5zUAebCRbsAHKqtEpVVeYwAY8/ULZIgwdvDvCu/LkduEdmg0oB6SJyB6VESCkF0MtVzBf2rtlMlQC3kpPkTxRDgsKgldJNbGbAYUiebnfyiaCuA80Gaw1UakrwV5w+BHDkfnHVAvZPzwy0E8A+Soymupf7FU1x0lCx8SHK3W7TPAb5Ov12Q8O51IAsfkjLiJjnWpthErEyMAyzjmrX/4qriJvn/f4tNVrnMmMx9cJniJlrqld8kZ5kxAUmPlPRRtEx9rVYQPZp+ANi5nail81YsAAAAAElFTkSuQmCC"},null)])}})])}}}))}}}))}();