1 |
- !function(){var e=document.createElement("style");e.innerHTML='._phoneDetail_7n32f_1{--van-uploader-size: 2.45333rem !important}._phoneDetail_7n32f_1 .van-button{font-size:.48rem}._phoneDetail_7n32f_1 ._addPhone_7n32f_7{margin:.34667rem;width:calc(100% - .69333rem);color:var(--van-primary-text);border-color:#fff;border-radius:.26667rem;font-size:.42667rem}._phoneDetail_7n32f_1 ._phoneContainer_7n32f_15{display:flex;flex-wrap:wrap;--van-checkbox-border-color: transparent;position:relative}._phoneDetail_7n32f_1 ._phoneContainer_7n32f_15 ._item_7n32f_21{position:relative;padding:.04rem}._phoneDetail_7n32f_1 ._phoneContainer_7n32f_15 ._item_7n32f_21 ._img_7n32f_25{display:flex;align-items:center;justify-content:center;width:calc(100vw / 3 - .08rem);height:calc(100vw / 3 - .08rem);border-radius:.05333rem;overflow:hidden;position:relative;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+sKGpqcSqVuGsgzmQL2kSNHlDXb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vW8t+EkQZp6XyScpZXrqpz6Q94gxc186ne6pr6+/GgqFlDdJKoOORqNfCyE+JaLcd5qVrmlz+ci4ZVnfh8PhGT8Dkm9AxYD+RAjxuZTyg/mqvap3fUrLeyzL+jYcDv+gcpwy6OzJYrHY0mQy2Z5KpfDrOSFm3iilXM/MzVJK/GRT0edUuVAP2khmHpFSPmVmvDpsQAhxz+/399bU1PwaCoWKWkQtK5RoNBoIBAKrEolEIzPjtS8NUsoVQggYxCXM/LsxFEIsZmYYROw8qmPmOillLTPXYOFh6hvzPgwlvjNOx7QbmXE6plY8kJxPMXNaSoltDYmp70kpJYwgPu+klOOWZcEQZoyhlBKw3liWNcrMMIivpJTDgUDgZSKRGAqHwyUn+u2KUVbQHmjdnOnSgNZ0qwxoA1oTAU3dGI02oDUR0NTNb2QLa5d/JYlZAAAAAElFTkSuQmCC)}._phoneDetail_7n32f_1 ._phoneContainer_7n32f_15 ._itemBorder_7n32f_39 ._img_7n32f_25:before{content:" ";position:absolute;border-radius:.26667rem;border:.05333rem solid #64a9ff;z-index:10;top:0;left:0;right:0;bottom:0}._phoneDetail_7n32f_1 ._phoneContainer_7n32f_15 .van-checkbox{position:absolute;top:.42667rem;right:.26667rem;z-index:9;height:.66667rem}._phoneDetail_7n32f_1 ._phoneContainer_7n32f_15 .van-checkbox__icon--checked .van-icon{border-color:#64a9ff}._phoneDetail_7n32f_1 ._phoneContainer_7n32f_15 ._checkboxHide_7n32f_60{opacity:0}._phoneDetail_7n32f_1 ._phoneContainer_7n32f_15 ._iconChecked_7n32f_63{font-size:.48rem;border:.02667rem solid transparent}._phoneDetail_7n32f_1 ._phoneContainer_7n32f_15 ._iconChecked_7n32f_63 .van-icon__image{width:100%;height:100%}._phoneDetail_7n32f_1 ._dialogTitle_7n32f_71{text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding:.53333rem 0 .53333rem .66667rem}._phoneDetail_7n32f_1 ._dialogTitle_7n32f_71 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._photos_7n32f_87{padding:0 .42667rem .42667rem}._downBtn_7n32f_90{position:fixed;right:.53333rem;bottom:1.06667rem;width:.53333rem;height:.53333rem;border-radius:50%;background:#ffffff;padding:.21333rem;box-shadow:0 .05333rem .21333rem rgba(0,0,0,.2)}._downBtn_7n32f_90:active{opacity:.8}._downBtn_7n32f_90 img{width:100%;height:100%;display:block}\n',document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.ad813f4d.js","./icon-checkbox-default-legacy.20cf236b.js","./index-legacy.fad72574.js","./index-legacy.8fb0ec91.js","./index-legacy.d39f6f47.js","./index-legacy.bd6987bf.js","./index-legacy.b7c35e0c.js","./use-tab-status-legacy.91417466.js","./Checker-legacy.9bbda964.js","./index-legacy.fecc738b.js","./function-call-legacy.0bd16987.js","./ImagePreview-legacy.747d0051.js","./index-legacy.fab451f1.js"],(function(e){"use strict";var t,o,n,a,i,c,l,s,r,d,h,f,A,g,p,u,m,b,w,v,k,_,y,C,U,S,V,B,E,x;return{setters:[function(e){t=e.d,o=e.ah,n=e.r,a=e.y,i=e.$,c=e.c,l=e.aj,s=e.a5,r=e.B,d=e.q,h=e.ak,f=e.P,A=e.al,g=e.m,p=e.o,u=e.bj,m=e.bv,b=e.bD,w=e.bE,v=e.p,k=e.bG,_=e.bH,y=e.bx},function(e){C=e.O},function(e){U=e.c},function(e){S=e.L},function(e){V=e.C},function(e){B=e.C},function(e){E=e.U},function(e){x=e.I},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var D={phoneDetail:"_phoneDetail_7n32f_1",addPhone:"_addPhone_7n32f_7",phoneContainer:"_phoneContainer_7n32f_15",item:"_item_7n32f_21",img:"_img_7n32f_25",itemBorder:"_itemBorder_7n32f_39",checkboxHide:"_checkboxHide_7n32f_60",iconChecked:"_iconChecked_7n32f_63",dialogTitle:"_dialogTitle_7n32f_71",photos:"_photos_7n32f_87",downBtn:"_downBtn_7n32f_90"};e("default",t({name:"photo-detail",setup(){const e=o(),t=n({isEdit:!1,isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},showPhoto:!1,bucket:"gyt",fileList:[],checkboxRefs:[],check:[]}),N=async()=>{try{if(t.isLoading)return;t.isLoading=!0;const o=await g.post("/api-school/orchestraPhoto/page",{data:{...t.params,orchestraPhotoAlbumId:e.query.photoId}});t.listState.loading=!1;const n=o.data||{};if(t.list.length>0&&1===n.current)return;const a=n.rows||[];t.list=t.list.concat(a),t.listState.finished=n.current>=n.pages,t.params.page=n.current+1,t.listState.dataShow=t.list.length>0,t.isLoading=!1}catch{t.listState.dataShow=!1,t.listState.finished=!0,t.isLoading=!1}},R=e=>!!(e.size/1024/1024<5)||(p("上传文件大小不能超过 5MB"),!1),L=(e,t)=>!0,O=async(e,t)=>{try{e.status="uploading",e.message="上传中...",await P(e)}catch(o){u()}},P=async e=>{try{console.log(e,"files");const o=e.file,n="/api-school/open/getUploadSign",a=o.name||"",i="/orchestra/"+(a&&a.replace(/ /gi,"_")),c=(new Date).getTime()+i,l=await g.post(n,{data:{filename:i,bucketName:t.bucket,postData:{filename:i,acl:"public-read",key:c,unknowValueField:[]}}});m({message:"加载中...",forbidClick:!0,loadingType:"spinner",duration:0});const s={policy:l.data.policy,signature:l.data.signature,key:c,KSSAccessKeyId:l.data.kssAccessKeyId,acl:"public-read",name:i},r=new FormData;for(const e in s)r.append(e,s[e]);r.append("file",o,i),await b(w(t.bucket),{method:"POST",data:r});const d=w(t.bucket)+c;u(),e.src=d,e.status="done"}catch(o){e.status="failed",console.log(o,"uploadFile")}},Y=async()=>{try{if(t.fileList.length<=0)return void p("请上传照片");const o=t.fileList.map((e=>e.src));console.log(o,"onSubmitPhoto"),await g.post("/api-school/orchestraPhoto/save",{data:{orchestraPhotoAlbumId:e.query.photoId,fileUrl:o.join(",")}}),t.showPhoto=!1,t.fileList=[],t.params.page=1,t.list=[],t.listState.dataShow=!0,t.listState.loading=!1,t.listState.finished=!1,N()}catch{}},j=n({show:!1,startPosition:0,downIndex:0,downLoading:!1}),q=a((()=>t.list.map((e=>e.fileUrl)))),K=async()=>{const e=q.value[j.downIndex];if(j.downLoading||!e)return;const t=m({message:"保存中",duration:0}),o=document.createElement("img");o.crossOrigin="anonymous",o.onload=async()=>{const e=(e=>{const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const o=t.getContext("2d");return null==o||o.drawImage(e,0,0,t.width,t.height),console.log(e,t),t.toDataURL("image/png")})(o);try{var n;const t=await v({api:"savePicture",content:{base64:e}});"success"===(null==t||null===(n=t.content)||void 0===n?void 0:n.status)?k("保存成功"):_("保存失败")}catch(a){}t.close(),j.downLoading=!1},o.src=e+`?v=${Date.now()}`},Q=()=>{t.check.length<=0?p("请选择需要删除的图片"):y({title:"确认删除",message:"删除选择的照片",confirmButtonText:"确认",showCancelButton:!0}).then((async()=>{console.log(t.check,"check");try{await g.post("/api-school/orchestraPhoto/remove",{requestType:"form",data:{ids:t.check.join(",")}}),t.params.page=1,t.list=[],t.listState.dataShow=!0,t.listState.loading=!1,t.listState.finished=!1,N()}catch{}}))};return i((()=>{N()})),()=>{let o;return c("div",{class:[D.phoneDetail,!t.listState.dataShow&&"emptyRootContainer"]},[c(C,{position:"top"},{default:()=>[c(l,{title:e.query.name||""},{right:()=>c(s,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABB9JREFUaEPtWU1oXFUU/s6b28SQpq1FaFC0WlFBSszMfcyrVTELN0LdGVO60GzsSisWU7Ow5KkBsS0F/0BcVQKSVHFjoRsXUarxDe/MxFBcWNTYCFqQUh1cmN6ZK7fNjC/JzLyfNpMJzN29d8/5zvneOefec98lbPBBG9x/JCLQ39+/LZVKHQbwNIBdADoTfoh/AfwM4LNSqXRydnb2Slyc2AQcx3lQKXUWwF1xjYXIXxRCPOl53g9xcGMR6Ovr6xZCnCeiu+MYiSqrtZ5XS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ljciY69o5AB/39PScmp6eNjdADUckAmEg6zm/4Qn8B3AYpU8W4qBEAAAAAElFTkSuQmCC",size:22,onClick:()=>t.isEdit=!t.isEdit},null)}),c("div",{style:{overflow:"hidden"}},[c(r,{icon:"plus",block:!0,class:D.addPhone,onClick:()=>t.showPhoto=!0},{default:()=>[d("上传照片")]})])]}),t.listState.dataShow?c(S,{finished:t.listState.finished,finishedText:" ",onLoad:N,immediateCheck:!1},{default:()=>{return[c(V,{class:D.phoneContainer,modelValue:t.check,"onUpdate:modelValue":e=>t.check=e},(e=o=t.list.map(((e,o)=>c("div",{class:[D.item,t.check.includes(e.id)&&D.itemBorder],onClick:()=>{var n;t.isEdit?(n=e.id,t.checkboxRefs[n].toggle()):(e=>{j.downIndex=j.startPosition=e,j.show=!0})(o)}},[c(B,{name:e.id,checkedColor:"#64a9ff",class:[D.checkbox,!t.isEdit&&D.checkboxHide],ref:o=>t.checkboxRefs[e.id]=o,onClick:e=>{e.stopPropagation()}},{icon:e=>c(s,{class:D.iconChecked,name:e.checked?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA7JJREFUWEfNmN9vFFUUxz9nd6HYVkoDbSAoCkpExZg08qM/0jRg8MGEt7YQEmO1xVYlMWri32AiQQIJP9pQMBLd9oEnHiSQQFMosEpCJKEEIj9UgrSSlkJtoe0xd8Zte6c7u7OtTea+bLLzPed+5px77rl3hCxHfZsuF+UdhQqBVxWWITzruFEGBO4oXBXoVOGnlhq5mc0UEkRc3abRBUK1jvEpUAYEsnMQ4ZxE2NuntLfXyGim+TI6bojr26rsQViVyVna50q3CDuaa+VkOp0v0PutOm9OLt+qsB0NHJH0zIKKcvDpIJ8drpOhVOKUQHVtWhRVjgNrZhQVf+PEqPBua430eCVTgAxMDDpUZ5iiDG8iQvcIVHqhLCCTplguHbMYGS9mYmSQysnps4Aa4rpf4aNZSlNKtwIHmmulMflwHMipJuHE/7aAg76Vu9A3JavPATL7TMEYV2Zc2kEhvDqluz/CarNPOUAN7bpFx/hhuv6C2G1+HTauhPuP4EAX9D62rSTC1uZq+dEBqo9rJ1AexPF0NNtKoOrlCcuuW3Do4hRPZ1tqpUI+OKorIjFuZNEOAjOZt33vLahYYZv4AJnt9yVpiGujwr7AswQUikDdGih90TboH4KvT0GPJ2VGJdAk9XH9HtgWcJ5AsojAh+tg7TJb3vcPfHMa/hrwdXPUROgXhRKvpDgfmsrA/J66Dsd+dVt3phEV2F4KJc/ZygeDLkzPI38PApdMhEw/WeSVmTdc/8LEv2dvwpFEeqhYBBpL4c2ltjdTUTtPT62sFGi9Ut+mQyg53ocm/2XL7X/P34bWizCWIlRzItBUDm8ssW1MmRsYE6GMQxj2BVqYC19tgMJc203iDrRcsKHmRuGTcnhtsa299xB2ngGzdgINB8gnZcZBUR58UQUL82x3l/6Ag10wqpATgx0V8Eqxrbnb78I8THnq8cXr9V3USRMTKQNVlG87ufwnHE7Ax+Wwssh+9nsf7DoDA8OB4jIuSi7qjGVf+Ax8WQXF7lF+fAyPuBGaPG4/gF0d8PhJdjD/qZ2yD7QxFsxzI7Vkvv9Ev/0Nuztg8Om0YNyNMZvWMT8HPq+CpQVTJ7zR68IMjUwPxrmhmNZhzLNprvkGqhKeL5yY+Np92NMJJoUzGG5zNQ6yPX7kzXX7lKmsy3fhu5/hScYbV3pU6/gRugOaE6UwHWGTwQzVId9Ahe4aZKBCdVFMpi5UV+kkVKg+NkzeMULzOWYyVKg+WHn3V9P7ojE2zdYnvX8Bag2LhmGJrgoAAAAASUVORK5CYII=":U},null)}),c("div",{class:D.img,style:e.fileUrl?{backgroundImage:`url(${e.fileUrl})`,backgroundSize:"cover"}:""},null)]))),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!A(e)?o:{default:()=>[o]}))];var e}}):c(h,{btnStatus:!1,tips:"暂无照片"},null),t.isEdit&&c(C,{position:"bottom"},{default:()=>[c("div",{class:"btnGroup"},[c(r,{block:!0,round:!0,type:"primary",onClick:Q},{default:()=>[d("删除")]})])]}),c(f,{show:t.showPhoto,"onUpdate:show":e=>t.showPhoto=e,round:!0,style:{width:"92%"}},{default:()=>[c("div",{class:D.container},[c("div",{class:D.dialogTitle},[c("i",null,null),d("上传照片")]),c("div",{class:D.photos},[c(E,{modelValue:t.fileList,"onUpdate:modelValue":e=>t.fileList=e,afterRead:O,beforeRead:R,beforeDelete:L,accept:"image/*",maxCount:9},null)]),c("div",{class:["van-hairline--top van-dialog__footer"]},[c(r,{onClick:()=>{t.showPhoto=!1,t.fileList=[]},class:["van-button van-button--default van-button--large van-dialog__cancel"]},{default:()=>[d("取消")]}),c(r,{onClick:Y,class:["van-button van-button--default van-button--large van-dialog__confirm van-hairline--left"]},{default:()=>[d("确认")]})])])]}),c(x,{show:j.show,"onUpdate:show":e=>j.show=e,startPosition:j.startPosition,images:q.value,onChange:e=>j.downIndex=e},{cover:()=>c("div",{class:D.downBtn,onClick:()=>K()},[c("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAetJREFUWEftlz1OAzEQhd8EboH4KamT3AEQDQ0kIISoEiquEOcKFAgoEQI2aSjhEJuWmizHgB20PwHHu+s4u04kJKfdmXmfn2ccm2Dpx/32Pji8ASgEcYd6gzcbpclGkagG91ufYKyl9T5IeFs2alsBZCFqwPu3BBSS8FYcoKkDzkFTp4rinIPOwQoOuHOwgnlxqnPQOWjigDuoZ7nE4ngXFN7FccyXJAYvco6pgyyODkB0ldSpdUg8vc7Spnq9vkNEt4k2d0ejUeYmzP3WGIz1pBh/gWqn1Hv2JsVNALnfboHDB4BW0/MjoJ63oQI2m809Zo55iKhLjUZjDEzEMfZ9f1NNmgbMQs4CzMAlB1wuoMITRIAsA/m+nzkb460Bhr+rV5zUAebCRbsAHKqtEpVVeYwAY8/ULZIgwdvDvCu/LkduEdmg0oB6SJyB6VESCkF0MtVzBf2rtlMlQC3kpPkTxRDgsKgldJNbGbAYUiebnfyiaCuA80Gaw1UakrwV5w+BHDkfnHVAvZPzwy0E8A+Soymupf7FU1x0lCx8SHK3W7TPAb5Ov12Q8O51IAsfkjLiJjnWpthErEyMAyzjmrX/4qriJvn/f4tNVrnMmMx9cJniJlrqld8kZ5kxAUmPlPRRtEx9rVYQPZp+ANi5nail81YsAAAAAElFTkSuQmCC"},null)])})])}}}))}}}))}();
|