1 |
- !function(){function e(e,i,n,t,o,r,s){try{var a=e[r](s),c=a.value}catch(m){return void n(m)}a.done?i(c):Promise.resolve(c).then(t,o)}function i(i){return function(){var n=this,t=arguments;return new Promise((function(o,r){var s=i.apply(n,t);function a(i){e(s,o,r,a,c,"next",i)}function c(i){e(s,o,r,a,c,"throw",i)}a(void 0)}))}}var n=document.createElement("style");n.innerHTML='._sectionVideo_1shm1_1{position:relative;line-height:0;overflow:visible!important;margin-bottom:.64rem!important}._sectionVideo_1shm1_1 ._videoBg_1shm1_7{width:100%;height:4.26667rem;-o-object-fit:cover;object-fit:cover;border-radius:.26667rem}._sectionVideo_1shm1_1 ._btnGroup_1shm1_13{position:absolute;left:50%;bottom:-.32rem;background:linear-gradient(180deg,rgba(200,145,128,.52) 0%,rgba(162,67,58,.52) 100%);border-radius:.4rem;height:.8rem;display:flex;align-items:center;flex:1;font-size:.32rem;font-weight:500;color:#fff;line-height:.45333rem;width:8rem;margin:0 0 0 -4rem}._sectionVideo_1shm1_1 ._btnGroup_1shm1_13>div{flex:1;text-align:center;display:flex;align-items:center;justify-content:center}._sectionVideo_1shm1_1 ._btnGroup_1shm1_13 ._btnCropper_1shm1_37{border-left:.02667rem solid #fff}._sectionVideo_1shm1_1 ._btnGroup_1shm1_13 ._btnCropper_1shm1_37:before{content:"";width:.42667rem;height:.42667rem;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAiVJREFUWEftl0uITnEYxn9PouQSKaYwCMnOQrmUncuUldQsLKymxmVnIXakUJKyIaKElYWisKMsULMYl1JTJBnKZSELuT56T/9Tx9c538xnzjQL52zO6XznvO/vvO/zf97/Jyb40ATnpwFoKlBZAdsbgIvAsjEI9RWwW9KdqhjtAIaA5WNInr/6HuiS5LJY7QB+Q7ZK1gFv/wFkBvAsvTdL0udOAXLiRZJedwpgeyaQJ20Amgr8BxWwvRiYJ+lRvmJsT4prSb/ibHspMFvSQP5MOx/oaBnaPgf0AluKEAWYSH4XGJK0cTwAbgM9ae3/BZG+PJIvTAArxgNgJ3ApBQ4DyiBaksfPhyUdqh0g9fgAcKwA0Q+cSF8et6NNu4pzoTYNFHp9EDhaYt3ngf7WoVQ7QKrESWBfAeI6sL1sItYOkHp+D1hQAAhN9Eh62FqZWgBsx+g9C2wFpgBTU6LwhDXp+hvwHbgP9El6l3lE1Zi1PWofsH0mxAU8AVYCk3PBASHM0MQP4DGwGrglKWBrA3gOTAe6gePAfmC9pAe25wNvgAuS+mwPxk5L0rSRAD4Cc4Bh4GdJpSLgkSS6ayEy4CqwGYjNSLekD8mOY0cVrbkJ7AAGJK0dCWAPcBrI/LzkOCUpU7rtcLgbwCrgC7BX0uXC0twEXAHmAi+AbZKetgVIgaN8SypaNSzpZRHMdij/k6SvrcC2Qxdd0Y5RGVGVOOu+3/wz+gN8YCEwlqk06QAAAABJRU5ErkJggg==) no-repeat center;background-size:contain;margin-right:.10667rem}._sectionVideo_1shm1_1 ._btnGroup_1shm1_13 ._btnImg_1shm1_49{margin:0;height:inherit;border:0;border-radius:0}._sectionVideo_1shm1_1 ._btnGroup_1shm1_13 ._btnImg_1shm1_49 .van-icon{display:flex;align-items:center}._sectionVideo_1shm1_1 ._btnGroup_1shm1_13 ._btnImg_1shm1_49 .van-icon:before{content:"";width:.42667rem;height:.42667rem;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAdpJREFUWEftljFIVVEYx39/EUJDGkMoh1oCp4ZcIgQTmlqkIKLFVZAoooJACLEGh0BwcHELoQaxLahFbAjBpckaCoIgcMmIpKJ/fPLe4/a6z+677973HDzjPed8/9/5f9/57hEdHuqwPgcABw7sPwdsXwMeAsdKuCEGPgB3JT2J+P84YHsb6CtBPBlyW9KRRgBBWfqQtHv4NAf2AvgBvAVOAL2tUOYB+Ayck/TO9lHgJTCYFyIPwLSkqaqg7XFgsZ0AjyTdTABMAnMZAJ5VnDqZXJvHgW/AZeA5cAZYBvr/A7AKjAKzwPVWAar7fwHdGU7+HhiStGV7ApgvCiCDNl+Bs5LexGLb54EX7QL4DYxJWknUS3TVj+0CuCfpQVLMdvSbcOVw9XueIoy90aafhr3AqZRcLEm6mpYj2xvA6VYAvgAjkjZsHwJmgBtAVyXoOjAs6XsDgCXgSl6AuIIXJL2qszaKawEI0Zj/1KhCbd8Hao2smRTsABcl/VXFWa5CHWyk5nGzDvwELkmKbtbSsD0EvG4WYA2IllvELzoeOreyAITlUWRljh1JPSGQ9h6I59idtLkCiWYl3U4FqLTO48BAgYLJUFuSNmupKEkkc9j99yzPjF7Qwo478Aff/rkhFUCJAgAAAABJRU5ErkJggg==) no-repeat center;background-size:contain;margin-right:.10667rem}._sectionVideo_1shm1_1 ._btnGroup_1shm1_13 ._btnImg_1shm1_49 .van-icon:after{content:"\\76f8\\518c\\83b7\\53d6\\5c01\\9762";font-size:.32rem;color:#fff}._sectionVideo_1shm1_1 ._btnGroup_1shm1_13 ._btnImg_1shm1_49 .van-icon img{display:none}._section_1shm1_1{margin:.32rem .34667rem;background:#FFFFFF;border-radius:.26667rem;overflow:hidden;font-size:.42667rem}._section_1shm1_1 .van-field__control::-moz-placeholder{color:#aaa}._section_1shm1_1 .van-field__control::placeholder{color:#aaa}._sectionFile_1shm1_86{padding:.32rem;display:flex}._sectionFile_1shm1_86 .van-uploader{--upload-file-size: 1.65333rem;border-radius:.21333rem;overflow:hidden}._sectionFile_1shm1_86 .van-uploader__upload{margin:0}._sectionFile_1shm1_86 ._muploader_1shm1_98{position:relative;z-index:9;width:1.65333rem;height:1.65333rem;border:none;margin:0;border-radius:.21333rem;background-color:#fff}._sectionFile_1shm1_86 ._uploadImg_1shm1_108{position:relative;border-radius:.21333rem;margin-right:.42667rem}._sectionFile_1shm1_86 ._uploadImg_1shm1_108 img{border-radius:.21333rem}._sectionFile_1shm1_86 ._uploadImg_1shm1_108 ._tip_1shm1_116{position:absolute;bottom:0;left:0;right:0;z-index:10;background:#000000;opacity:.37;font-size:.34667rem;color:#fff;line-height:.48rem;text-align:center;border-radius:0 0 .21333rem .21333rem;pointer-events:none}._sectionFile_1shm1_86 ._uploadImg_1shm1_108:before{content:"";background:url(./assets/audio-pan.f4738bc4.png) no-repeat center;background-size:contain;position:absolute;top:0;right:-.16rem;z-index:1;width:1.6rem;height:1.6rem}._sectionFile_1shm1_86 ._musicDetail_1shm1_142{display:flex;justify-content:center;flex-direction:column}._sectionFile_1shm1_86 ._musicDetail_1shm1_142 ._musicName_1shm1_147{font-size:.42667rem;font-weight:600;color:#131415;line-height:.58667rem}._sectionFile_1shm1_86 ._musicDetail_1shm1_142 ._username_1shm1_153{padding-top:.10667rem;font-size:.37333rem;color:#777;line-height:.53333rem}._btnGroup_1shm1_13{margin:.85333rem .64rem .32rem;font-weight:500;font-size:.42667rem}\n',document.head.appendChild(n),System.register(["./index-legacy.5f9666b4.js","./index-legacy.dc9d3f42.js","./index-legacy.65262689.js","./video-bg-legacy.536fd682.js","./index-legacy.b6ba0003.js","./index-legacy.812ec873.js","./index-legacy.85e16f70.js","./oss-file-upload-legacy.df00d4c7.js","./index-legacy.eeb2818e.js","./ImagePreview-legacy.b296cabe.js","./index-legacy.8f20f3d1.js","./index-legacy.892caf3d.js","./function-call-legacy.9dcacb2c.js","./index-legacy.1f24a6b5.js"],(function(e){"use strict";var n,t,o,r,s,a,c,m,l,d,_,u,g,h,p,A,f;return{setters:[function(e){n=e.d,t=e.ah,o=e.ag,r=e.r,s=e.$,a=e.c,c=e.aj,m=e.q,l=e.B,d=e.e},function(e){_=e.O},function(e){u=e.O},function(e){g=e.a,h=e.m,p=e.v,A=e.d},function(e){f=e.F},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var b="_sectionVideo_1shm1_1",v="_videoBg_1shm1_7",y="_btnGroup_1shm1_13",w="_btnCropper_1shm1_37",x="_btnImg_1shm1_49",I="_section_1shm1_1",k="_sectionFile_1shm1_86",F="_muploader_1shm1_98",B="_uploadImg_1shm1_108",C="_musicDetail_1shm1_142",V="_musicName_1shm1_147",j="_username_1shm1_153";e("default",n({name:"creation-edit",setup:function(){var e=t(),n=o(),L=r({id:e.query.id,playType:"",musicDetail:{},desc:"",videoImg:"",img:null}),E=function(){var e=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,A({id:L.id,img:L.img,videoImg:L.videoImg,desc:L.desc||"我发布了一首演奏作品,快来听听吧~",musicPracticeRecordId:L.musicDetail.musicPracticeRecordId,type:"FORMAL"});case 3:n.back(),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.log(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),J=function(){d({api:"videoCrop",content:{url:L.musicDetail.videoUrl}},(function(e){null!=e&&e.content.videoCover&&(L.videoImg=e.content.videoCover)}))};return s(i(regeneratorRuntime.mark((function e(){var i,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g(L.id);case 3:i=e.sent,n=i.data,L.musicDetail=n,L.desc=n.desc,L.videoImg=n.videoImg,L.img=n.img||h,-1!==(null==n?void 0:n.videoUrl.lastIndexOf("mp4"))?L.playType="Video":L.playType="Audio",e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:case"end":return e.stop()}}),e,null,[[0,12]])})))),function(){return a("div",null,[a(_,{position:"top"},{default:function(){return[a(c,{border:!1},null)]}}),"Video"===L.playType&&a("div",{class:[I,b]},[a("img",{src:L.videoImg||p,class:v},null),a("div",{class:y},[a(u,{class:x,cropper:!0,deletable:!1,onUploadChange:function(e){L.videoImg=e},tips:"",options:{fixedNumber:[16,9]}},null),a("div",{class:w,onClick:J},[m("视频截取封面")])])]),a("div",{class:I},[a(f,{rows:4,autosize:!0,type:"textarea",maxlength:150,placeholder:"我发布了一首演奏作品,快来听听吧~",showWordLimit:!0,modelValue:L.desc,"onUpdate:modelValue":function(e){return L.desc=e}},null)]),a("div",{class:[I,k]},[a("div",{class:B},[a(u,{class:F,cropper:!0,deletable:!1,modelValue:L.img,"onUpdate:modelValue":function(e){return L.img=e}},null)]),a("div",{class:C},[a("p",{class:V},[L.musicDetail.musicSheetName]),a("p",{class:j},[L.musicDetail.username])])]),a("div",{class:y},[a(l,{type:"primary",round:!0,block:!0,color:"#FF8057",onClick:E},{default:function(){return["FORMAL"===L.musicDetail.type?"保存":"发布"]}})])])}}}))}}}))}();
|