1 |
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}var i=document.createElement("style");i.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,iVBORw0KGgo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_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(i),System.register(["./index-legacy.90c82f08.js","./index-legacy.84457c4c.js","./icon-checkbox-default-legacy.20cf236b.js","./oss-file-upload-legacy.be0f8098.js","./index-legacy.789a0824.js","./index-legacy.b10d0450.js","./index-legacy.f7f96215.js","./index-legacy.617aab72.js","./index-legacy.eb4bc59e.js","./function-call-legacy.aee1e992.js","./ImagePreview-legacy.356ad326.js","./index-legacy.64e3b474.js","./use-tab-status-legacy.bafe466c.js","./Checker-legacy.1b485b9f.js"],(function(e){"use strict";var n,r,i,a,c,s,u,l,f,d,p,h,g,A,m,b,v,w,k,y,_,x,C,U,S,V,B,R,O,E,D;return{setters:[function(e){n=e.d,r=e.ah,i=e.r,a=e.y,c=e.$,s=e.c,u=e.aj,l=e.a5,f=e.B,d=e.q,p=e.ak,h=e.P,g=e.al,A=e.m,m=e.o,b=e.bf,v=e.bq,w=e.bA,k=e.p,y=e.bD,_=e.bE,x=e.bs},function(e){C=e.O},function(e){U=e.c},function(e){S=e.U,V=e.g,B=e.o},function(e){R=e.L},function(e){O=e.C},function(e){E=e.C},function(e){D=e.I},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var P={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",n({name:"photo-detail",setup:function(){var e=r(),n=i({isEdit:!1,isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},showPhoto:!1,bucket:"gyt",fileList:[],checkboxRefs:[],check:[]}),j=function(){var r=o(regeneratorRuntime.mark((function r(){var o,i,a;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,A.post("/api-school/orchestraPhoto/page",{data:t(t({},n.params),{},{orchestraPhotoAlbumId:e.query.photoId})});case 6:if(o=r.sent,n.listState.loading=!1,i=o.data||{},!(n.list.length>0&&1===i.current)){r.next=11;break}return r.abrupt("return");case 11:a=i.rows||[],n.list=n.list.concat(a),n.listState.finished=i.current>=i.pages,n.params.page=i.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]])})));return function(){return r.apply(this,arguments)}}(),N=function(e){return!!(e.size/1024/1024<5)||(m("上传文件大小不能超过 5MB"),!1)},L=function(e,t){return!0},Y=function(){var e=o(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.status="uploading",t.message="上传中...",e.next=5,q(t);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),b();case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,n){return e.apply(this,arguments)}}(),q=function(){var e=o(regeneratorRuntime.mark((function e(t){var r,o,i,a,c,s,u,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.log(t,"files"),r=t.file,o=r.name||"",i="/orchestra/"+(o&&o.replace(/ /gi,"_")),a=(new Date).getTime()+i,e.next=8,V({filename:a,bucketName:n.bucket,postData:{filename:a,acl:"public-read",key:a,unknowValueField:[]}});case 8:return c=e.sent,s=c.data,v({message:"加载中...",forbidClick:!0,loadingType:"spinner",duration:0}),u={policy:s.policy,signature:s.signature,key:a,KSSAccessKeyId:s.kssAccessKeyId,acl:"public-read",name:a,file:r},e.next=14,B(w(n.bucket),u);case 14:l=e.sent,b(),t.src=l,t.status="done",e.next=24;break;case 20:e.prev=20,e.t0=e.catch(0),t.status="failed",console.log(e.t0,"uploadFile");case 24:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(t){return e.apply(this,arguments)}}(),K=function(){var t=o(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(n.fileList.length<=0)){t.next=4;break}return m("请上传照片"),t.abrupt("return");case 4:return r=n.fileList.map((function(e){return e.src})),console.log(r,"onSubmitPhoto"),t.next=8,A.post("/api-school/orchestraPhoto/save",{data:{orchestraPhotoAlbumId:e.query.photoId,fileUrl:r.join(",")}});case 8:n.showPhoto=!1,n.fileList=[],n.params.page=1,n.list=[],n.listState.dataShow=!0,n.listState.loading=!1,n.listState.finished=!1,j(),t.next=20;break;case 18:t.prev=18,t.t0=t.catch(0);case 20:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(){return t.apply(this,arguments)}}(),Q=i({show:!1,startPosition:0,downIndex:0,downLoading:!1}),I=a((function(){return n.list.map((function(e){return e.fileUrl}))})),T=function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height;var n=t.getContext("2d");return null==n||n.drawImage(e,0,0,t.width,t.height),console.log(e,t),t.toDataURL("image/png")},Z=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=I.value[Q.downIndex],!Q.downLoading&&t){e.next=3;break}return e.abrupt("return");case 3:n=v({message:"保存中",duration:0}),(r=document.createElement("img")).crossOrigin="anonymous",r.onload=o(regeneratorRuntime.mark((function e(){var t,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=T(r),e.prev=1,e.next=4,k({api:"savePicture",content:{base64:t}});case 4:"success"===(null==(i=e.sent)||null===(o=i.content)||void 0===o?void 0:o.status)?y("保存成功"):_("保存失败"),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:n.close(),Q.downLoading=!1;case 12:case"end":return e.stop()}}),e,null,[[1,8]])}))),r.src=t+"?v=".concat(Date.now());case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){n.check.length<=0?m("请选择需要删除的图片"):x({title:"确认删除",message:"删除选择的照片",confirmButtonText:"确认",showCancelButton:!0}).then(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(n.check,"check"),e.prev=1,e.next=4,A.post("/api-school/orchestraPhoto/remove",{requestType:"form",data:{ids:n.check.join(",")}});case 4:n.params.page=1,n.list=[],n.listState.dataShow=!0,n.listState.loading=!1,n.listState.finished=!1,j(),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(1);case 14:case"end":return e.stop()}}),e,null,[[1,12]])}))))};return c((function(){j()})),function(){var t;return s("div",{class:[P.phoneDetail,!n.listState.dataShow&&"emptyRootContainer"]},[s(C,{position:"top"},{default:function(){return[s(u,{title:e.query.name||""},{right:function(){return s(l,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABB9JREFUaEPtWU1oXFUU/s6b28SQpq1FaFC0WlFBSszMfcyrVTELN0LdGVO60GzsSisWU7Ow5KkBsS0F/0BcVQKSVHFjoRsXUarxDe/MxFBcWNTYCFqQUh1cmN6ZK7fNjC/JzLyfNpMJzN29d8/5zvneOefec98lbPBBG9x/JCLQ39+/LZVKHQbwNIBdADoTfoh/AfwM4LNSqXRydnb2Slyc2AQcx3lQKXUWwF1xjYXIXxRCPOl53g9xcGMR6Ovr6xZCnCeiu+MYiSqrtZ5XSu2em5v7J6pOLAKZTGaEiI5FBU8ip7U+ks/nj0fVjUVASnkOwCMB8FNCiJc8z/s7qsGgnOM4W5RS7wAYDrw/x8yPRcWLS+AigDsr4KlUalcul/slqrFactls9p5SqWQKuTIWmDlyfcUl8AeAHRVLQohez/Mu3QgBx3F2KKUMbmVcYubeqJhtAi0TgWw2+7BS6l0iquZ4jTDeBiAVeK8A6KjhriNnskAE5koA/qyHqbVeEEIcyuVyM0ammkKZTOZHIrrvBp1pirrW+kI+n79/GQEp5bICbYonyY1UC70aASnlAQAfAehOjtsUTbNLH2TmT5ZFwDxIKTcJIbY3ckMpZWmtt3V0dNxUbxcXF0FEV4QQ5RD7l5n5akUmdBm1bXu32X211l8y80831es6YFLKe4noCQDf+L5/vpHNhgTS6bRtWda3ADYBMKF7aK1JGOcBfL+UylfL5fLeQqHg1yPRkICU8k0Ar1XDRfSi7/vvrwTTJwe7ULQOAnQLOksf0uinf9UyqMcP7ERJDQOpeegHJsh1V6WLbdsvaK3fC+iPM/PRpARMV/hKQHmEmU+sIuDunwL0M9feE31FY5MDq2ReHuzCVusCgDuuz+mj5J4eXyknpTT2gt3oCWYeWVsCrw9dhsatS45pbC920aGz5rRVHfqNQYmyFUyFr8mderw1CLhDRQCbq850d2ymkYllhxLtDu0BcG33XIrUDI1N7m0TaLRESSkj1kA7AtXvuD5F3K6B/xO5HYFgUbeLOLiRtfeB2gt+WDPX3gcq363dStRpGdYvhUAz5LZOM1cA0L/UTv9O7unbV58ZBnsBWgDo+j8gwgSNTT3bKt1oBsAH0OgE0WFyJ6drRVy7+4cB/Sqg5wH1PLmf/9YSBBp1tHHn1qWViOtkSAvf/CNlyxKwbfuY1rp6oI57/ZOE2MprLCI67vv+kXpYYcvoKIC3AspeuVweKhQKvyZxLkwnnU7vtCxrCoATkB1l5reTEjBA34UZXuP5PczsJSJglKSUXwDYt8ZO1oM/w8xPNbId+m9USrkVwBkAjzaZhLkR3cfMNf/yVXwJJWAEBwYGRLFYNFehzwHoA7BljciY69o5AB/39PScmp6eNjdADUckAmEg6zm/4Qn8B3AYpU8W4qBEAAAAAElFTkSuQmCC",size:22,onClick:function(){return n.isEdit=!n.isEdit}},null)}}),s("div",{style:{overflow:"hidden"}},[s(f,{icon:"plus",block:!0,class:P.addPhone,onClick:function(){return n.showPhoto=!0}},{default:function(){return[d("上传照片")]}})])]}}),n.listState.dataShow?s(R,{finished:n.listState.finished,finishedText:" ",onLoad:j,immediateCheck:!1},{default:function(){return[s(O,{class:P.phoneContainer,modelValue:n.check,"onUpdate:modelValue":function(e){return n.check=e}},(e=t=n.list.map((function(e,t){return s("div",{class:[P.item,n.check.includes(e.id)&&P.itemBorder],onClick:function(){var r;n.isEdit?(r=e.id,n.checkboxRefs[r].toggle()):function(e){Q.downIndex=Q.startPosition=e,Q.show=!0}(t)}},[s(E,{name:e.id,checkedColor:"#64a9ff",class:[P.checkbox,!n.isEdit&&P.checkboxHide],ref:function(t){return n.checkboxRefs[e.id]=t},onClick:function(e){e.stopPropagation()}},{icon:function(e){return s(l,{class:P.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)}}),s("div",{class:P.img,style:e.fileUrl?{backgroundImage:"url(".concat(e.fileUrl,")"),backgroundSize:"cover"}:""},null)])})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!g(e)?t:{default:function(){return[t]}}))];var e}}):s(p,{btnStatus:!1,tips:"暂无照片"},null),n.isEdit&&s(C,{position:"bottom"},{default:function(){return[s("div",{class:"btnGroup"},[s(f,{block:!0,round:!0,type:"primary",onClick:z},{default:function(){return[d("删除")]}})])]}}),s(h,{show:n.showPhoto,"onUpdate:show":function(e){return n.showPhoto=e},round:!0,style:{width:"92%"}},{default:function(){return[s("div",{class:P.container},[s("div",{class:P.dialogTitle},[s("i",null,null),d("上传照片")]),s("div",{class:P.photos},[s(S,{modelValue:n.fileList,"onUpdate:modelValue":function(e){return n.fileList=e},afterRead:Y,beforeRead:N,beforeDelete:L,accept:"image/*",maxCount:9},null)]),s("div",{class:["van-hairline--top van-dialog__footer"]},[s(f,{onClick:function(){n.showPhoto=!1,n.fileList=[]},class:["van-button van-button--default van-button--large van-dialog__cancel"]},{default:function(){return[d("取消")]}}),s(f,{onClick:K,class:["van-button van-button--default van-button--large van-dialog__confirm van-hairline--left"]},{default:function(){return[d("确认")]}})])])]}}),s(D,{show:Q.show,"onUpdate:show":function(e){return Q.show=e},startPosition:Q.startPosition,images:I.value,onChange:function(e){return Q.downIndex=e}},{cover:function(){return s("div",{class:P.downBtn,onClick:function(){return Z()}},[s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAetJREFUWEftlz1OAzEQhd8EboH4KamT3AEQDQ0kIISoEiquEOcKFAgoEQI2aSjhEJuWmizHgB20PwHHu+s4u04kJKfdmXmfn2ccm2Dpx/32Pji8ASgEcYd6gzcbpclGkagG91ufYKyl9T5IeFs2alsBZCFqwPu3BBSS8FYcoKkDzkFTp4rinIPOwQoOuHOwgnlxqnPQOWjigDuoZ7nE4ngXFN7FccyXJAYvco6pgyyODkB0ldSpdUg8vc7Spnq9vkNEt4k2d0ejUeYmzP3WGIz1pBh/gWqn1Hv2JsVNALnfboHDB4BW0/MjoJ63oQI2m809Zo55iKhLjUZjDEzEMfZ9f1NNmgbMQs4CzMAlB1wuoMITRIAsA/m+nzkb460Bhr+rV5zUAebCRbsAHKqtEpVVeYwAY8/ULZIgwdvDvCu/LkduEdmg0oB6SJyB6VESCkF0MtVzBf2rtlMlQC3kpPkTxRDgsKgldJNbGbAYUiebnfyiaCuA80Gaw1UakrwV5w+BHDkfnHVAvZPzwy0E8A+Soymupf7FU1x0lCx8SHK3W7TPAb5Ov12Q8O51IAsfkjLiJjnWpthErEyMAyzjmrX/4qriJvn/f4tNVrnMmMx9cJniJlrqld8kZ5kxAUmPlPRRtEx9rVYQPZp+ANi5nail81YsAAAAAElFTkSuQmCC"},null)])}})])}}}))}}}))}();
|