index-legacy.d14a9b76.js 9.3 KB

1
  1. !function(){function e(e,i,n,t,o,r,c){try{var a=e[r](c),u=a.value}catch(s){return void n(s)}a.done?i(u):Promise.resolve(u).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,u,"next",i)}function u(i){e(c,o,r,a,u,"throw",i)}a(void 0)}))}}var n=document.createElement("style");n.innerHTML='._creationTablet_2hui8_1 ._sectionVideo_2hui8_1 ._videoBg_2hui8_1{height:8.37333rem}._sectionVideo_2hui8_1{position:relative;line-height:0;overflow:visible!important;margin-bottom:.64rem!important}._sectionVideo_2hui8_1 ._videoBg_2hui8_1{width:100%;height:4.26667rem;-o-object-fit:cover;object-fit:cover;border-radius:.26667rem}._sectionVideo_2hui8_1 ._btnGroup_2hui8_16{position:absolute;left:50%;bottom:.32rem;background:linear-gradient(180deg,rgba(128,177,200,.59) 0%,rgba(58,152,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_2hui8_1 ._btnGroup_2hui8_16>div{flex:1;text-align:center;display:flex;align-items:center;justify-content:center}._sectionVideo_2hui8_1 ._btnGroup_2hui8_16 ._btnCropper_2hui8_40{border-left:.02667rem solid #fff}._sectionVideo_2hui8_1 ._btnGroup_2hui8_16 ._btnCropper_2hui8_40: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_2hui8_1 ._btnGroup_2hui8_16 ._btnImg_2hui8_52{margin:0;height:inherit;border:0;border-radius:0}._sectionVideo_2hui8_1 ._btnGroup_2hui8_16 ._btnImg_2hui8_52 .van-icon{display:flex;align-items:center}._sectionVideo_2hui8_1 ._btnGroup_2hui8_16 ._btnImg_2hui8_52 .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_2hui8_1 ._btnGroup_2hui8_16 ._btnImg_2hui8_52 .van-icon:after{content:"\\76f8\\518c\\83b7\\53d6\\5c01\\9762";font-size:.32rem;color:#fff}._sectionVideo_2hui8_1 ._btnGroup_2hui8_16 ._btnImg_2hui8_52 .van-icon img{display:none}._section_2hui8_1{margin:.32rem .34667rem;background:#FFFFFF;border-radius:.26667rem;overflow:hidden;font-size:.42667rem}._section_2hui8_1 .van-field__control::-moz-placeholder{color:#aaa}._section_2hui8_1 .van-field__control::placeholder{color:#aaa}._sectionFile_2hui8_89{padding:.32rem;display:flex}._sectionFile_2hui8_89 .van-uploader{--upload-file-size: 1.65333rem;border-radius:.21333rem;overflow:hidden}._sectionFile_2hui8_89 .van-uploader__upload{margin:0}._sectionFile_2hui8_89 ._muploader_2hui8_101{position:relative;z-index:9;width:1.65333rem;height:1.65333rem;border:none;margin:0;border-radius:.21333rem;overflow:hidden;background-color:#fff}._sectionFile_2hui8_89 ._muploader_2hui8_101: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_2hui8_89 ._uploadImg_2hui8_130{position:relative;border-radius:.21333rem;margin-right:.42667rem}._sectionFile_2hui8_89 ._uploadImg_2hui8_130 ._tip_2hui8_135{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_2hui8_89 ._uploadImg_2hui8_130: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_2hui8_89 ._musicDetail_2hui8_161{display:flex;justify-content:center;flex-direction:column}._sectionFile_2hui8_89 ._musicDetail_2hui8_161 ._musicName_2hui8_166{font-size:.42667rem;font-weight:600;color:#131415;line-height:.58667rem}._sectionFile_2hui8_89 ._musicDetail_2hui8_161 ._username_2hui8_172{padding-top:.10667rem;font-size:.37333rem;color:#777;line-height:.53333rem}._btnGroup_2hui8_16{margin:.85333rem .64rem .32rem;font-weight:500;font-size:.42667rem}\n',document.head.appendChild(n),System.register(["./ResizeObserver.es-legacy.a3d44ddf.js","./index-legacy.58de274c.js","./index-legacy.21ec1610.js","./index-legacy.1bd0c564.js","./index-legacy.575acdf7.js","./index-legacy.2e0346e4.js","./api-legacy.5fa39b50.js","./index-legacy.af24b797.js","./use-id-legacy.f0e0648f.js","./index-legacy.fe161275.js","./index-legacy.7d89f145.js","./index-legacy.06ebcad2.js"],(function(e){"use strict";var n,t,o,r,c,a,u,s,d,l,_,g,m,h,p,A;return{setters:[function(e){n=e.d,t=e.f,o=e.P,r=e.Q,c=e.S,a=e.V,u=e.j,s=e.A,d=e.B,l=e.n},function(e){_=e.C},function(e){g=e.C},function(){},function(e){m=e.F},function(e){h=e.C},function(e){p=e.a,A=e.d},function(){},function(){},function(){},function(){},function(){}],execute:function(){var f="_creationTablet_2hui8_1",b="_sectionVideo_2hui8_1",v="_videoBg_2hui8_1",y="_btnGroup_2hui8_16",w="_btnCropper_2hui8_40",x="_btnImg_2hui8_52",I="_section_2hui8_1",k="_sectionFile_2hui8_89",C="_muploader_2hui8_101",F="_uploadImg_2hui8_130",B="_musicDetail_2hui8_161",V="_musicName_2hui8_166",L="_username_2hui8_172";e("default",n({name:"creation-edit",setup:function(){var e=t().isTablet,n=o(),j=r(),z=c({id:n.query.id,musicDetail:{},playType:"",desc:"",videoImg:"",img:""}),E=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:z.id,img:z.img,videoImg:z.videoImg,desc:z.desc||"我发布了一首演奏作品,快来听听吧~",musicPracticeRecordId:z.musicDetail.musicPracticeRecordId,type:"FORMAL"}),e.prev=1,e.next=4,A({id:z.id,img:z.img,videoImg:z.videoImg,desc:z.desc||"我发布了一首演奏作品,快来听听吧~",musicPracticeRecordId:z.musicDetail.musicPracticeRecordId,type:"FORMAL"});case 4:j.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)}}(),J=function(){l({api:"videoCrop",content:{url:z.musicDetail.videoUrl}},(function(e){null!=e&&e.content.videoCover&&(z.videoImg=e.content.videoCover)}))};return a(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(z.id);case 3:i=e.sent,n=i.data,z.musicDetail=n,z.desc=n.desc,z.videoImg=n.videoImg,z.img=n.img,-1!==(null==n?void 0:n.videoUrl.lastIndexOf("mp4"))?z.playType="Video":z.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 u("div",{class:e?f:""},[u(g,{position:"top"},{default:function(){return[u(_,{background:"#F1F1F1",border:!1},null)]}}),u("div",{class:[I,k]},[u("div",{class:F},[u(h,{class:C,cropper:!0,tips:"",deletable:!1,modelValue:z.img,"onUpdate:modelValue":function(e){return z.img=e}},null)]),u("div",{class:B},[u("p",{class:V},[z.musicDetail.musicSheetName]),u("p",{class:L},[z.musicDetail.username])])]),"Video"===z.playType&&u("div",{class:[I,b]},[u("img",{src:z.videoImg||"./assets/videobg.e5380989.png",class:v},null),u("div",{class:y},[u(h,{class:x,cropper:!0,tips:"",deletable:!1,onUploadChange:function(e){console.log(e,"img"),z.videoImg=e},options:{fixedNumber:[16,9]}},null),u("div",{class:w,onClick:J},[s("视频截取封面")])])]),u("div",{class:I},[u(m,{rows:4,autosize:!0,type:"textarea",maxlength:150,placeholder:"我发布了一首演奏作品,快来听听吧~",showWordLimit:!0,modelValue:z.desc,"onUpdate:modelValue":function(e){return z.desc=e}},null)]),u("div",{class:y},[u(d,{type:"primary",round:!0,block:!0,color:"#2DC7AA",onClick:E},{default:function(){return["FORMAL"===z.musicDetail.type?"保存":"发布"]}})])])}}}))}}}))}();