index-legacy.73226124.js 9.1 KB

1
  1. !function(){function e(e,i,n,t,o,r,c){try{var a=e[r](c),l=a.value}catch(s){return void n(s)}a.done?i(l):Promise.resolve(l).then(t,o)}function i(i){return function(){var n=this,t=arguments;return new Promise((function(o,r){var c=i.apply(n,t);function a(i){e(c,o,r,a,l,"next",i)}function l(i){e(c,o,r,a,l,"throw",i)}a(void 0)}))}}var n=document.createElement("style");n.innerHTML='._sectionVideo_c9e86_1{position:relative;line-height:0;overflow:visible!important;margin-bottom:.64rem!important}._sectionVideo_c9e86_1 ._videoBg_c9e86_7{width:100%;height:4.26667rem;-o-object-fit:cover;object-fit:cover;border-radius:.26667rem}._sectionVideo_c9e86_1 ._btnGroup_c9e86_13{position:absolute;left:50%;bottom:-.32rem;background:linear-gradient(180deg,rgba(128,158,200,.59) 0%,rgba(58,101,162,.59) 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_c9e86_1 ._btnGroup_c9e86_13>div{flex:1;text-align:center;display:flex;align-items:center;justify-content:center}._sectionVideo_c9e86_1 ._btnGroup_c9e86_13 ._btnCropper_c9e86_37{border-left:.02667rem solid #fff}._sectionVideo_c9e86_1 ._btnGroup_c9e86_13 ._btnCropper_c9e86_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_c9e86_1 ._btnGroup_c9e86_13 ._btnImg_c9e86_49{margin:0;height:inherit;border:0;border-radius:0}._sectionVideo_c9e86_1 ._btnGroup_c9e86_13 ._btnImg_c9e86_49 .van-icon{display:flex;align-items:center}._sectionVideo_c9e86_1 ._btnGroup_c9e86_13 ._btnImg_c9e86_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_c9e86_1 ._btnGroup_c9e86_13 ._btnImg_c9e86_49 .van-icon:after{content:"\\76f8\\518c\\83b7\\53d6\\5c01\\9762";font-size:.32rem;color:#fff}._sectionVideo_c9e86_1 ._btnGroup_c9e86_13 ._btnImg_c9e86_49 .van-icon img{display:none}._section_c9e86_1{margin:.32rem .34667rem;background:#FFFFFF;border-radius:.26667rem;overflow:hidden;font-size:.42667rem}._section_c9e86_1 .van-field__control::-moz-placeholder{color:#aaa}._section_c9e86_1 .van-field__control::placeholder{color:#aaa}._sectionFile_c9e86_86{padding:.32rem;display:flex}._sectionFile_c9e86_86 .van-uploader{--upload-file-size: 1.65333rem;border-radius:.21333rem;overflow:hidden}._sectionFile_c9e86_86 .van-uploader__upload{margin:0}._sectionFile_c9e86_86 ._muploader_c9e86_98{position:relative;z-index:9;width:1.65333rem;height:1.65333rem;border:none;margin:0;border-radius:.21333rem;overflow:hidden;background-color:#fff}._sectionFile_c9e86_86 ._muploader_c9e86_98:after{content:"\\9009\\5c01\\9762";position:absolute;bottom:0;left:0;right:0;z-index:10;background:#000000;opacity:.37;line-height:.53333rem;height:.53333rem;font-size:.34667rem;color:#fff;line-height:.48rem;text-align:center;border-radius:0 0 .21333rem .21333rem;pointer-events:none}._sectionFile_c9e86_86 ._uploadImg_c9e86_127{position:relative;border-radius:.21333rem;margin-right:.42667rem}._sectionFile_c9e86_86 ._uploadImg_c9e86_127 ._tip_c9e86_132{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_c9e86_86 ._uploadImg_c9e86_127: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_c9e86_86 ._musicDetail_c9e86_158{display:flex;justify-content:center;flex-direction:column}._sectionFile_c9e86_86 ._musicDetail_c9e86_158 ._musicName_c9e86_163{font-size:.42667rem;font-weight:600;color:#131415;line-height:.58667rem}._sectionFile_c9e86_86 ._musicDetail_c9e86_158 ._username_c9e86_169{padding-top:.10667rem;font-size:.37333rem;color:#777;line-height:.53333rem}._btnGroup_c9e86_13{margin:.85333rem .64rem .32rem;font-weight:500;font-size:.42667rem}\n',document.head.appendChild(n),System.register(["./index-legacy.b903c881.js","./index-legacy.885c229f.js","./index-legacy.6b8d5fc3.js","./index-legacy.b7f666cc.js","./index-legacy.e9e6da38.js","./index-legacy.2aba0015.js","./api-legacy.b46a26af.js","./use-id-legacy.29724920.js","./index-legacy.5b93d63d.js","./index-legacy.ae2ce69e.js","./index-legacy.712aadc5.js","./oss-file-upload-legacy.930c862e.js"],(function(e){"use strict";var n,t,o,r,c,a,l,s,d,_,u,m,g,p,A,f;return{setters:[function(e){n=e.d,t=e.O,o=e.P,r=e.Q,c=e.U,a=e.j,l=e.z,s=e.B,d=e.n},function(e){_=e.C},function(e){u=e.C},function(){},function(e){m=e.F},function(e){g=e.C},function(e){p=e.a,A=e.v,f=e.d},function(){},function(){},function(){},function(){},function(){}],execute:function(){var v="_sectionVideo_c9e86_1",b="_videoBg_c9e86_7",h="_btnGroup_c9e86_13",y="_btnCropper_c9e86_37",w="_btnImg_c9e86_49",x="_section_c9e86_1",I="_sectionFile_c9e86_86",k="_muploader_c9e86_98",C="_uploadImg_c9e86_127",B="_musicDetail_c9e86_158",F="_musicName_c9e86_163",V="_username_c9e86_169";e("default",n({name:"creation-edit",setup:function(){var e=t(),n=o(),L=r({id:e.query.id,musicDetail:{},playType:"",desc:"",videoImg:"",img:""}),j=function(){var e=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log({id:L.id,img:L.img,videoImg:L.videoImg,desc:L.desc||"我发布了一首演奏作品,快来听听吧~",musicPracticeRecordId:L.musicDetail.musicPracticeRecordId,type:"FORMAL"}),e.prev=1,e.next=4,f({id:L.id,img:L.img,videoImg:L.videoImg,desc:L.desc||"我发布了一首演奏作品,快来听听吧~",musicPracticeRecordId:L.musicDetail.musicPracticeRecordId,type:"FORMAL"});case 4:n.back(),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(1);case 9:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(){return e.apply(this,arguments)}}(),z=function(){d({api:"videoCrop",content:{url:L.musicDetail.videoUrl}},(function(e){null!=e&&e.content.videoCover&&(L.videoImg=e.content.videoCover)}))};return c(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,p(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,-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(u,{position:"top"},{default:function(){return[a(_,{border:!1},null)]}}),"Video"===L.playType&&a("div",{class:[x,v]},[a("img",{src:L.videoImg||A,class:b},null),a("div",{class:h},[a(g,{class:w,cropper:!0,tips:"",deletable:!1,onUploadChange:function(e){console.log(e,"img"),L.videoImg=e},options:{fixedNumber:[16,9]}},null),a("div",{class:y,onClick:z},[l("视频截取封面")])])]),a("div",{class:x},[a(m,{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:[x,I]},[a("div",{class:C},[a(g,{class:k,cropper:!0,tips:"",deletable:!1,modelValue:L.img,"onUpdate:modelValue":function(e){return L.img=e}},null)]),a("div",{class:B},[a("p",{class:F},[L.musicDetail.musicSheetName]),a("p",{class:V},[L.musicDetail.username])])]),a("div",{class:h},[a(s,{type:"primary",round:!0,block:!0,color:"#2DC7AA",onClick:j},{default:function(){return["FORMAL"===L.musicDetail.type?"保存":"发布"]}})])])}}}))}}}))}();