detail-legacy.775220e5.js 7.7 KB

1
  1. !function(){var e=document.createElement("style");e.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+gpTe5dgJCzbAF7h12zKwH6ayL6u8ea5XX33zDzP6ZfRCVA3yeiFq9H6nH/A8y8qdKgE/PY8KnevyQzByoNWqpezXxux8wzZotKTB0GNBEZ0JoeIwO62kCfPXu2QQhxUgjxpykvolbTNVZFN5ZlUX19Pa1evZo2btxIgcAM2+Z6jUoaffr06XYpZScRNbuecQE0qK2tpb1799LSpUuVR+sKGpqcSqVuGsgzmQL2kSNHlDXbFfSZM2f+KYT4UvnWLaCGmzdvpq1btyqN2BV0Z2dnPxFtVzrbAmsUDAbp6NGjSqNWAT1BRAvK8CmRIyIYyBMnTig1VwFtAo4CKDs6OgxoJQKzbGRAuwBE6gE+cWNjI8GDSCaT9OrVK3r27BmlUill/AZ0AVRLliyhXbt2EYyZXRKJBN28eZNevHihBNuAzoMJcA8cOEA1NfmXLKWU1NPTowTbgM4D+uDBg7R8+XJXbYVmd3V1uU4jBrQDSgAGaFXp6+ujhw8fFmxuQDvg2bRpE23btk2VMw0ODtK1a9cMaGViUw0BGbBVZXh4mK5cuWJAqwLLtmtpaaHt29WzCXD1rl+/bkAXCxppzcOHD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crMMIivpJTDgUDgZSKRGAqHwyUn+u2KUVbQHmjdnOnSgNZ0qwxoA1oTAU3dGI02oDUR0NTNb2QLa5d/JYlZAAAAAElFTkSuQmCC)}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index.module-legacy.f0c1d135.js","./index-legacy.ad813f4d.js","./index-legacy.d64e5695.js","./index-legacy.b7c35e0c.js","./index-legacy.fad72574.js","./ImagePreview-legacy.747d0051.js","./index-legacy.fab451f1.js","./index-legacy.fecc738b.js","./use-tab-status-legacy.91417466.js"],(function(e){"use strict";var t,n,a,o,i,r,s,l,c,d,g,A,u,m,p,f,v,h,y,b,w,j,N;return{setters:[function(e){t=e.d,n=e.R,a=e.c,o=e.b9,i=e.ah,r=e.r,s=e.y,l=e.$,c=e.aj,d=e.bI,g=e.ak,A=e.al,u=e.m,m=e.g,p=e.bv,f=e.p,v=e.bG,h=e.bH},function(e){y=e.s},function(e){b=e.O},function(e){w=e.O},function(e){j=e.I},function(e){N=e.L},function(){},function(){},function(){},function(){}],execute:function(){var O={imgWrap:"_imgWrap_12n2v_1"},S=t({name:"o-image",props:{src:{type:String,default:""}},setup(e){const t=n(!0);return()=>a("div",{class:O.imageWrap,style:t.value?"":{backgroundImage:`url(${e.src})`,backgroundSize:"cover"}},[a(o,{name:"van-fade"},{default:()=>[t.value&&a("img",{style:{display:"none"},src:e.src,onLoad:()=>{t.value=!1}},null)]})])}});e("default",t({name:"photo-detail",props:{orchestraId:{type:String,default:""}},setup(e){const t=i();console.log("🚀 ~ route",t);const o=r({downLoading:!1,downIndex:0,refreshing:!1,loading:!1,finished:!1,pages:{page:1,rows:20},list:[],startPosition:0,imgShow:!1}),O=async()=>{if(!o.loading){o.loading=!0,o.refreshing&&(o.list=[],o.pages.page=1);try{var e;const n=await u.post(`${m.platformApi}/orchestraPhoto/page`,{data:{...o.pages,orchestraPhotoAlbumId:t.query.photoId}});Array.isArray(null==n||null===(e=n.data)||void 0===e?void 0:e.rows)?(o.list=o.list.concat(n.data.rows),o.pages.page=n.data.current+1,o.finished=!n.data.next):o.finished=!0}catch{o.finished=!0}o.refreshing=!1,o.loading=!1}},C=s((()=>o.list.map((e=>e.fileUrl)))),E=n(),R=async()=>{const e=C.value[o.downIndex];if(o.downLoading||!e)return;const t=p({message:"保存中",duration:0}),n=document.createElement("img");n.crossOrigin="anonymous",n.onload=async()=>{const e=(e=>{const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");return null==n||n.drawImage(e,0,0,t.width,t.height),t.toDataURL("image/png")})(n);try{var a;const t=await f({api:"savePicture",content:{base64:e}});"success"===(null==t||null===(a=t.content)||void 0===a?void 0:a.status)?v("保存成功"):h("保存失败")}catch(i){}t.close(),o.downLoading=!1},n.src=e+`?v=${Date.now()}`};return l((()=>{O(),document.title=t.query.name||""})),()=>{let e;return a("div",null,[a(b,{onGetHeight:e=>{document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[a(c,null,null)]}),a(w,{modelValue:o.refreshing,onRefresh:()=>{o.refreshing=!0,O()}},{default:()=>[a("div",{class:y.phoneListDetailWrap},[a(N,{loadingText:" ",finished:o.finished,finishedText:" ",onLoad:O,immediateCheck:!1},{default:()=>{return[a("div",{class:y.phoneListDetail},[a(d,{name:"van-fade"},(t=e=o.list.map(((e,t)=>a("div",{key:`index-${t}`,class:y.gridItem,onClick:()=>(e=>{o.downIndex=o.startPosition=e,o.imgShow=!0})(t)},[a(S,{class:y.gridImg,src:e.fileUrl},null)]))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)?e:{default:()=>[e]})),!o.loading&&!o.list.length&&a(g,{key:"OEmpty1",btnStatus:!1,tips:"暂无照片"},null)])];var t}})])]}),a(j,{ref:E,show:o.imgShow,"onUpdate:show":e=>o.imgShow=e,startPosition:o.startPosition,images:C.value,onChange:e=>o.downIndex=e},{cover:()=>a("div",{class:y.downBtn,onClick:()=>R()},[a("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAetJREFUWEftlz1OAzEQhd8EboH4KamT3AEQDQ0kIISoEiquEOcKFAgoEQI2aSjhEJuWmizHgB20PwHHu+s4u04kJKfdmXmfn2ccm2Dpx/32Pji8ASgEcYd6gzcbpclGkagG91ufYKyl9T5IeFs2alsBZCFqwPu3BBSS8FYcoKkDzkFTp4rinIPOwQoOuHOwgnlxqnPQOWjigDuoZ7nE4ngXFN7FccyXJAYvco6pgyyODkB0ldSpdUg8vc7Spnq9vkNEt4k2d0ejUeYmzP3WGIz1pBh/gWqn1Hv2JsVNALnfboHDB4BW0/MjoJ63oQI2m809Zo55iKhLjUZjDEzEMfZ9f1NNmgbMQs4CzMAlB1wuoMITRIAsA/m+nzkb460Bhr+rV5zUAebCRbsAHKqtEpVVeYwAY8/ULZIgwdvDvCu/LkduEdmg0oB6SJyB6VESCkF0MtVzBf2rtlMlQC3kpPkTxRDgsKgldJNbGbAYUiebnfyiaCuA80Gaw1UakrwV5w+BHDkfnHVAvZPzwy0E8A+Soymupf7FU1x0lCx8SHK3W7TPAb5Ov12Q8O51IAsfkjLiJjnWpthErEyMAyzjmrX/4qriJvn/f4tNVrnMmMx9cJniJlrqld8kZ5kxAUmPlPRRtEx9rVYQPZp+ANi5nail81YsAAAAAElFTkSuQmCC"},null)])})])}}}))}}}))}();