index-legacy.fe5f486b.js 42 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i<arguments.length;i++){var a=null!=arguments[i]?arguments[i]:{};i%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,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 i(e,t,n,i,a,r,o){try{var l=e[r](o),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(i,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function l(e){i(o,a,r,l,s,"next",e)}function s(e){i(o,a,r,l,s,"throw",e)}l(void 0)}))}}var r=document.createElement("style");r.innerHTML="._shareContent_lhbhk_1{position:relative;width:8.93333rem;height:9.46667rem;margin:0 auto 2.02667rem}._shareContent_lhbhk_1 ._shareBg_lhbhk_7{position:absolute;top:0;left:0;z-index:1;width:8.93333rem;height:9.46667rem}._shareContent_lhbhk_1 ._share_content__title_lhbhk_15{position:relative;z-index:3;padding-top:1.44rem;padding-left:.37333rem;color:#fff;text-shadow:0 .05333rem .10667rem rgba(10,181,192,.7);width:4.53333rem}._shareContent_lhbhk_1 ._share_content__title_lhbhk_15 ._large_lhbhk_24{font-size:.50667rem;font-weight:600;line-height:.69333rem}._shareContent_lhbhk_1 ._share_content__title_lhbhk_15 ._small_lhbhk_29{padding-top:.16rem;font-size:.37333rem;line-height:.53333rem}._sectionFile_lhbhk_34{position:relative;z-index:3;margin:.66667rem .4rem .37333rem;padding:.32rem;display:flex;background:rgba(255,255,255,.79);border-radius:.26667rem}._sectionFile_lhbhk_34 ._muploader_lhbhk_43{position:relative;z-index:9;width:1.49333rem;height:1.49333rem;-o-object-fit:cover;object-fit:cover;border-radius:.24rem}._sectionFile_lhbhk_34 ._uploadImg_lhbhk_51{position:relative;border-radius:.16rem;margin-right:.42667rem}._sectionFile_lhbhk_34 ._uploadImg_lhbhk_51 ._audioPan_lhbhk_56{position:absolute;top:0;right:-.16rem;z-index:1;width:1.49333rem;height:1.49333rem}._sectionFile_lhbhk_34 ._uploadImg_lhbhk_51 ._imgLabel_lhbhk_64{position:absolute;right:0;top:0;width:.74667rem;height:.37333rem;z-index:10}._sectionFile_lhbhk_34 ._musicDetail_lhbhk_72{display:flex;justify-content:center;flex-direction:column}._sectionFile_lhbhk_34 ._musicDetail_lhbhk_72 ._musicName_lhbhk_77{font-size:.42667rem;font-weight:600;color:#131415;line-height:.58667rem;max-width:5.33333rem}._sectionFile_lhbhk_34 ._musicDetail_lhbhk_72 ._username_lhbhk_84{padding-top:.10667rem;font-size:.34667rem;color:#aaa;line-height:.53333rem}._downloadSection_lhbhk_90{display:flex;align-items:center;margin:0 .53333rem;position:relative;z-index:3}._downloadSection_lhbhk_90 ._qrcode_lhbhk_97{position:relative;width:2.24rem;height:2.24rem;padding:.08rem;border-radius:.10667rem;border:.02667rem solid #2BD1B2;flex-shrink:0;overflow:hidden}._downloadSection_lhbhk_90 ._qrcode_lhbhk_97 ._qrcodeCanvas_lhbhk_107{width:100%!important;height:100%!important}._downloadSection_lhbhk_90 ._qrcode_lhbhk_97 ._qrcodeLogo_lhbhk_111{position:absolute;top:50%;left:50%;z-index:10;margin-left:-.21333rem;margin-top:-.21333rem;width:.42667rem;height:.42667rem;border-radius:.10667rem}._downloadSection_lhbhk_90 ._qrtips_lhbhk_122{margin-left:.26667rem;padding-left:.24rem;border-left:.02667rem dashed #D8D8D8;font-weight:500;font-size:.32rem;color:#01c1b5;line-height:.48rem;padding-top:.13333rem}._downloadSection_lhbhk_90 ._qrtips_lhbhk_122 ._tip_lhbhk_132{font-size:.32rem;color:#777;line-height:.45333rem}._downloadSection_lhbhk_90 ._qrtips_lhbhk_122 ._iconLogo_lhbhk_137{width:1.81333rem;height:.56rem;margin:.13333rem 0 0}._downloadSection_lhbhk_90 ._qrtips_lhbhk_122 ._downTip_lhbhk_142{font-size:.32rem;font-weight:500;color:#333;line-height:.45333rem}._shareBottom_lhbhk_148{position:relative;background-color:#fff;border-radius:.32rem .32rem 0 0;padding-bottom:env(safe-area-inset-bottom)}._shareBottom_lhbhk_148 ._iconClose_lhbhk_154{position:absolute;top:.32rem;right:.32rem;font-size:.53333rem;color:#999}._shareBottom_lhbhk_148 .van-grid{justify-content:space-around}._share__header_lhbhk_164{padding:.32rem .4rem .21333rem;font-size:.42667rem;color:#333;line-height:.58667rem}._gridSection_lhbhk_170{--van-grid-item-icon-size: 1.17333rem;--van-grid-item-text-font-size: .32rem;--van-grid-item-text-color: #646566;--van-grid-item-content-padding: .42667rem .32rem}._btn_lhbhk_176{font-size:.42667rem;color:#aaa;line-height:1.46667rem;text-align:center}\n",document.head.appendChild(r),System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./loading-legacy.334932ef.js","./index-legacy.5d9f864a.js","./index-legacy.6ac2a941.js","./index-legacy.c8c5bc4e.js","./index-legacy.4be048cf.js","./index-legacy.43e69380.js","./index-legacy.3ccba950.js","./browser-legacy.697b5ca6.js","./api-legacy.5327346b.js","./index-legacy.0b3e1f8d.js","./logo-legacy.cf4b3bd2.js","./browser-legacy.da3142a2.js","./html2canvas.esm-legacy.19f9c2b7.js","./plyr-legacy.2bfabaee.js","./plyr.min-legacy.2c76eff7.js","./index-legacy.4bad5b90.js","./use-tab-status-legacy.d7434e0b.js"],(function(e){"use strict";var n,i,r,o,l,s,c,u,d,m,p,h,f,A,g,v,b,k,y,w,x,S,B,C,I,L,T,z,_,E,P,O,V,D,U,R,F,G,j,W,X,M,H,N,Y,q,K,J,Q,Z,$,ee,te,ne,ie,ae,re,oe,le,se;return{setters:[function(e){n=e.d,i=e.U,r=e.S,o=e.V,l=e.j,s=e.A,c=e.N,u=e.T,d=e.p,m=e.f,p=e.P,h=e.Q,f=e.an,A=e.a3,g=e.D,v=e.n,b=e.bi,k=e.bj,y=e.bI,w=e.w,x=e.C,S=e.aS,B=e.B,C=e.$,I=e.g},function(e){L=e.a,T=e.m,z=e.b,_=e.v,E=e.s,P=e.c,O=e.d,V=e.t,D=e.e,U=e.f,R=e.g,F=e.i,G=e.h,j=e.T,W=e.j,X=e.L,M=e.k},function(e){H=e.C},function(e){N=e.C},function(e){Y=e.C},function(e){q=e.I},function(e){K=e.L},function(e){J=e.S},function(e){Q=e.b,Z=e.N},function(e){$=e.a,ee=e.b,te=e.c},function(e){ne=e.G,ie=e.a},function(e){ae=e.l},function(e){re=e.b,oe=e.i},function(e){le=e.h},function(){},function(e){se=e.P},function(){},function(){}],execute:function(){var ce={shareContent:"_shareContent_lhbhk_1",shareBg:"_shareBg_lhbhk_7",share_content__title:"_share_content__title_lhbhk_15",large:"_large_lhbhk_24",small:"_small_lhbhk_29",sectionFile:"_sectionFile_lhbhk_34",muploader:"_muploader_lhbhk_43",uploadImg:"_uploadImg_lhbhk_51",audioPan:"_audioPan_lhbhk_56",imgLabel:"_imgLabel_lhbhk_64",musicDetail:"_musicDetail_lhbhk_72",musicName:"_musicName_lhbhk_77",username:"_username_lhbhk_84",downloadSection:"_downloadSection_lhbhk_90",qrcode:"_qrcode_lhbhk_97",qrcodeCanvas:"_qrcodeCanvas_lhbhk_107",qrcodeLogo:"_qrcodeLogo_lhbhk_111",qrtips:"_qrtips_lhbhk_122",tip:"_tip_lhbhk_132",iconLogo:"_iconLogo_lhbhk_137",downTip:"_downTip_lhbhk_142",shareBottom:"_shareBottom_lhbhk_148",iconClose:"_iconClose_lhbhk_154",share__header:"_share__header_lhbhk_164",gridSection:"_gridSection_lhbhk_170",btn:"_btn_lhbhk_176"},ue=n({name:"sahre-model",props:{musicDetail:{type:Object,default:function(){}},playType:{type:String,default:""}},emits:["close"],setup:function(e,t){var n=t.emit,m=i(),p=r({saveLoading:!1,image:null,url:""}),h=function(){var e=a(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.loading({message:"图片生成中...",forbidClick:!0}),setTimeout((function(){p.saveLoading=!1}),100),e.next=4,d({api:"savePicture",content:{base64:p.image}});case 4:"success"===(null==(n=e.sent)||null===(t=n.content)||void 0===t?void 0:t.status)?u.success("已保存到相册"):u.fail("保存失败");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=function(){var t=a(regeneratorRuntime.mark((function t(n){var i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return setTimeout((function(){p.saveLoading=!1}),100),t.next=3,d({api:"shareTripartite",content:{title:"我在酷乐秀发布了演奏作品",desc:e.musicDetail.desc,video:"",type:"link",url:p.url,thumb:encodeURI(decodeURI(e.musicDetail.img)),shareType:n}});case 3:null!=(a=t.sent)&&null!==(i=a.content)&&void 0!==i&&i.status?u.success("分享成功"):u.fail("分享失败");case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),A=function(e){if(!p.saveLoading)if(p.saveLoading=!0,p.image)e?f(e):h();else{var t=document.getElementById("shareContent");le(t,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var t=a(regeneratorRuntime.mark((function t(n){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=n.toDataURL("image/png"),p.image=i,e?f(e):h();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){u.clear(),p.saveLoading=!1}))}};return o((function(){var t=m.value;p.url=location.origin+location.pathname+"#/shareCreation?id="+e.musicDetail.id,re.toCanvas(t,p.url,{margin:1},(function(e){e&&console.log(e),console.log("success")}))})),function(){return l("div",{class:ce.shareModel},[l("div",{class:ce.shareContent,id:"shareContent"},[l("img",{src:"./assets/share-bg.7dace52e.png",class:ce.shareBg},null),l("div",{class:ce.share_content__title},[l("p",{class:ce.large},[s("我在酷乐秀发布了演奏作品")]),l("p",{class:ce.small},[s("赶快扫码看看吧!")])]),l("div",{class:[ce.share_music__container,ce.sectionFile]},[l("div",{class:ce.uploadImg},[l("img",{src:L,class:ce.audioPan,crossorigin:"anonymous"},null),l("img",{src:e.musicDetail.img?e.musicDetail.img+"?t"+(new Date).getTime():T,class:ce.muploader,crossorigin:"anonymous"},null),l("img",{class:ce.imgLabel,src:"Audio"===e.playType?z:_},null)]),l("div",{class:ce.musicDetail},[l("p",{class:[ce.musicName,"van-ellipsis"]},[e.musicDetail.musicSheetName]),l("p",{class:ce.username},[s("演奏者:"),e.musicDetail.username])])]),l("div",{class:ce.downloadSection},[l("div",{class:ce.qrcode},[l("canvas",{ref:m,class:ce.qrcodeCanvas},null),l("img",{src:oe,class:ce.qrcodeLogo},null)]),l("div",{class:ce.qrtips},[l("div",null,[s("温馨提示:")]),l("p",{class:ce.tip},[s("保存图片到相册后,请在微信里扫码查看~")]),l("img",{src:ae,class:ce.iconLogo},null)])])]),l("div",{class:ce.shareBottom},[l(c,{name:"cross",class:ce.iconClose,onClick:function(){return n("close")}},null),l("div",{class:ce.share__header},[s("海报已生成!快来分享吧!")]),l(ne,{columnNum:5,border:!1,class:ce.gridSection},{default:function(){return[l(ie,{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAMAAABGS8AGAAABxVBMVEUAAAD/i1L/gk//j1j/s1n/j1j/pmf/gU7/qWn/m2H/g0//k1r/fkz/g0//pGX/g0//qGn/nGH/ilT/pGb/ml//fUv/qWn/i1b/pGX/gk//g0//lFv/gk//k1v/qmn/fUv/pGb/g0//pGb/pWX/hVH/jFb/fUv/lFz/r2v/hlD/o2b/qmr/jlf/fEr/qmr/p2j/oGP/hlL/pWb/pGb/qmr/ml//jFX/fUv/fkz/fUv/hFD/gU7/qmv/j1n/mV//fEv/pmj/n2P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8PJbLR9lDLTyaRtdBUw+olXebvVZr4w0qaKc33mPClhAjhWjj6VpQRzNyjxVGakA999XbVFrjDlbRug5W03awqxas5t62trZt3aFuvOybH1LU3N4LbKBZOLapudn379y96diFGrCdZsXc8W2HNO/TuHGf5kPajp+7Qk3T/5ZOe4f8BPKHAAAAAElFTkSuQmCC",text:"微信好友",onClick:function(){return A("wechat")}},null),l(ie,{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAMAAABGS8AGAAACRlBMVEUAAAB2xU6By0mx53er5XKF0E6b22Sv/4Cx5nl9yUaK0VKw5XmBzUuBzEqo4XCJ0FKX12Cy5np8yUWX2GB+yUej3mx+ykeq4XOW11+r43Ov5HaFzk2X11+Fz06p4nKN01R/zEiw53mj32uY11+X12Cu43am3m6Iz1Gz5nqBzEus4nWn33CEzE2d22av43ek3myK0FR+ykiY2GGi3muV116L0VSf3GiP01iy5XuZ2GKU1l2n4W+t5XZ9yUeZ2WOT1V2y5nqd22aQ01mn3m+IzlGAykmg3WmO1Fd9ykep4XKy53ua22WU1lx8yUew5nt9ykaw5nd8yUaS1FqR1Fqy53uy5Xuu43Ws43X///+EzU6T1VyX12CIz1Km325/y0mS1Fqr4nSf22eq4XOo4HCc2WSGzk+N0leZ2GKCzEyBy0ut43WHzlCp4XGV1l2Q01mK0FOv5Hek3myj3WyW1l+M0VWl3m2n4HCd2mah3GqL0FR9yUeDzU2P01ii3Wuu43aa2GN+ykic2mWg3Gmx5Xl8yEaa2WO445aN0Vb1+/DA557h9NP3/PL4/PWn3Xrt+OTg89Gh3Gm85ZrC6KCo3Xz8/vv7/fnz+u3k9NXR7bvF6KjG6qa65Jje8svI6ayg3Gjl9dXE6aK/55yg2XLv+eWw4oPx+urX78LO67bF6qOs33+n3nXb8ce14pKz44ek23qf2mzT7r2x4Iyr4Hui2nSh3Wrq9uHA6Jm75pO45Y6s3oWi3G2W1mOU1GPS7rjK66vB5qXo9trQ7bM6LsTSAAAAWHRSTlM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UIKcZbWAWA3wFk3CzsIJ2JlAtF6hPRLwVJWAI1rgA36ng+ey0rnBp/2A7/idPRkSGR4wt7BwbkB4ZMjJs55I/wNGissTxaMp6gAAAABJRU5ErkJggg==",text:"朋友圈",onClick:function(){return A("wechat_circle")}},null),l(ie,{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAMAAABGS8AGAAACSVBMVEUAAAD/t2v/tl39uG/+tmz/2Zn/tWj/tWb9t27/pUb9vXz/u3X+tGf/okL9tmz9unP8x43/s2L/sV3/yI7/yZD+tWr+smL9u3X9uXH+s2b+sF/+rlv+tmv+unX8ypT/s2X/r1r/t23+tWn/p0z8y5f9vHj/oUD/okL9vHj/rVf+tmz/o0L/qEz8wH78ypT8xYv8xYv+p0z/p0z9wYH7yJP/r1z9vXn7xIr+p0z+uXP/sWH+u3X/smH8ypL/pET+sF//vXr+vXj/uXP/p0z/uWD+smL+tmn9wH/8ypX/sF/+u3T9t27+tWf/r1z+smL+sV//rlr9uG//qlP+vHf/smL8x5D8wYP+qlP/pEb8y5f/oUD9w4b+t239vn3/oD/8x4/8woX8ypT8uHD/tGf/q1X8u3b/sWD/oUD9y5b/p0z9pkz9vnv/oT/9y5f+s2b/oUL9zJf/oUD9zJb/oUL8ypL/wH7/pET/w4H/pUX8v33/pEP5zZX/vXz/pEL/sl//rWv9xo38xo3+r1v/rlr+rlr9uXP9zJf9y5f+v33+vHj+v379uG79vHn/tGT/vHn/tWX/r1r+rFb8v378unX8vXn+qlP+p0v+qVH9uXL9tGj+rVn9smL8wID9sWD8wYL9s2b9vnv/pEb9uG/8w4b9t23+qE39tWr9r139tmv8w4f7yJH/pkn9vHf+sF/8xIn+rlv+s2T/qE/+rlz8woP8xo78xYz8xYv8xIr8x4/+rFj9uHH/o0P7ypX+okL8xo38yZP/okL/oUD9unSnW9GDAAAAkXRSTlMAQwVK+ARKKfUq9UL1w6OeUE5BKyH5+fj4+Pj29fHdnF0b9e7t7e3h4ODf3cnDw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p5q54nTuOF3im0F7i2mBN66+Unte+vxm5hqFcb6SW5PwixV0V9fzfC65mei7281ZCUkl73wpH7naVY6BUW4ddBzAz/rk8uguoYQisAeE2RlkvC50c8LQqt0ykIVlZUBN6KulGyAkvea5sPwCotQo+FvjdiCYB9jCyIfFKpdwGCphop3gdgfrs2UoxiOk5dAPDN7frRP7elpaW9vUUlF7zCIn6ivZgw1fkEaZAmp8hK/0EtmtaAWpBRco32TmvRbwWIjJ/ayiChvT8NyABR0aHtllXe22FEBag1tbW1HR21KrcnQFCYO02dK+8o8jUQRNSyFE8oBPci406tMREQxf4ZQfYdM/8zjewwc546j4Wk5KWpSiDhYs3sjeUwIsLM4gjI7Hljmj2Qs603q3e9DQqp4n5VFfkhyCR76s1TocQlVJkigYOTgkgzeiMLoFL2wwRl0JD92WPZ0JTiaW8KGA699chBsHCHPOrlwJYy+t4UuJT9dZSy4UZ+5GhqI/PhVkHCR8MSCqADl7rBWO2GVA762PyM9PrZoN+FmF6dYi7AEO5c/GBv7z/e4CB59vYO8uhaepM8/hwHwy75icVSlfLJF/tdwuhcPR4/xCNFQ5S8Ov74VXjAdnp/9JBK9P7TNnjOln/yiN+2mOhNm6JjtvkdOZmvp/Q/X6O7ru7CNzIAAAAASUVORK5CYII=",text:"复制链接",onClick:function(){return e=p.url,t=e.toString(),(n=document.querySelector("#copy-input"))||((n=document.createElement("input")).id="copy-input",n.readOnly=!0,n.style.position="fixed",n.style.left="-1000px",n.style.zIndex="-1000",document.body.appendChild(n)),n.value=t,function(e,t,n){if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",t),i.moveEnd("character",n-t),i.select()}else e.setSelectionRange(t,n),e.focus()}(n,0,t.length),console.log(document.execCommand("copy"),"execCommand"),document.execCommand("copy")&&(document.execCommand("copy"),u("复制成功")),void n.blur();var e,t,n}},null)]}}),l("div",{class:[ce.btn,"van-hairline--top"],onClick:function(){return n("close")}},[s("取消")])])])}}});e("default",n({name:"creation-detail",setup:function(){var e,n,c=m(),L=c.isApp,T=c.isTablet,z=c.isTeacher,_=p(),ne=h(),ie=i(!1),ae=i(),re=i(),oe=r({id:_.query.id,deleteStatus:!1,shareStatus:!1,playType:"",musicDetail:{},isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},_plrl:null,heightV:0,heightB:0}),le=r({duration:0,currentTime:0,mediaTimeShow:!1,playIngShow:!0}),ce=r({staffSrc:"",isShow:!1,height:"initial",speedRate:1,musicRenderType:"staff",partIndex:0}),de=i(!1),me=i(),pe=(e=!0,n=function t(){requestAnimationFrame((function(){var n,i;null===(n=me.value)||void 0===n||null===(i=n.contentWindow)||void 0===i||i.postMessage({api:"api_playProgress",content:{currentTime:oe._plrl.currentTime*ce.speedRate}},"*"),e||t()}))},{playStaff:function(){var t,i;ce.isShow&&(e=!1,null===(t=me.value)||void 0===t||null===(i=t.contentWindow)||void 0===i||i.postMessage({api:"api_play"},"*"),n())},pauseStaff:function(){var t,n;ce.isShow&&(e=!0,null===(t=me.value)||void 0===t||null===(n=t.contentWindow)||void 0===n||n.postMessage({api:"api_paused"},"*"))},updateProgressStaff:function(e){var t,n;ce.isShow&&(null===(t=me.value)||void 0===t||null===(n=t.contentWindow)||void 0===n||n.postMessage({api:"api_updateProgress",content:{currentTime:e*ce.speedRate}},"*"))}}),he=pe.playStaff,fe=pe.pauseStaff,Ae=pe.updateProgressStaff,ge=function(){var e=a(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!oe.isClick){e.next=3;break}return e.abrupt("return");case 3:return oe.isClick=!0,e.next=6,ee(t({userMusicId:oe.id},oe.params));case 6:if(n=e.sent,oe.listState.loading=!1,i=n.data||{},!(oe.list.length>0&&1===i.current)){e.next=11;break}return e.abrupt("return");case 11:oe.list=oe.list.concat(i.rows||[]),oe.listState.finished=i.current>=i.pages,oe.params.page=i.current+1,oe.listState.dataShow=oe.list.length>0,oe.isClick=!1,e.next=23;break;case 18:e.prev=18,e.t0=e.catch(0),oe.listState.dataShow=!1,oe.listState.finished=!0,oe.isClick=!1;case 23:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(){return e.apply(this,arguments)}}(),ve=function(){var e=a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,te({id:oe.id});case 3:setTimeout((function(){oe.deleteStatus=!1,u("删除成功")}),100),setTimeout((function(){L?v({api:"goBack"}):ne.back()}),1200),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),be=function(){var e=a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d({api:"saveFile",content:{url:oe.musicDetail.videoUrl}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ke=function(){console.log("滚动",123);var e=window.scrollY||document.documentElement.scrollTop;e>0&&!1===ie.value&&(ie.value=!0,ye(!1)),e<=0&&(ie.value=!1,ye(!0))};function ye(e){v({api:"setStatusBarTextColor",content:{statusBarTextColor:e}})}var we=f();function xe(){var e="Audio"===oe.playType?"#audioMediaSrc":"#videoMediaSrc";oe._plrl=new se(e,{controls:["play","progress","current-time","duration"],fullscreen:{enabled:!1,fallback:!1}});var t=oe._plrl;if("Audio"===oe.playType){var n=function(e,t){var n=t.getContext("2d"),i=t.getBoundingClientRect(),a=i.width,r=i.height;a=Math.ceil(a),r=Math.ceil(r),t.width=a,t.height=r;var o=function(e,t,i){var a=i.lineGap,r=i.canvWidth,o=i.canvHeight,s=i.canvFillColor,c=i.lineColor;if(t){var u=r,d=o;l(t,u,d,s);var m=e.length,p=(u/2-a*m)/m;p<1&&(p=1);for(var h=u/2,f=d/2,A=h,g=0;g<m;g++){var v=e[g]/255*f;n.fillStyle=c,0===g&&(A-=a/2),n.fillRect(A-p,f-v,p,v),n.fillRect(A-p,f,p,v),A-=p+a}for(var b=h,k=0;k<m;k++){var y=e[k]/255*f;n.fillStyle=c,0===k&&(b+=a/2),n.fillRect(b,f-y,p,y),n.fillRect(b,f,p,y),b+=p+a}}},l=function(e,t,n,i){e.clearRect(0,0,t,n),e.fillStyle=i,e.fillRect(0,0,t,n)},s=function(){var e=setInterval((function(){c?clearInterval(e):o(M(48),n,{lineGap:2,canvWidth:a,canvHeight:r,canvFillColor:"transparent",lineColor:"rgba(255, 255, 255, 0.7)"})}),300)},c=!0;return{playVisualDraw:function(){c=!1,s()},pauseVisualDraw:function(){c=!0,requestAnimationFrame((function(){n.clearRect(0,0,a,r)}))}}}(document.querySelector("#audioMediaSrc"),document.querySelector("#audioVisualizer")),i=n.pauseVisualDraw,a=n.playVisualDraw;t.on("play",(function(){a()})),t.on("pause",(function(){i()}))}t.on("timeupdate",(function(){le.currentTime=t.currentTime})),t.on("play",(function(){le.playIngShow=!1,he()})),t.on("pause",(function(){le.playIngShow=!0,fe()})),t.on("ended",(function(){t.currentTime=0,t.playing||setTimeout((function(){Ae(t.currentTime)}),100)}));var r=function(){de.value||(le.duration=t.duration,le.mediaTimeShow=!0)},o=function(){le.mediaTimeShow=!1,t.playing||Ae(t.currentTime)},l=document.querySelector("#playMediaSection .plyr__controls .plyr__progress__container");l.addEventListener("mousedown",r),l.addEventListener("touchstart",r),l.addEventListener("mouseup",o),l.addEventListener("touchend",o)}function Se(e){var t;null!=e&&null!==(t=e.target)&&void 0!==t&&t.matches("button.plyr__control")||(oe._plrl.playing?oe._plrl.pause():oe._plrl.play())}function Be(e){e.stopPropagation(),v({api:"setRequestedOrientation",content:{orientation:1}}),de.value=!1}function Ce(e){e.stopPropagation(),de.value||(v({api:"setRequestedOrientation",content:{orientation:0}}),de.value=!0)}return A(we,(function(e){var t;"hidden"===e&&(null===(t=oe._plrl)||void 0===t||t.pause())})),o(a(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return document.addEventListener("scroll",ke),ye(!0),e.prev=2,e.next=5,$(oe.id);case 5:if(999!==(t=e.sent).code){e.next=9;break}return g.alert({message:t.msg,theme:"round-button",confirmButtonColor:"#2DC7AA"}).then((function(){L?v({api:"goBack"}):ne.back()})),e.abrupt("return");case 9:oe.musicDetail=t.data||{};try{(n=JSON.parse(t.data.jsonConfig)).speedRate&&(ce.speedRate=n.speedRate),n.musicRenderType&&(ce.musicRenderType=n.musicRenderType),n["part-index"]&&(ce.partIndex=n["part-index"])}catch(r){}i=void 0,a=void 0,i="TEACHER"===I.platformType||z?"teacher":"student",a="/klx-music-score/#/simple-detail?id=".concat(oe.musicDetail.musicSheetId,"&musicRenderType=").concat(ce.musicRenderType,"&part-index=").concat(ce.partIndex,"&userMusicId=").concat(oe.id,"&systemType=").concat(i),ce.staffSrc=a,window.addEventListener("message",(function(e){var t=e.data,n=t.api,i=t.height;"api_musicPage"===n&&(ce.isShow=!0,ce.height=i+"px")})),ge(),-1!==t.data.videoUrl.lastIndexOf("mp4")?oe.playType="Video":oe.playType="Audio",Q.exports.nextTick((function(){xe()})),e.next=19;break;case 17:e.prev=17,e.t0=e.catch(2);case 19:case"end":return e.stop()}var i,a}),e,null,[[2,17]])})))),b((function(){var e;document.removeEventListener("scroll",ke),null===(e=oe._plrl)||void 0===e||e.destroy()})),function(){var e,t,n,i;return l("div",{style:{"--barheight":oe.heightV+"px"},class:[E.creation,T&&E.creationTablet,ie.value&&E.isScreenScroll]},[l("div",{class:E.creationBg},null),l(H,{position:"top",onGetHeight:function(e){console.log(e,"height",e),oe.heightV=e}},{default:function(){var e;return[l(N,{color:ie.value?"#333333":"#ffffff",background:ie.value?"rgb(255,255,255":"transparent",title:null===(e=oe.musicDetail)||void 0===e?void 0:e.musicSheetName,border:!1,isBack:"ANALYSIS"!=_.query.platformType,onLeftClick:function(){ye(!1)}},null)]}}),l("div",{class:E.singer},[s("演奏:"),null===(e=oe.musicDetail)||void 0===e?void 0:e.username]),l(J,{zIndex:1e3,offsetTop:oe.heightV-1+"px"},{default:function(){var e,t,n,i,a,r;return[l("div",{class:[E.playSection,le.mediaTimeShow&&E.mediaTimeShow,de.value&&E.isLandscapeScreen,"Audio"===oe.playType&&E.isLandscapeScreen2],id:"playMediaSection",onClick:Se},[de.value&&l("div",{class:E.backBox},[l("img",{class:[E.backImg,"Video"===oe.playType&&E.back1Img],src:"Video"===oe.playType?P:O,onClick:Be},null),l("div",{class:[E.musicDetail,"Audio"===oe.playType&&E.adMusicDetail]},[l("div",{class:E.musicSheetName},[l(Z,{text:null===(e=oe.musicDetail)||void 0===e?void 0:e.musicSheetName,background:"none"},null)]),l("div",{class:E.username},[s("演奏:"),null===(t=oe.musicDetail)||void 0===t?void 0:t.username])])]),"Audio"===oe.playType&&l("div",{class:E.audioBox},[l("canvas",{class:E.audioVisualizer,id:"audioVisualizer"},null),l("audio",{crossorigin:"anonymous",id:"audioMediaSrc",src:null===(n=oe.musicDetail)||void 0===n?void 0:n.videoUrl,controls:"false",preload:"metadata",playsinline:!0,"webkit-playsinline":!0},null),l("img",{src:V,class:E.tyBg},null),l("div",{class:E.audioBoxBg},[l("div",{class:[E.audioPan,le.playIngShow&&E.imgRotate]},[l("img",{class:E.audioImg,src:oe.musicDetail.img||"./assets/music_bg.7bc33289.png"},null)]),l("i",{class:E.audioPoint},null),l("i",{class:[E.audioZhen,le.playIngShow&&E.active]},null)])]),"Video"===oe.playType&&l("video",{id:"videoMediaSrc",class:E.videoBox,src:null===(i=oe.musicDetail)||void 0===i?void 0:i.videoUrl,"data-poster":(null===(a=oe.musicDetail)||void 0===a?void 0:a.videoImg)||D,poster:(null===(r=oe.musicDetail)||void 0===r?void 0:r.videoImg)||D,preload:"metadata",playsinline:!0,"webkit-playsinline":!0,"x5-playsinline":!0},null),l("div",{class:[E.playLarge,!le.mediaTimeShow&&le.playIngShow&&E.playIngShow]},null),l("div",{class:E.mediaTimeCon},[l("div",{class:E.mediaTime},[l("div",null,[k(le.currentTime)]),l("div",{class:E.note},[s("/")]),l("div",{class:E.duration},[k(le.duration)])])]),l("div",{class:E.landscapeScreen,onClick:Ce},null),ce.staffSrc&&l("div",{class:[E.staffBoxCon,ce.isShow&&E.staffBoxShow]},[l("div",{class:[E.staffBox,"Video"===oe.playType&&E.staffBoxBg],style:{"--staffBoxHeight":ce.height}},[l("div",{class:E.mask},null),l("iframe",{ref:me,class:E.staff,frameborder:"0",src:ce.staffSrc},null)])])])]}}),l("div",{class:E.musicSection},[l("div",{class:E.avatarInfoBox},[l("div",{class:E.avatar},[l("div",{class:E.avatarImg},[l("img",{class:[E.userLogo,"VIP"===oe.musicDetail.vipType?E.vipLogo:"PERMANENT_SVIP"===oe.musicDetail.vipType||"SVIP"===oe.musicDetail.vipType?E.svipLogo:""],src:oe.musicDetail.avatar},null),("VIP"===oe.musicDetail.vipType||"PERMANENT_SVIP"===oe.musicDetail.vipType||"SVIP"===oe.musicDetail.vipType)&&l("img",{class:E.vipIcon,src:"VIP"===oe.musicDetail.vipType?U:R},null)]),l("div",{class:E.infoCon},[l("div",{class:E.info},[l("span",{class:E.userName},[null===(t=oe.musicDetail)||void 0===t?void 0:t.username]),oe.musicDetail.vipFlag&&l("img",{src:F,class:E.iconMember},null)]),l("div",{class:E.sub},[oe.musicDetail.subjectName," ",y(oe.musicDetail.currentGradeNum-1)])])]),l("div",{class:E.linkes},[l("img",{src:G,class:E.iconZan},null),l("span",null,[oe.musicDetail.likeNum])])]),l(j,{class:E.textEllipsis,text:oe.musicDetail.desc||""},null)]),l("div",{class:E.likeSection},[l("div",{class:E.likeTitle},[s("点赞记录")]),oe.listState.dataShow?l(K,{finished:oe.listState.finished,finishedText:" ",onLoad:ge,immediateCheck:!1},(i=n=oe.list.map((function(e,t){return l(Y,{class:[E.likeItem,t===oe.list.length-1&&E.likeItemLast],border:!1},{icon:function(){return l(q,{src:e.userAvatar,class:E.userLogo},null)},title:function(){return l("div",{class:E.userInfo},[l("p",{class:E.name},[e.userName]),l("p",{class:E.sub},[e.subjectName," ",y(e.currentGradeNum-1)])])},value:function(){return l("div",{class:E.time},[w(e.createTime).format("YYYY-MM-DD HH:mm")])}})})),"function"==typeof i||"[object Object]"===Object.prototype.toString.call(i)&&!C(i)?n:{default:function(){return[n]}})):l(x,{class:E.mEmpty,tips:"暂无内容",btnStatus:!1},null)]),!ie.value&&l(H,{ref:re,position:"bottom",offsetBottom:oe.heightB-1+"px"},{default:function(){return[l("div",{class:E.upward},[l("img",{src:W},null)])]}}),l(H,{ref:ae,position:"bottom",onGetHeight:function(e){console.log(e,"height",e),oe.heightB=e}},{default:function(){return[l("div",{class:E.bottomSection},[l("div",{class:E.bottomShare},[l("p",{onClick:be},[l("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAe1BMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////NgkbwAAAAKHRSTlMAsojdB10t8oJn1dHBbGFVQh/64cu0dRcE6LerlnyujEw2KOukoQ70XD91zgAAAT9JREFUOMudktlygzAMAO2EcgVoIOQg9939/y9sbSIMGSftdF+s0ayFLKEMq1j72X+qjpxXVEslbHiJKzWDsfYQwUGcJVAoD2vIJD4CoU+KIVr1Yp8jt11V4TNKS18fF9OfMIFd/0XbNioHLx3DqD+b+vEBoPRLC6gCGx3govzSFDjZKIO19HxupeLR/R3I7XYjiKXn5mykBOk+hZs5Q+BoM1ugaSAFmNrUDVJzFkC762BOR+L+j3t7f6aUWM6xnB41a9ioJyvpEhUs5HDWwJESUlCsrH9HmsmBtTZcQzuRpL1S7G1yYp+1p2OsHCGOQmU4wv7/5siVhkYbKpmyTH9msnPgw0haVlgroZSlBUNpAWihBkqPdGbIRA0laWPAziuFV91jFDxLXv4hfY3fINJbrBTzK+HP1kfviafqT3wDyPlKoAL8QokAAAAASUVORK5CYII="},null),l("span",null,[s("下载")])]),l("p",{onClick:function(){return oe.shareStatus=!0}},[l("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAOVBMVEUAAAD///////////////////////////////////////////////////////////////////////8KOjVvAAAAEnRSTlMAshPSr7xoko0tPATK9apHJgwE7Sg/AAAAqUlEQVQ4y93USw6EIBAEUFBAwH/f/7DDQLA2XcNmVtaGUL5goqHNP5Oisy3LVIvQ9+iCIMu3yH2HLskA2VLFsnr9df5BrhijZpofZOtCDRA1sweiZrJA1BiOYDiC4QiGI5hfCKZ9aqegdYOpfz8o6GqmJ2ejn7RVgwBBXathiGeM7nuMzn0/h+gQOQaoPX09wuXU4kUcrrmeYiRiYPAkjB6agCFG4mI95wP9HBUz+mq/7gAAAABJRU5ErkJggg=="},null),l("span",null,[s("分享")])]),l("p",{onClick:function(){return oe.deleteStatus=!0}},[l("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAMAAACf4xmcAAAAb1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8v0wLRAAAAJHRSTlMA3YiyCF3k0fKSTTn8sKcf9OnYvJ56amJWIhHOyMW/u5WRKRTOEVuXAAAAwElEQVQ4y+2UyQ6CMBQAi2BBEHHfd+f/v9FnSYQaH3IwkYNzoIc3dJKmqfG4jsKSfGV0ooAnqa4tqIhV65aAdc09oGYvz1ZkwUb12XYgf5/iB0MY2pIECGLhINNRZsyAz9i2mosGUpPA1NZ5NCcwdlFHDwLj4w86oRWpO9Qsa9SKMUdZlrBs0vqAbJdD3kILIfxrP9NSSGSZw1zXhPNuLd/NbLbp3u39kjbpvyN80TQ8bYFOXGnFFI1k7b26GqbkDsbrOOROWdxyAAAAAElFTkSuQmCC"},null),l("span",null,[s("删除")])])]),l("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAA8CAYAAADha7EVAAAAAXNSR0IArs4c6QAADapJREFUeF7tXQl0lNUV/t7MZCbJZCErSUjYScjKkgSI7IogF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/G8oZb39YLXt5ISzWqNZCc4WyW+K3FCx3/jBycfH+GdGvX5Z+1eQnCGu0/eCO+qEYscAXyG/LeIMq6VXhxILALbc9uEZV2fZLQBaB6M3RrjJ9DwD6NZvyzVUcpEqB4wc2M6Uyjetb310Z6I9AsBWl82RTeFoMN3LFXweOOh28GuHMbpDpdz2RnPAAIZcZmaboVV+Ss8r9BRBPQpAW6LotJ3e2DQBQCoDp5PfceCIZAx+nDN/Kd/I1VPC+f/2w/SM8TrOUQ+GiwCKOFgxwA9oVD57D6bNaXvPcA8R91863FyJWruVwQAAAABJRU5ErkJggg==",class:E.btnEdit,onClick:function(){ne.push({path:"/creation-edit",query:{id:oe.id}})}},null)])]}}),l(S,{show:oe.deleteStatus,"onUpdate:show":function(e){return oe.deleteStatus=e},round:!0,class:E.popupContainer},{default:function(){return[l("p",{class:E.popupTit},[s("温馨提示")]),l("p",{class:E.popupContent},[s("确认删除作品吗?")]),l("div",{class:E.popupBtnGroup},[l(B,{round:!0,onClick:function(){return oe.deleteStatus=!1}},{default:function(){return[s("取消")]}}),l(B,{round:!0,type:"primary",onClick:ve},{default:function(){return[s("确认")]}})])]}}),l(S,{position:"bottom",show:oe.shareStatus,"onUpdate:show":function(e){return oe.shareStatus=e},style:{background:"transparent"}},{default:function(){return[l(ue,{playType:oe.playType,musicDetail:oe.musicDetail,onClose:function(){return oe.shareStatus=!1}},null)]}}),!ce.isShow&&l(X,null,null)])}}}))}}}))}();