index-legacy.a9d3f425.js 33 KB

1
  1. !function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){t(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function r(e,n,t,r,i,a,o){try{var u=e[a](o),l=u.value}catch(c){return void t(c)}u.done?n(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var n=this,t=arguments;return new Promise((function(i,a){var o=e.apply(n,t);function u(e){r(o,i,a,u,l,"next",e)}function l(e){r(o,i,a,u,l,"throw",e)}u(void 0)}))}}var a=document.createElement("style");a.innerHTML='._base_96ukw_1>div{background:url(./header-bg.png) no-repeat top center}._detail_96ukw_4{overflow:hidden;--van-nav-bar-background-color: transparent;--van-nav-bar-icon-color: #fff;--van-nav-bar-text-color: #fff;--van-nav-bar-title-text-color: #fff;min-width:100vmin;--plyr-color-main: var(--van-primary);--plyr-control-icon-size: .32rem}._detail_96ukw_4 .plyr__controls .plyr__controls__item:first-child{background-color:var(--van-primary);color:#fff;border-radius:50%}._base_96ukw_1 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._shareBtn_96ukw_22{display:flex;align-items:flex-start;color:#fff;font-size:.37333rem;line-height:.53333rem!important}._shareBtn_96ukw_22 .van-image{width:.48rem;height:.48rem;margin-right:.16rem}._bgImg_96ukw_34{position:absolute;left:0;top:0;width:100%;height:7.06667rem;-o-object-fit:cover;object-fit:cover;filter:blur(.26667rem)}._bgContent_96ukw_43{position:absolute;top:0;height:7.06667rem;width:100%;background-color:rgba(0,0,0,.5);backdrop-filter:blur(.53333rem);-webkit-backdrop-filter:blur(.53333rem)}._musicContent_96ukw_52{position:relative;width:100%;height:13.33333rem;overflow:hidden}._musicContent_96ukw_52:after{content:" ";position:absolute;bottom:0;left:0;right:0;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#ffffff 100%);height:7.65333rem}._musicContent_96ukw_52 ._musicTitle_96ukw_67{text-align:center;font-size:.42667rem}._musicContent_96ukw_52 ._musicImg_96ukw_71{width:100%}._musicContent_96ukw_52 ._finch_96ukw_74{width:4rem;margin:2.13333rem auto 0}._musicContent_96ukw_52 ._finchLoad_96ukw_78{text-align:center;color:#333;font-size:.4rem;margin-top:.10667rem}._musicContent_96ukw_52 iframe{border:none;width:100%;height:13.33333rem;overflow:hidden}._musicContent_96ukw_52 iframe body ::-webkit-scrollbar-thumb{background-color:#efeff0;border:.02667rem solid transparent;background-clip:padding-box;border-radius:.13333rem}._collectCell_96ukw_96{margin:.26667rem .42667rem 0;background:#ffffff;border-radius:.26667rem;box-shadow:0 0 .16rem rgba(229,229,229,.7);overflow:hidden}._videoOperation_96ukw_103{position:absolute;left:0;right:0;bottom:.13333rem;z-index:1}._audition_96ukw_110{display:flex;align-items:center;margin:.26667rem .42667rem 0;background:linear-gradient(180deg,#fff0d9 0%,#ffdfb8 100%);border-radius:.42667rem;padding:.18667rem .32rem;font-size:.32rem;font-weight:600;color:#ff731d;height:.48rem}._audition_96ukw_110 img{margin-top:-.05333rem;width:.56rem;height:.4rem;margin-right:.29333rem}._collect_96ukw_96{display:flex;align-items:center;justify-content:space-between;padding:.29333rem;font-size:.37333rem;color:#666}._collect_96ukw_96 ._userInfo_96ukw_136{display:flex;align-items:center;padding:.08rem .16rem;background:#d5f3ee;border-radius:.42667rem}._collect_96ukw_96 ._userInfo_96ukw_136 img{width:.69333rem;height:.69333rem;border-radius:50%}._collect_96ukw_96 ._userInfo_96ukw_136 span{padding-left:.21333rem;max-width:1.6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2dc7aa}._collect_96ukw_96 ._collectSection_96ukw_156{display:flex;align-items:center}._collect_96ukw_96 ._collectSection_96ukw_156 img{margin-top:-.05333rem;margin-left:.13333rem;width:.48rem;height:.48rem}._collect_96ukw_96 ._collectSection_96ukw_156 .van-icon{font-size:.53333rem;margin-top:-.05333rem;margin-left:.13333rem;color:var(--van-primary)}._collect_96ukw_96 ._collectSection_96ukw_156:first-child{margin-right:.37333rem}._lookAlbum_96ukw_175{padding:.45333rem .53333rem;margin-bottom:.4rem;font-size:.37333rem;color:#333;line-height:.53333rem;display:flex;align-items:center;justify-content:space-between}._lookAlbum_96ukw_175>div{display:flex;align-items:center;line-height:1}._lookAlbum_96ukw_175>div img{width:.53333rem;height:.53333rem;margin-right:.26667rem}._bg_96ukw_34{position:relative;height:100%;padding:.42667rem;z-index:11}._musicContainer_96ukw_201{position:relative;z-index:12;border-radius:.48rem .48rem 0 0;background-color:#fff;overflow-y:auto}._shareMate_96ukw_208{position:relative;margin-top:1.33333rem;display:flex;flex:1;align-items:center;padding:.29333rem .32rem;background:#ffffff;border-radius:.26667rem}._shareMate_96ukw_208 ._icon_96ukw_218{width:.96rem;height:.96rem;border-radius:.26667rem}._shareMate_96ukw_208 ._info_96ukw_223{margin-left:.37333rem;flex:1;margin-right:.37333rem;word-break:break-all}._shareMate_96ukw_208 ._info_96ukw_223>h4{color:var(--music-list-item-title-color);font-size:.37333rem;font-weight:600;width:5.33333rem}._shareMate_96ukw_208 ._info_96ukw_223>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._shareMate_96ukw_208 ._tagDiscount_96ukw_239{position:absolute;top:-.69333rem;left:.4rem;padding:.05333rem .26667rem .02667rem;height:.61333rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.21333rem .21333rem 0 0;font-size:.37333rem;font-weight:600;color:#fff;line-height:.53333rem}._shareVip_96ukw_252{position:relative;margin-top:.93333rem;display:flex;flex:1;align-items:center;padding:.18667rem;background:#ffffff;border-radius:.26667rem}._shareVip_96ukw_252 ._icon_96ukw_218{width:1.92rem;height:1.92rem;border-radius:.26667rem}._shareVip_96ukw_252 ._info_96ukw_223{margin-left:.16rem;flex:1;word-break:break-all}._shareVip_96ukw_252 ._info_96ukw_223>h4{color:var(--music-list-item-title-color);font-size:.42667rem;font-weight:600}._shareVip_96ukw_252 ._info_96ukw_223>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._tagDiscount_96ukw_239{position:absolute;top:-.61333rem;left:.4rem;padding:0 .26667rem;height:.61333rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.21333rem .21333rem 0 0;font-size:.37333rem;font-weight:600;color:#fff;line-height:.64rem}._buttonDiscount_96ukw_294{position:absolute;top:-.48rem;right:.4rem;padding:0 .13333rem;height:.48rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.21333rem .21333rem 0 0;font-size:.32rem;font-weight:600;color:#fff;line-height:.53333rem}._pImg_96ukw_307{width:1.22667rem;height:1.22667rem;border-radius:.26667rem;overflow:hidden;flex-shrink:0}._musicInfo_96ukw_314{padding-top:.61333rem!important;padding-bottom:.61333rem!important;margin-bottom:.26667rem}._musicInfo_96ukw_314 ._coomposer_96ukw_319{padding-top:.05333rem;padding-left:.16rem;max-width:3.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._musicInfo_96ukw_314 ._tag_96ukw_239{flex-shrink:0;padding:.05333rem .10667rem 0;border-radius:.10667rem}._musicInfo_96ukw_314 ._tag_96ukw_239+._tag_96ukw_239{margin-left:.13333rem}._musicInfo_96ukw_314 ._info_96ukw_223{margin-left:.37333rem;flex:1;margin-right:.37333rem;word-break:break-all}._musicInfo_96ukw_314 ._info_96ukw_223>h4{font-size:.42667rem;font-weight:700;color:#1a1a1a;width:4.66667rem;padding-bottom:.08rem}._musicInfo_96ukw_314 ._info_96ukw_223>p{font-size:.32rem;color:#999;line-height:.45333rem}._musicInfo_96ukw_314 ._download_96ukw_353{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:.32rem}._musicInfo_96ukw_314 ._download_96ukw_353 img{height:.64rem;width:.64rem}._musicInfo_96ukw_314 ._exquisiteFlag_96ukw_364{width:.37333rem;margin-left:.13333rem;flex-shrink:0}._musicInfo_96ukw_314 ._songAlbum_96ukw_369{width:.4rem;height:.4rem;margin-left:.13333rem;flex-shrink:0}._musicInfo_96ukw_314 .van-cell__value{display:flex;justify-content:space-around}._colSticky_96ukw_379{display:flex;align-items:center;justify-content:space-between}._colSticky_96ukw_379 ._priceSection_96ukw_384{font-size:.37333rem;font-weight:400;color:#999}._colSticky_96ukw_379 ._priceSection_96ukw_384 ._price_96ukw_384{font-size:.58667rem;font-weight:700;color:#ff4e19}._colSticky_96ukw_379 ._priceSection_96ukw_384 ._price_96ukw_384 i{font-style:normal;font-size:.42667rem}._buyBtn_96ukw_398{--van-button-default-height: 1.12rem;flex:1;display:flex;align-items:center;justify-content:flex-end}._buyBtn_96ukw_398 .van-button{padding:0 .58667rem;font-weight:600}._buyBtn_96ukw_398 .van-button+.van-button{margin-left:.32rem}._buyBtn_96ukw_398 ._primry_96ukw_412{box-shadow:0 .05333rem .18667rem rgba(45,199,170,.25)}._buyBtn_96ukw_398 ._member_96ukw_415{box-shadow:0 .05333rem .18667rem rgba(187,156,83,.25)}._functionSection_96ukw_418{display:flex}._empty_96ukw_421{margin:0 auto;font-size:.37333rem;color:#999;line-height:.53333rem;text-align:center;padding-top:1.6rem}._empty_96ukw_421 ._emptyImg_96ukw_429{width:4.58667rem}._staffContainer_96ukw_432{padding:.4rem .4rem .64rem}._staffContainer_96ukw_432 ._staffTitle_96ukw_435{padding-bottom:.66667rem;font-size:.42667rem;color:#1a1a1a;line-height:.58667rem}._staffContainer_96ukw_432 ._staffImg_96ukw_441{width:.85333rem;height:.53333rem}._staffContainer_96ukw_432 ._name_96ukw_445{padding-left:.45333rem;font-size:.34667rem;font-weight:500;color:#333}._staffContainer_96ukw_432 ._boxStyle_96ukw_451{background:transparent!important;width:.4rem;height:.4rem;border:transparent!important}._staffContainer_96ukw_432 ._active_96ukw_457{background:#f7f8f9;border-radius:.21333rem}._staffContainer_96ukw_432 ._active_96ukw_457 ._name_96ukw_445{color:#2dc7aa}._staffContainer_96ukw_432 .van-cell{padding:.24rem .42667rem;margin-bottom:.16rem}._staffContainer_96ukw_432 .van-cell:hover,._staffContainer_96ukw_432 .van-cell:active,._staffContainer_96ukw_432 .van-cell.active{background:#f7f8f9;border-radius:.21333rem}._staffContainer_96ukw_432 .van-cell:hover .name,._staffContainer_96ukw_432 .van-cell:active .name,._staffContainer_96ukw_432 .van-cell.active .name{color:#2dc7aa}._staffContainer_96ukw_432 .van-cell:last-child{margin-bottom:0}._staffContainer_96ukw_432 .van-cell__value{display:flex;justify-content:flex-end}._staffContainer_96ukw_432 .van-checkbox{overflow:inherit;height:.48rem;display:flex;align-items:center;justify-content:flex-end}._staffContainer_96ukw_432 .van-checkbox__icon{height:.4rem;line-height:.4rem;display:inline-block;vertical-align:middle}._staffContainer_96ukw_432 .van-checkbox__label{line-height:.4rem}\n',document.head.appendChild(a),System.register(["./icon_uploader-legacy.db3a8c90.js","./icon-xin-legacy.18ed4a9d.js","./icon_album-legacy.d489a774.js","./icon_album_active-legacy.d2829e23.js","./icon_exquisite-legacy.178b582f.js","./icon_music_active-legacy.cc68af68.js","./index-legacy.9fbf5cc3.js","./index-legacy.a25aafdb.js","./index-legacy.bcebad5e.js","./index-legacy.2574bd80.js","./index-legacy.4f3e9447.js","./index-legacy.0e048967.js","./index-legacy.4b80dca1.js","./index-legacy.6de9b88c.js","./index-legacy.ec44c18a.js","./index-legacy.faf0a245.js","./vue3-lottie.es-legacy.20a67488.js","./music-legacy.86116831.js","./index-legacy.b0f2eb71.js","./orderStatus-legacy.4eb8eebc.js","./icon_share-legacy.69f1973c.js","./download-legacy.8ebdf741.js","./index-legacy.e3aba256.js","./icon_teacher-legacy.42ba77b1.js","./icon_checkbox_default-legacy.e33240bc.js","./plyr-legacy.180f4c53.js","./instruments-legacy.98db315a.js","./index-legacy.342b9a15.js","./index-legacy.8e975b15.js","./use-height-legacy.af126ed3.js","./index-legacy.3f9a9bef.js","./code-down-load-legacy.6b209968.js","./logo-legacy.cf4b3bd2.js","./browser-legacy.869507ab.js","./html2canvas.esm-legacy.19f9c2b7.js"],(function(e){"use strict";var t,r,a,o,u,l,c,s,d,m,f,_,p,v,g,w,h,k,b,y,x,C,I,S,j,T,O,R,N,z,E,D,P,A,B,q,L,U,M,F,V,H,X,W,G,J,Q,Y,Z,K,$,ee,ne,te,re,ie,ae,oe,ue,le,ce,se,de,me,fe,_e,pe,ve;return{setters:[function(e){t=e._,r=e.a,a=e.b,o=e.c,u=e.d,l=e.e,c=e.f},function(e){s=e._},function(e){d=e.i,m=e._},function(e){f=e._},function(e){_=e._},function(e){p=e._},function(e){v=e.d,g=e.S,w=e.Q,h=e.V,k=e.U,b=e.a4,y=e.W,x=e.Z,C=e.bC,I=e.X,S=e.j,j=e.B,T=e.F,O=e.T,R=e.O,N=e.f,z=e.g,E=e.E,D=e.by,P=e.aT,A=e.Y,B=e.w,q=e.D},function(e){L=e.C},function(e){U=e.C},function(e){M=e.C},function(e){F=e.I},function(e){V=e.R,H=e.a},function(e){X=e.S},function(e){W=e.T},function(){},function(){},function(e){G=e.V},function(e){J=e.g,Q=e.m},function(e){Y=e.C},function(e){Z=e.o},function(e){K=e.i},function(e){$=e.i,ee=e.a,ne=e.A,te=e.e,re=e.b,ie=e.c,ae=e.d,oe=e.D,ue=e.s,le=e.f,ce=e.g},function(e){se=e.C},function(e){de=e.i},function(e){me=e.a,fe=e.i},function(e){_e=e.P},function(e){pe=e.g},function(e){ve=e.P},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var ge={base:"_base_96ukw_1",detail:"_detail_96ukw_4",shareBtn:"_shareBtn_96ukw_22",bgImg:"_bgImg_96ukw_34",bgContent:"_bgContent_96ukw_43",musicContent:"_musicContent_96ukw_52",musicTitle:"_musicTitle_96ukw_67",musicImg:"_musicImg_96ukw_71",finch:"_finch_96ukw_74",finchLoad:"_finchLoad_96ukw_78",collectCell:"_collectCell_96ukw_96",videoOperation:"_videoOperation_96ukw_103",audition:"_audition_96ukw_110",collect:"_collect_96ukw_96",userInfo:"_userInfo_96ukw_136",collectSection:"_collectSection_96ukw_156",lookAlbum:"_lookAlbum_96ukw_175",bg:"_bg_96ukw_34",musicContainer:"_musicContainer_96ukw_201",shareMate:"_shareMate_96ukw_208",icon:"_icon_96ukw_218",info:"_info_96ukw_223",tagDiscount:"_tagDiscount_96ukw_239",shareVip:"_shareVip_96ukw_252",buttonDiscount:"_buttonDiscount_96ukw_294",pImg:"_pImg_96ukw_307",musicInfo:"_musicInfo_96ukw_314",coomposer:"_coomposer_96ukw_319",tag:"_tag_96ukw_239",download:"_download_96ukw_353",exquisiteFlag:"_exquisiteFlag_96ukw_364",songAlbum:"_songAlbum_96ukw_369",colSticky:"_colSticky_96ukw_379",priceSection:"_priceSection_96ukw_384",price:"_price_96ukw_384",buyBtn:"_buyBtn_96ukw_398",primry:"_primry_96ukw_412",member:"_member_96ukw_415",functionSection:"_functionSection_96ukw_418",empty:"_empty_96ukw_421",emptyImg:"_emptyImg_96ukw_429",staffContainer:"_staffContainer_96ukw_432",staffTitle:"_staffTitle_96ukw_435",staffImg:"_staffImg_96ukw_441",name:"_name_96ukw_445",boxStyle:"_boxStyle_96ukw_451",active:"_active_96ukw_457"},we=e("getAssetsHomeFile",(function(e){var n="../component/images/".concat(e);return{"../component/images/collection.png":t,"../component/images/collection_active.png":r,"../component/images/icon-xin.png":s,"../component/images/icon_ai.png":a,"../component/images/icon_album.png":m,"../component/images/icon_album_active.png":f,"../component/images/icon_author.png":o,"../component/images/icon_download.png":u,"../component/images/icon_exquisite.png":_,"../component/images/icon_music_active.png":p,"../component/images/icon_share.png":l,"../component/images/icon_uploader.png":c}[n].default}));e("default",v({name:"MusicDetail",setup:function(){localStorage.setItem("behaviorId",J());var e=g(),t=w(),r=h(!1),a=Number(t.query.activityId)||0,o=h(a),u=h(!1),l=h(null),c=h(null),s=h("0"),m=h(null),f=h(""),_=[],p=h([]),v=h([]),he=h([]);h("");var ke=h(!1),be=k({status:!1,radio:"staff"}),ye={FREE:{color:"#01B84F",text:"免费"},VIP:{color:"#CD863E",text:"会员"},CHARGE:{color:"#3591CE",text:"点播"}},xe=function(e){be.radio=e,be.status=!1};b((function(){return be.radio}),(function(e){_="first"==e?p.value:"fixed"==e?v.value:he.value}));var Ce=function(){var e=i(regeneratorRuntime.mark((function e(n){var i,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.value){e.next=2;break}return e.abrupt("return");case 2:return r.value=!0,u.value=!1,e.prev=4,e.next=7,B.get("/music/sheet/detail/".concat(t.query.id),{prefix:"TEACHER"===z.platformType?"/api-teacher":"/api-student"});case 7:a=e.sent,m.value=a.data,console.log(m.value.notation,"musicDetail"),o=a.data.background,f.value=o&&o.length>0?o[0].audioFileUrl:"",_=a.data.musicImg?a.data.musicImg.split(","):[],p.value=a.data.firstTone?a.data.firstTone.split(","):[],v.value=a.data.fixedTone?a.data.fixedTone.split(","):[],he.value=a.data.musicImg?a.data.musicImg.split(","):[],A((function(){Ve()})),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(4),u.value=!0;case 22:"CONCERT"!==(null===(i=m.value)||void 0===i?void 0:i.musicSheetType)&&(r.value=!1);case 23:case"end":return e.stop()}}),e,null,[[4,19]])})));return function(n){return e.apply(this,arguments)}}(),Ie=h(null),Se=h(null),je=h(0),Te=function(){var e=i(regeneratorRuntime.mark((function e(){var n,t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=["play-large","play","progress","captions","duration"],Ie.value=new _e(Se.value,{controls:t}),e.next=4,B.get("/api-student/sysConfig/queryByParamNameList",{params:{paramNames:"music_sheet_free_rate"}});case 4:r=e.sent,je.value=(null===(n=r.data[0])||void 0===n?void 0:n.paramValue)||0,Ie.value.on("timeupdate",(function(){var e=Ie.value,n=e.duration*je.value/100||0;e.currentTime>=n&&!Be.value.play&&e.stop()}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Oe=function(e){var n;console.log(e),"musicStaffRender"===(null===(n=e.data)||void 0===n?void 0:n.api)&&(r.value=e.data.loading)};y(i(regeneratorRuntime.mark((function e(){var n,t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce();case 2:n=x(l),t=n.height,r=x(c),s.value=t+r.height,f.value&&Te(),window.addEventListener("message",Oe);case 7:case"end":return e.stop()}}),e)})))),C((function(){window.removeEventListener("message",Oe)}));var Re=function(){var e=i(regeneratorRuntime.mark((function e(){var n,t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,B.post("/music/sheet/favorite/"+(null===(n=m.value)||void 0===n?void 0:n.id),{prefix:"TEACHER"===z.platformType?"/api-teacher":"/api-student"});case 3:m.value.favorite=null!==(t=m.value)&&void 0!==t&&t.favorite?0:1,m.value.favoriteCount=null!==(r=m.value)&&void 0!==r&&r.favorite?m.value.favoriteCount+1:m.value.favoriteCount-1<0?0:m.value.favoriteCount-1,setTimeout((function(){var e;O(null!==(e=m.value)&&void 0!==e&&e.favorite?"收藏成功":"取消收藏成功")}),100),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),Ne=function(){var e=i(regeneratorRuntime.mark((function e(){var n,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,B.post("/api-teacher/courseCourseware/submit",{data:{musicSheetId:m.value.id,clientType:"TEACHER",userId:null===(n=z.user.data)||void 0===n?void 0:n.userId}});case 3:t=e.sent,console.log(t),setTimeout((function(){m.value.coursewareId=t.data.id||"",O("添加成功"),m.value.coursewareStatus=1}),100),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),ze=function(){var e=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:q.confirm({title:"提示",message:"您是否确定移除课件",confirmButtonColor:"#269a93",cancelButtonText:"取消",confirmButtonText:"确定"}).then(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,B.post("/api-teacher/courseCourseware/remove/"+m.value.coursewareId,{data:{}});case 3:setTimeout((function(){O("移除成功"),m.value.coursewareStatus=0}),100),e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])}))));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ee=function(){var e=i(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m.value,Z.orderObject.orderType="MUSIC",Z.orderObject.orderName=r.musicSheetName,Z.orderObject.orderDesc=r.musicSheetName,Z.orderObject.actualPrice=r.musicPrice,Z.orderObject.recomUserId=t.query.recomUserId||0,Z.orderObject.activityId=t.query.activityId||0,Z.orderObject.orderNo="",Z.orderObject.orderList=[n({orderType:"MUSIC",goodsName:r.musicSheetName,actualPrice:r.musicPrice},r)],e.next=11,B.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"MUSIC",bizId:r.id}});case 11:a=e.sent,(o=a.data)?q.confirm({title:"提示",message:"您有一个未支付的订单,是否继续支付?",confirmButtonColor:"#269a93",cancelButtonText:"取消订单",confirmButtonText:"继续支付"}).then(i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Z.orderObject.orderNo=o.orderNo,Z.orderObject.actualPrice=o.actualPrice,Z.orderObject.discountPrice=o.discountPrice,De();case 4:case"end":return e.stop()}}),e)})))).catch((function(){q.close(),Pe(o.orderNo)})):De();case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),De=function(){var n=m.value;e.push({path:"/orderDetail",query:{orderType:"MUSIC",musicId:n.id}})},Pe=function(){var e=i(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,B.post("/api-student/userOrder/orderCancel",{data:{orderNo:n}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(n){return e.apply(this,arguments)}}(),Ae=I((function(){var e,n=null===(e=m.value)||void 0===e?void 0:e.paymentType;return"string"==typeof n?n=n.split(","):[]})),Be=I((function(){var e=m.value;return{play:!!e.play,free:null==e?void 0:e.paymentType.includes("FREE"),charge:null==e?void 0:e.paymentType.includes("CHARGE"),vip:null==e?void 0:e.paymentType.includes("VIP"),buy:"PAID"===(null==e?void 0:e.orderStatus)}})),qe=h(!1),Le=h(""),Ue=h(0),Me=function(){var e=i(regeneratorRuntime.mark((function e(){var n,t,r,i,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,B.post("/api-teacher/open/musicShareProfit",{data:{bizId:null===(n=m.value)||void 0===n?void 0:n.id,userId:null===(t=z.user.data)||void 0===t?void 0:t.userId}});case 3:return a=e.sent,o=location.origin+"/teacher/#/shareMusic?id=".concat(null===(r=m.value)||void 0===r?void 0:r.id,"&recomUserId=").concat(null===(i=z.user.data)||void 0===i?void 0:i.userId,"&userType=").concat(z.platformType),1===a.data.discount&&(o+="&activityId=".concat(a.data.activityId)),Ue.value=a.data.discount||0,console.log(o),Le.value=o,qe.value=!0,e.abrupt("return");case 13:e.prev=13,e.t0=e.catch(0);case 15:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}(),Fe=k({open:!1,iframeSrc:"",musicXml:"",instrumentName:"",iframeRef:null,partIndex:0,partList:[]}),Ve=function(){var e,n,t;Fe.iframeSrc="".concat(location.origin).concat(location.pathname,"osmd/index.html"),Fe.musicXml=(null===(e=m.value)||void 0===e?void 0:e.xmlFileUrl)||"",Fe.partList=(null===(n=m.value)||void 0===n?void 0:n.background)||[],Fe.instrumentName=pe(null===(t=Fe.partList[Fe.partIndex])||void 0===t?void 0:t.track)},He=function(){var e=document.getElementById("staffIframeRef");e&&e.contentWindow.renderXml&&e.contentWindow.renderXml(Fe.musicXml,Fe.partIndex)},Xe=I((function(){return Fe.partList.map((function(e,n){var t=pe(e.track);return{text:e.track+(t?"(".concat(t,")"):""),value:n}}))}));return function(){var i,a,u,p,v,g,w,h,k,b,y;return S("div",{class:ge.detail},[S(X,{position:"top"},{default:function(){var e;return[S("div",{ref:l},[S(L,{background:"transparent",border:!1,isFixed:!1,color:"#fff",title:null===(e=m.value)||void 0===e?void 0:e.musicSheetName,backIconColor:"white"},{right:function(){return S("div",{class:ge.shareBtn,style:{color:"#fff"},onClick:Me},[S(F,{src:K},null),j("分享")])}})])]}}),S("img",{class:ge.bgImg,src:null===(i=m.value)||void 0===i?void 0:i.titleImg},null),S("div",{class:ge.bgContent},null),S("div",{class:ge.musicContainer,style:{marginTop:"16px",height:"calc(100vh - ".concat(s.value+16+"px",")")}},[S(U,{border:!1,center:!0,class:ge.musicInfo},{icon:function(){var e;return S(F,{class:ge.pImg,src:null===(e=m.value)||void 0===e?void 0:e.titleImg},null)},title:function(){var e,n,t,r;return S("div",{class:ge.info},[S("h4",{class:"van-ellipsis"},[null===(e=m.value)||void 0===e?void 0:e.musicSheetName]),S("p",{style:{display:"flex"}},[Ae.value.map((function(e){return S(W,{style:{color:ye[e].color},class:ge.tag,type:"success",plain:!0},{default:function(){return[ye[e].text]}})})),1===(null===(n=m.value)||void 0===n?void 0:n.exquisiteFlag)&&S(F,{class:ge.exquisiteFlag,src:we("icon_exquisite.png")},null),(null===(t=m.value)||void 0===t?void 0:t.albumNums)>0&&S(F,{class:ge.songAlbum,src:we("icon_album_active.png")},null),S("span",{class:ge.coomposer},[null===(r=m.value)||void 0===r?void 0:r.composer])])])},value:function(){var e,n,t;return S(T,null,[S("div",{class:"van-cell__value",style:{display:"SINGLE"===(null===(e=m.value)||void 0===e?void 0:e.musicSheetType)?"":"none"}},[null!==(n=m.value)&&void 0!==n&&n.notation?S("span",{class:ge.download,onClick:function(){be.status=!0}},[S("img",{src:$},null),S("span",null,[j("转谱")])]):null,S("span",{class:ge.download,onClick:function(){_.length>0?ke.value=!0:O("暂无图片")}},[S("img",{src:ee},null),S("span",null,[j("下载曲谱")])])]),S("span",{style:{display:"CONCERT"===(null===(t=m.value)||void 0===t?void 0:t.musicSheetType)?"":"none"},class:ge.download,onClick:function(){Fe.open=!0}},[S(R,{style:{background:"rgba(246,246,246,1)",borderRadius:"50%",padding:"4px"},size:"20px",name:"exchange"},null),S("span",null,[j("切换乐器")])])])}}),S("div",{class:ge.musicContent},[S("p",{class:ge.musicTitle},[(null!==(a=m.value)&&void 0!==a&&a.musicSheetName?null===(u=m.value)||void 0===u?void 0:u.musicSheetName:"")+(Fe.instrumentName?"(".concat(Fe.instrumentName,")"):"")]),"CONCERT"===(null===(p=m.value)||void 0===p?void 0:p.musicSheetType)?S(T,null,[r.value&&S(T,null,[S(G,{animationData:ne,class:ge.finch},null),S("p",{class:ge.finchLoad},[j("加载中...")])]),S("iframe",{id:"staffIframeRef",src:Fe.iframeSrc,onLoad:He},null)]):S(T,null,[_.length>0?S("img",{src:_[0],alt:"",class:ge.musicImg},null):r.value?S(T,null,[S(G,{animationData:ne,class:ge.finch},null),S("p",{class:ge.finchLoad},[j("加载中...")])]):S("div",{class:ge.empty},[S(F,{src:te,class:ge.emptyImg},null),S("p",{class:ge.emptyTip},[j("暂无乐谱预览图")])])]),S("div",{class:ge.videoOperation},[f.value&&S(T,null,[!Be.value.play&&100!=je.value&&0!=je.value&&S("div",{class:[ge.audition]},[S("img",{src:re},null),S("span",null,[j("每首曲目可试听"),je.value,j("%")])]),S("div",{class:[ge.audio,ge.collectCell]},[S("audio",{id:"player",controls:!0,ref:Se},[S("source",{src:f.value,type:"audio/mp3"},null)])])]),S("div",{class:[ge.collect,ge.collectCell]},[S("div",{class:[ge.userInfo],onClick:function(){var n,t;N().isApp&&"TEACHER"===(null===(n=m.value)||void 0===n?void 0:n.sourceType)&&"STUDENT"===z.platformType&&e.push({path:"/teacherHome",query:{teacherId:null===(t=m.value)||void 0===t?void 0:t.userId,tabs:"music"}})}},[S("img",{src:(null===(v=m.value)||void 0===v?void 0:v.userAvatar)||de},null),S("span",null,[null===(g=m.value)||void 0===g?void 0:g.userName])]),S("div",{class:ge.functionSection},[S("div",{class:[ge.collectSection],onClick:function(){return Re()}},[S("span",null,[null===(w=m.value)||void 0===w?void 0:w.favoriteCount,j("人收藏")]),S("img",{src:null!==(h=m.value)&&void 0!==h&&h.favorite?ie:ae},null)]),"TEACHER"===z.platformType&&S("div",{class:[ge.collectSection],onClick:function(){var e;null!==(e=m.value)&&void 0!==e&&e.coursewareStatus?ze():Ne()}},[S("span",null,[null!==(k=m.value)&&void 0!==k&&k.coursewareStatus?"移出课件":"添加到课件"]),null!==(b=m.value)&&void 0!==b&&b.coursewareStatus?S(R,{name:"clear"},null):S(R,{name:"add",size:18},null)])])])])]),S("div",{class:[ge.lookAlbum,ge.collectCell],onClick:function(){var n,t;e.push({path:"/look-album-list",query:{id:null===(n=m.value)||void 0===n?void 0:n.id,musicSubject:null===(t=m.value)||void 0===t?void 0:t.musicSubject}})}},[S("div",null,[S("img",{src:d},null),S("span",null,[j("进入曲目所在专辑列表")])]),S(R,{name:"arrow",size:16,color:"#666"},null)])]),(null===(y=m.value)||void 0===y?void 0:y.id)&&S(Y,{position:"bottom",background:"white"},{default:function(){var r;return[S("div",{ref:c},[Be.value.play?S(E,{round:!0,block:!0,type:"primary",color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",onClick:function(){Ie.value&&Ie.value.stop(),Q(m.value,(function(){}),{"part-index":Fe.partIndex||0})}},{default:function(){return[j("立即练习")]}}):S("div",{class:ge.colSticky},[Be.value.charge&&S("div",{class:ge.priceSection},[S("span",null,[j("点播价:")]),S("span",{class:ge.price},[S("i",null,[j("¥")]),D(null===(r=m.value)||void 0===r?void 0:r.musicPrice)])]),S("div",{class:[ge.buyBtn]},[Be.value.charge&&S(E,{round:!0,type:"primary",color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",class:ge.primary,onClick:Ee},{default:function(){return[j("立即点播")]}}),Be.value.vip&&S(E,{round:!0,block:!Be.value.charge,type:"primary",color:"linear-gradient(180deg, #F7BD8D 0%, #CD8806 100%)",class:ge.memeber,onClick:function(){e.push({path:"/memberCenter",query:n({},t.query)})}},{default:function(){return[o.value>0&&S("div",{class:[ge.buttonDiscount]},[j("专属优惠")]),j("开通会员")]}})])])])]}}),S(P,{show:qe.value,"onUpdate:show":function(e){return qe.value=e},style:{background:"transparent"},teleport:"body"},{default:function(){var e;return[S(se,{teacherId:null===(e=z.user.data)||void 0===e?void 0:e.userId,shareUrl:Le.value,shareType:"music"},{default:function(){var e,n,t;return[S("div",{class:ge.shareMate},[1===Ue.value&&S("div",{class:ge.tagDiscount},[j("专属优惠")]),S("img",{class:ge.icon,crossorigin:"anonymous",src:(null===(e=m.value)||void 0===e?void 0:e.titleImg)+"@base@tag=imgScale&h=80&w=80&m=1?t=".concat(+new Date)},null),S("div",{class:ge.info},[S("h4",{class:"van-multi-ellipsis--l2"},[null===(n=m.value)||void 0===n?void 0:n.musicSheetName]),S("p",null,[j("作曲人:"),null===(t=m.value)||void 0===t?void 0:t.composer])])])]}})]}}),S(P,{show:ke.value,"onUpdate:show":function(e){return ke.value=e},position:"bottom",round:!0},{default:function(){return[S(oe,{imgList:JSON.parse(JSON.stringify(_)),musicSheetName:m.value.musicSheetName},null)]}}),S(P,{show:be.status,"onUpdate:show":function(e){return be.status=e},teleport:"body",closeable:!0,style:{width:"80%"},round:!0},{default:function(){return[S("div",{class:ge.staffContainer},[S("div",{class:ge.staffTitle},[j("选择转换曲谱")]),S(V,{modelValue:be.radio,"onUpdate:modelValue":function(e){return be.radio=e}},{default:function(){return[S(M,{border:!1},{default:function(){return[S(U,{center:!0,border:!1,class:"staff"===be.radio?ge.active:"",onClick:function(){return xe("staff")}},{icon:function(){return S(F,{src:ue,class:ge.staffImg},null)},title:function(){return S("span",{class:ge.name},[j("五线谱")])},value:function(){return S(H,{name:"staff"},{icon:function(e){return S(R,{class:ge.boxStyle,size:16,name:e.checked?me:fe},null)}})}}),S(U,{center:!0,border:!1,class:"first"===be.radio?ge.active:"",onClick:function(){return xe("first")}},{icon:function(){return S(F,{src:le,class:ge.staffImg},null)},title:function(){return S("span",{class:ge.name},[j("简谱-首调")])},value:function(){return S(H,{name:"first"},{icon:function(e){return S(R,{class:ge.boxStyle,size:16,name:e.checked?me:fe},null)}})}}),S(U,{center:!0,border:!1,class:"fixed"===be.radio?ge.active:"",onClick:function(){return xe("fixed")}},{icon:function(){return S(F,{src:ce,class:ge.staffImg},null)},title:function(){return S("span",{class:ge.name},[j("简谱-固定调")])},value:function(){return S(H,{name:"fixed"},{icon:function(e){return S(R,{class:ge.boxStyle,size:16,name:e.checked?me:fe},null)}})}})]}})]}})])]}}),S(P,{teleport:"body",position:"bottom",round:!0,show:Fe.open,"onUpdate:show":function(e){return Fe.open=e}},{default:function(){return[S(ve,{columns:Xe.value,onConfirm:function(e){Fe.open=!1,Fe.partIndex=e.value,A((function(){var e,n;(n=document.getElementById("staffIframeRef"))&&n.contentWindow.renderXml&&(n.contentWindow.resetRender(Fe.partIndex),Fe.instrumentName=pe(null===(e=Fe.partList[Fe.partIndex])||void 0===e?void 0:e.track))}))},onCancel:function(){return Fe.open=!1}},null)]}})])}}}))}}}))}();