1 |
- !function(){function e(e,i,n,t,o,a,r){try{var c=e[a](r),s=c.value}catch(g){return void n(g)}c.done?i(s):Promise.resolve(s).then(t,o)}function i(i){return function(){var n=this,t=arguments;return new Promise((function(o,a){var r=i.apply(n,t);function c(i){e(r,o,a,c,s,"next",i)}function s(i){e(r,o,a,c,s,"throw",i)}c(void 0)}))}}var n=document.createElement("style");n.innerHTML='._creationTablet_4veag_1 ._sectionVideo_4veag_1 ._videoBg_4veag_1{height:8.37333rem}._sectionVideo_4veag_1{position:relative;line-height:0;overflow:visible!important;margin-bottom:.32rem!important}._sectionVideo_4veag_1 ._videoBg_4veag_1{width:100%;height:4.26667rem;-o-object-fit:cover;object-fit:cover;border-radius:.26667rem}._sectionVideo_4veag_1 ._btnGroup_4veag_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_4veag_1 ._btnGroup_4veag_16>div{flex:1;text-align:center;display:flex;align-items:center;justify-content:center}._sectionVideo_4veag_1 ._btnGroup_4veag_16 ._btnCropper_4veag_40{border-left:.02667rem solid #fff}._sectionVideo_4veag_1 ._btnGroup_4veag_16 ._btnCropper_4veag_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_4veag_1 ._btnGroup_4veag_16 ._btnImg_4veag_52{margin:0;height:inherit;border:0;border-radius:0}._sectionVideo_4veag_1 ._btnGroup_4veag_16 ._btnImg_4veag_52 .van-icon{display:flex;align-items:center}._sectionVideo_4veag_1 ._btnGroup_4veag_16 ._btnImg_4veag_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_4veag_1 ._btnGroup_4veag_16 ._btnImg_4veag_52 .van-icon:after{content:"\\76f8\\518c\\83b7\\53d6\\5c01\\9762";font-size:.32rem;color:#fff}._sectionVideo_4veag_1 ._btnGroup_4veag_16 ._btnImg_4veag_52 .van-icon img{display:none}._section_4veag_1{margin:.32rem .34667rem;background:#FFFFFF;border-radius:.26667rem;overflow:hidden;font-size:.42667rem}._section_4veag_1 .van-field__control::-moz-placeholder{color:#aaa}._section_4veag_1 .van-field__control::placeholder{color:#aaa}._sectionFile_4veag_89{padding:.32rem;display:flex}._sectionFile_4veag_89 .van-uploader{--upload-file-size: 1.65333rem;border-radius:.21333rem;overflow:hidden}._sectionFile_4veag_89 .van-uploader__upload{margin:0}._sectionFile_4veag_89 ._muploader_4veag_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_4veag_89 ._muploader_4veag_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_4veag_89 ._uploadImg_4veag_130{position:relative;border-radius:.21333rem;margin-right:.42667rem}._sectionFile_4veag_89 ._uploadImg_4veag_130 ._tip_4veag_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_4veag_89 ._uploadImg_4veag_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_4veag_89 ._musicDetail_4veag_161{display:flex;justify-content:center;flex-direction:column}._sectionFile_4veag_89 ._musicDetail_4veag_161 ._musicName_4veag_166{font-size:.42667rem;font-weight:600;color:#131415;line-height:.58667rem}._sectionFile_4veag_89 ._musicDetail_4veag_161 ._username_4veag_172{padding-top:.10667rem;font-size:.37333rem;color:#777;line-height:.53333rem}._btnGroup_4veag_16{margin:.85333rem .64rem .32rem;font-weight:500;font-size:.42667rem}._btnGroup_4veag_16 .van-button__content .van-button__text{font-size:.42667rem}\n',document.head.appendChild(n),System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.87bcd48f.js","./index-legacy.02065493.js","./index-legacy.610f0a70.js","./index-legacy.78ce4f6b.js","./index-legacy.598eb07e.js","./api-legacy.09f0a3dc.js","./index-legacy.bbc2b10e.js","./use-id-legacy.54528695.js","./index-legacy.4a75d877.js","./index-legacy.7e047c4c.js","./index-legacy.a082ee96.js"],(function(e){"use strict";var n,t,o,a,r,c,s,g,l,d,_,u,v,m,A,p,f;return{setters:[function(e){n=e.d,t=e.f,o=e.P,a=e.Q,r=e.S,c=e.V,s=e.a5,g=e.j,l=e.A,d=e.B,_=e.n},function(e){u=e.C},function(e){v=e.C},function(){},function(e){m=e.F},function(e){A=e.C},function(e){p=e.a,f=e.d},function(){},function(){},function(){},function(){},function(){}],execute:function(){var h="_creationTablet_4veag_1",b="_sectionVideo_4veag_1",y="_videoBg_4veag_1",k="_btnGroup_4veag_16",w="_btnCropper_4veag_40",x="_btnImg_4veag_52",C="_section_4veag_1",I="_sectionFile_4veag_89",B="_muploader_4veag_101",F="_uploadImg_4veag_130",V="_musicDetail_4veag_161",D="_musicName_4veag_166",z="_username_4veag_172";e("default",n({name:"creation-edit",setup:function(){var e=t(),n=e.isTablet,L=e.ios,j=e.iPhone,E=o(),J=a(),S=r({id:E.query.id,musicDetail:{},playType:"",desc:"",videoImg:"",img:"",needCheckDevice:!(!L&&!j),hasDeviceAuth:!1}),T=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:S.id,img:S.img,videoImg:S.videoImg,desc:S.desc||"我发布了一首演奏作品,快来听听吧~",musicPracticeRecordId:S.musicDetail.musicPracticeRecordId,type:"FORMAL"}),e.prev=1,e.next=4,f({id:S.id,img:S.img,videoImg:S.videoImg,desc:S.desc||"我发布了一首演奏作品,快来听听吧~",musicPracticeRecordId:S.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)}}(),G=function(){console.log("校验app",S.needCheckDevice),S.needCheckDevice?_({api:"checkDeviceCamera"},(function(e){var i=e.content;null!=i&&i.status?S.hasDeviceAuth=!0:S.hasDeviceAuth=!1})):S.hasDeviceAuth=!0},R=function(){_({api:"videoCrop",content:{url:S.musicDetail.videoUrl}},(function(e){null!=e&&e.content.videoCover&&(S.videoImg=e.content.videoCover)}))};function P(e){_({api:"setStatusBarTextColor",content:{statusBarTextColor:e}})}return c(i(regeneratorRuntime.mark((function e(){var i,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _({api:"checkDeviceCamera",content:{hideAlert:!0}},(function(e){null!=e&&e.content.status&&(S.hasDeviceAuth=!0)})),P(!1),e.prev=2,e.next=5,p(S.id);case 5:i=e.sent,n=i.data,S.musicDetail=n,S.desc=n.desc,S.videoImg=n.videoImg,S.img=n.img,-1!==(null==n?void 0:n.videoUrl.lastIndexOf("mp4"))?S.playType="Video":S.playType="Audio",e.next=16;break;case 14:e.prev=14,e.t0=e.catch(2);case 16:case"end":return e.stop()}}),e,null,[[2,14]])})))),s((function(){P(!0)})),function(){return g("div",{class:n?h:""},[g(v,{position:"top"},{default:function(){return[g(u,{background:"#F1F1F1",border:!1},null)]}}),g("div",{class:[C,I]},[g("div",{class:F,onClick:G},[g(A,{class:B,cropper:!0,tips:"",deletable:!1,hasDeviceAuth:S.hasDeviceAuth,modelValue:S.img,"onUpdate:modelValue":function(e){return S.img=e}},null)]),g("div",{class:V},[g("p",{class:D},[S.musicDetail.musicSheetName]),g("p",{class:z},[S.musicDetail.username])])]),"Video"===S.playType&&g("div",{class:[C,b]},[g("img",{src:S.videoImg||"./assets/videobg.e5380989.png",class:y},null),g("div",{class:k},[g("div",{onClick:G},[g(A,{class:x,cropper:!0,tips:"",deletable:!1,hasDeviceAuth:S.hasDeviceAuth,onUploadChange:function(e){console.log(e,"img"),S.videoImg=e},options:{fixedNumber:[16,9]}},null)]),g("div",{class:w,onClick:R},[l("视频截取封面")])])]),g("div",{class:C},[g(m,{rows:4,autosize:!0,type:"textarea",maxlength:150,placeholder:"我发布了一首演奏作品,快来听听吧~",showWordLimit:!0,modelValue:S.desc,"onUpdate:modelValue":function(e){return S.desc=e}},null)]),g("div",{class:k},[g(d,{type:"primary",round:!0,block:!0,color:"#2DC7AA",onClick:T},{default:function(){return["FORMAL"===S.musicDetail.type?"保存":"发布"]}})])])}}}))}}}))}();
|