index-legacy.37a2b438.js 30 KB

1
  1. !function(){function e(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function r(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){t(r,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(e,r,t,n,i,a,o){try{var u=e[a](o),c=u.value}catch(l){return void t(l)}u.done?r(c):Promise.resolve(c).then(n,i)}function i(e){return function(){var r=this,t=arguments;return new Promise((function(i,a){var o=e.apply(r,t);function u(e){n(o,i,a,u,c,"next",e)}function c(e){n(o,i,a,u,c,"throw",e)}u(void 0)}))}}var a=document.createElement("style");a.innerHTML='._base_1urjh_1>div{background:url(./header-bg.png) no-repeat top center}._detail_1urjh_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;--plyr-color-main: var(--van-primary);--plyr-control-icon-size: .32rem}._detail_1urjh_4 .plyr__controls .plyr__controls__item:first-child{background-color:var(--van-primary);color:#fff;border-radius:50%}._base_1urjh_1 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._shareBtn_1urjh_21{display:flex;align-items:flex-start;color:#fff;font-size:.37333rem;line-height:.53333rem!important}._shareBtn_1urjh_21 .van-image{width:.48rem;height:.48rem;margin-right:.16rem}._bgImg_1urjh_33{position:absolute;left:0;top:0;width:100%;height:7.06667rem;-o-object-fit:cover;object-fit:cover;filter:blur(.26667rem)}._bgContent_1urjh_42{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_1urjh_51{position:relative;width:100%;height:13.33333rem;overflow:hidden}._musicContent_1urjh_51: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_1urjh_51 ._musicTitle_1urjh_66{text-align:center;font-size:.42667rem}._musicContent_1urjh_51 ._musicImg_1urjh_70{width:100%}._musicContent_1urjh_51 ._finch_1urjh_73{width:4rem;margin:2.13333rem auto 0}._musicContent_1urjh_51 ._finchLoad_1urjh_77{text-align:center;color:#333;font-size:.4rem;margin-top:.10667rem}._musicContent_1urjh_51 iframe{visibility:hidden}._musicContent_1urjh_51 iframe body ::-webkit-scrollbar-thumb{background-color:#efeff0;border:.02667rem solid transparent;background-clip:padding-box;border-radius:.13333rem}._collectCell_1urjh_92{margin:.26667rem .42667rem 0;background:#ffffff;border-radius:.26667rem;box-shadow:0 0 .16rem rgba(229,229,229,.7);overflow:hidden}._videoOperation_1urjh_99{position:absolute;left:0;right:0;bottom:.13333rem;z-index:1}._audition_1urjh_106{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_1urjh_106 img{margin-top:-.05333rem;width:.56rem;height:.4rem;margin-right:.29333rem}._collect_1urjh_92{display:flex;align-items:center;justify-content:space-between;padding:.29333rem;font-size:.37333rem;color:#666}._collect_1urjh_92 ._userInfo_1urjh_132{display:flex;align-items:center;padding:.08rem .16rem;background:#d5f3ee;border-radius:.42667rem}._collect_1urjh_92 ._userInfo_1urjh_132 img{width:.69333rem;height:.69333rem;border-radius:50%}._collect_1urjh_92 ._userInfo_1urjh_132 span{padding-left:.21333rem;max-width:1.6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2dc7aa}._collect_1urjh_92 ._collectSection_1urjh_152{display:flex;align-items:center}._collect_1urjh_92 ._collectSection_1urjh_152 img{margin-top:-.05333rem;margin-left:.13333rem;width:.48rem;height:.48rem}._collect_1urjh_92 ._collectSection_1urjh_152 .van-icon{font-size:.53333rem;margin-top:-.05333rem;margin-left:.13333rem;color:var(--van-primary)}._collect_1urjh_92 ._collectSection_1urjh_152:first-child{margin-right:.37333rem}._lookAlbum_1urjh_171{padding:.45333rem .53333rem;margin-bottom:.4rem;font-size:.37333rem;color:#333;line-height:.53333rem;display:flex;align-items:center;justify-content:space-between}._lookAlbum_1urjh_171>div{display:flex;align-items:center;line-height:1}._lookAlbum_1urjh_171>div img{width:.53333rem;height:.53333rem;margin-right:.26667rem}._bg_1urjh_33{position:relative;height:100%;padding:.42667rem;z-index:11}._musicContainer_1urjh_197{position:relative;z-index:12;border-radius:.48rem .48rem 0 0;background-color:#fff;overflow-y:auto}._shareMate_1urjh_204{position:relative;margin-top:1.33333rem;display:flex;flex:1;align-items:center;padding:.29333rem .32rem;background:#ffffff;border-radius:.26667rem}._shareMate_1urjh_204 ._icon_1urjh_214{width:.96rem;height:.96rem;border-radius:.26667rem}._shareMate_1urjh_204 ._info_1urjh_219{margin-left:.37333rem;flex:1;margin-right:.37333rem;word-break:break-all}._shareMate_1urjh_204 ._info_1urjh_219>h4{color:var(--music-list-item-title-color);font-size:.37333rem;font-weight:600;width:5.33333rem}._shareMate_1urjh_204 ._info_1urjh_219>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._shareMate_1urjh_204 ._tagDiscount_1urjh_235{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_1urjh_248{position:relative;margin-top:.93333rem;display:flex;flex:1;align-items:center;padding:.18667rem;background:#ffffff;border-radius:.26667rem}._shareVip_1urjh_248 ._icon_1urjh_214{width:1.92rem;height:1.92rem;border-radius:.26667rem}._shareVip_1urjh_248 ._info_1urjh_219{margin-left:.16rem;flex:1;word-break:break-all}._shareVip_1urjh_248 ._info_1urjh_219>h4{color:var(--music-list-item-title-color);font-size:.42667rem;font-weight:600}._shareVip_1urjh_248 ._info_1urjh_219>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._tagDiscount_1urjh_235{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_1urjh_290{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_1urjh_303{width:1.22667rem;height:1.22667rem;border-radius:.26667rem;overflow:hidden;flex-shrink:0}._musicInfo_1urjh_310{padding-top:.61333rem!important;padding-bottom:.61333rem!important;margin-bottom:.26667rem}._musicInfo_1urjh_310 ._coomposer_1urjh_315{padding-top:.05333rem;padding-left:.16rem;max-width:3.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._musicInfo_1urjh_310 ._tag_1urjh_235{flex-shrink:0;padding:.05333rem .10667rem 0;border-radius:.10667rem}._musicInfo_1urjh_310 ._tag_1urjh_235+._tag_1urjh_235{margin-left:.13333rem}._musicInfo_1urjh_310 ._info_1urjh_219{margin-left:.37333rem;flex:1;margin-right:.37333rem;word-break:break-all}._musicInfo_1urjh_310 ._info_1urjh_219>h4{font-size:.42667rem;font-weight:700;color:#1a1a1a;width:4.66667rem;padding-bottom:.08rem}._musicInfo_1urjh_310 ._info_1urjh_219>p{font-size:.32rem;color:#999;line-height:.45333rem}._musicInfo_1urjh_310 ._download_1urjh_349{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:.32rem}._musicInfo_1urjh_310 ._download_1urjh_349 img{height:.64rem;width:.64rem}._musicInfo_1urjh_310 ._exquisiteFlag_1urjh_360{width:.37333rem;margin-left:.13333rem;flex-shrink:0}._musicInfo_1urjh_310 ._songAlbum_1urjh_365{width:.4rem;height:.4rem;margin-left:.13333rem;flex-shrink:0}._musicInfo_1urjh_310 .van-cell__value{display:flex;justify-content:space-around}._colSticky_1urjh_375{display:flex;align-items:center;justify-content:space-between}._colSticky_1urjh_375 ._priceSection_1urjh_380{font-size:.37333rem;font-weight:400;color:#999}._colSticky_1urjh_375 ._priceSection_1urjh_380 ._price_1urjh_380{font-size:.58667rem;font-weight:700;color:#ff4e19}._colSticky_1urjh_375 ._priceSection_1urjh_380 ._price_1urjh_380 i{font-style:normal;font-size:.42667rem}._buyBtn_1urjh_394{--van-button-default-height: 1.12rem;flex:1;display:flex;align-items:center;justify-content:flex-end}._buyBtn_1urjh_394 .van-button{padding:0 .58667rem;font-weight:600}._buyBtn_1urjh_394 .van-button+.van-button{margin-left:.32rem}._buyBtn_1urjh_394 ._primry_1urjh_408{box-shadow:0 .05333rem .18667rem rgba(45,199,170,.25)}._buyBtn_1urjh_394 ._member_1urjh_411{box-shadow:0 .05333rem .18667rem rgba(187,156,83,.25)}._functionSection_1urjh_414{display:flex}._empty_1urjh_417{margin:0 auto;font-size:.37333rem;color:#999;line-height:.53333rem;text-align:center;padding-top:1.6rem}._empty_1urjh_417 ._emptyImg_1urjh_425{width:4.58667rem}._staffContainer_1urjh_428{padding:.4rem .4rem .64rem}._staffContainer_1urjh_428 ._staffTitle_1urjh_431{padding-bottom:.66667rem;font-size:.42667rem;color:#1a1a1a;line-height:.58667rem}._staffContainer_1urjh_428 ._staffImg_1urjh_437{width:.85333rem;height:.53333rem}._staffContainer_1urjh_428 ._name_1urjh_441{padding-left:.45333rem;font-size:.34667rem;font-weight:500;color:#333}._staffContainer_1urjh_428 ._boxStyle_1urjh_447{background:transparent!important;width:.4rem;height:.4rem;border:transparent!important}._staffContainer_1urjh_428 ._active_1urjh_453{background:#f7f8f9;border-radius:.21333rem}._staffContainer_1urjh_428 ._active_1urjh_453 ._name_1urjh_441{color:#2dc7aa}._staffContainer_1urjh_428 .van-cell{padding:.24rem .42667rem;margin-bottom:.16rem}._staffContainer_1urjh_428 .van-cell:hover,._staffContainer_1urjh_428 .van-cell:active,._staffContainer_1urjh_428 .van-cell.active{background:#f7f8f9;border-radius:.21333rem}._staffContainer_1urjh_428 .van-cell:hover .name,._staffContainer_1urjh_428 .van-cell:active .name,._staffContainer_1urjh_428 .van-cell.active .name{color:#2dc7aa}._staffContainer_1urjh_428 .van-cell:last-child{margin-bottom:0}._staffContainer_1urjh_428 .van-cell__value{display:flex;justify-content:flex-end}._staffContainer_1urjh_428 .van-checkbox{overflow:inherit;height:.48rem;display:flex;align-items:center;justify-content:flex-end}._staffContainer_1urjh_428 .van-checkbox__icon{height:.4rem;line-height:.4rem;display:inline-block;vertical-align:middle}._staffContainer_1urjh_428 .van-checkbox__label{line-height:.4rem}\n',document.head.appendChild(a),System.register(["./icon_uploader-legacy.bc9240d0.js","./icon-xin-legacy.74dde3a9.js","./icon_exquisite-legacy.474c5c17.js","./icon_album_active-legacy.fe16b618.js","./icon_music_active-legacy.3c4f03a5.js","./index-legacy.088d07fe.js","./index-legacy.6168d53d.js","./index-legacy.958bfabf.js","./index-legacy.6795e61d.js","./index-legacy.d77a1394.js","./index-legacy.4f0a81cc.js","./index-legacy.9aa10d4d.js","./index-legacy.47f904f4.js","./index-legacy.062d49e9.js","./download-legacy.f4d032d3.js","./music-legacy.9249ee25.js","./index-legacy.51991b82.js","./orderStatus-legacy.0fe7f202.js","./icon_share-legacy.69f1973c.js","./index-legacy.e0e9aeb1.js","./icon_teacher-legacy.42ba77b1.js","./icon_checkbox_default-legacy.e33240bc.js","./plyr-legacy.180f4c53.js","./index-legacy.e7620068.js","./use-height-legacy.166530e2.js","./index-legacy.7027cde5.js","./index-legacy.c610561c.js","./code-down-load-legacy.85171b08.js","./logo-legacy.cf4b3bd2.js","./browser-legacy.8b7c8200.js"],(function(e){"use strict";var t,n,a,o,u,c,l,s,_,d,m,f,h,p,v,g,j,b,y,x,w,C,k,I,S,T,O,z,R,D,P,A,E,N,B,q,M,U,F,V,H,L,J,G,Q,Z,K,W,X,Y,$,ee,re,te,ne,ie,ae,oe,ue,ce,le,se,_e,de;return{setters:[function(e){t=e._,n=e.a,a=e.b,o=e.c,u=e.d,c=e.e,l=e.f},function(e){s=e._},function(e){_=e.i,d=e._,m=e.a},function(e){f=e._},function(e){h=e._},function(e){p=e.d,v=e.M,g=e.L,j=e.O,b=e.N,y=e.Z,x=e.P,w=e.T,C=e.Q,k=e.i,I=e.w,S=e.F,T=e.aE,O=e.b,z=e.s,R=e.J,D=e.B,P=e.bu,A=e.aQ,E=e.e,N=e.D},function(e){B=e.C},function(e){q=e.C},function(e){M=e.C},function(e){U=e.I},function(e){F=e.R,V=e.a},function(e){H=e.S},function(e){L=e.T},function(){},function(e){J=e.i,G=e.a,Q=e.V,Z=e.A,K=e.e,W=e.b,X=e.c,Y=e.d,$=e.D,ee=e.s,re=e.f,te=e.g},function(e){ne=e.g,ie=e.m},function(e){ae=e.C},function(e){oe=e.o},function(e){ue=e.i},function(e){ce=e.C},function(e){le=e.i},function(e){se=e.a,_e=e.i},function(e){de=e.P},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var me={base:"_base_1urjh_1",detail:"_detail_1urjh_4",shareBtn:"_shareBtn_1urjh_21",bgImg:"_bgImg_1urjh_33",bgContent:"_bgContent_1urjh_42",musicContent:"_musicContent_1urjh_51",musicTitle:"_musicTitle_1urjh_66",musicImg:"_musicImg_1urjh_70",finch:"_finch_1urjh_73",finchLoad:"_finchLoad_1urjh_77",collectCell:"_collectCell_1urjh_92",videoOperation:"_videoOperation_1urjh_99",audition:"_audition_1urjh_106",collect:"_collect_1urjh_92",userInfo:"_userInfo_1urjh_132",collectSection:"_collectSection_1urjh_152",lookAlbum:"_lookAlbum_1urjh_171",bg:"_bg_1urjh_33",musicContainer:"_musicContainer_1urjh_197",shareMate:"_shareMate_1urjh_204",icon:"_icon_1urjh_214",info:"_info_1urjh_219",tagDiscount:"_tagDiscount_1urjh_235",shareVip:"_shareVip_1urjh_248",buttonDiscount:"_buttonDiscount_1urjh_290",pImg:"_pImg_1urjh_303",musicInfo:"_musicInfo_1urjh_310",coomposer:"_coomposer_1urjh_315",tag:"_tag_1urjh_235",download:"_download_1urjh_349",exquisiteFlag:"_exquisiteFlag_1urjh_360",songAlbum:"_songAlbum_1urjh_365",colSticky:"_colSticky_1urjh_375",priceSection:"_priceSection_1urjh_380",price:"_price_1urjh_380",buyBtn:"_buyBtn_1urjh_394",primry:"_primry_1urjh_408",member:"_member_1urjh_411",functionSection:"_functionSection_1urjh_414",empty:"_empty_1urjh_417",emptyImg:"_emptyImg_1urjh_425",staffContainer:"_staffContainer_1urjh_428",staffTitle:"_staffTitle_1urjh_431",staffImg:"_staffImg_1urjh_437",name:"_name_1urjh_441",boxStyle:"_boxStyle_1urjh_447",active:"_active_1urjh_453"},fe=e("getAssetsHomeFile",(function(e){var r="../component/images/".concat(e);return{"../component/images/collection.png":t,"../component/images/collection_active.png":n,"../component/images/icon-xin.png":s,"../component/images/icon_ai.png":a,"../component/images/icon_album.png":d,"../component/images/icon_album_active.png":f,"../component/images/icon_author.png":o,"../component/images/icon_download.png":u,"../component/images/icon_exquisite.png":m,"../component/images/icon_music_active.png":h,"../component/images/icon_share.png":c,"../component/images/icon_uploader.png":l}[r].default}));e("default",p({name:"MusicDetail",setup:function(){localStorage.setItem("behaviorId",ne());var e=v(),t=g(),n=j(!1),a=Number(t.query.activityId)||0,o=j(a),u=j(!1),c=j(null),l=j(null),s=j("0"),d=j(null),m=j(""),f=[],h=j([]),p=j([]),he=j([]);j("");var pe=j(!1),ve=b({status:!1,radio:"staff"}),ge={FREE:{color:"#01B84F",text:"免费"},VIP:{color:"#CD863E",text:"会员"},CHARGE:{color:"#3591CE",text:"点播"}},je=function(e){ve.radio=e,ve.status=!1};y((function(){return ve.radio}),(function(e){f="first"==e?h.value:"fixed"==e?p.value:he.value}));var be=function(){var e=i(regeneratorRuntime.mark((function e(r){var i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.value){e.next=2;break}return e.abrupt("return");case 2:return n.value=!0,u.value=!1,e.prev=4,e.next=7,E.get("/music/sheet/detail/".concat(t.query.id),{prefix:"TEACHER"===z.platformType?"/api-teacher":"/api-student"});case 7:i=e.sent,d.value=i.data,console.log(d.value.notation,"musicDetail"),a=i.data.background,m.value=a&&a.length>0?a[0].audioFileUrl:"",f=i.data.musicImg?i.data.musicImg.split(","):[],h.value=i.data.firstTone?i.data.firstTone.split(","):[],p.value=i.data.fixedTone?i.data.fixedTone.split(","):[],he.value=i.data.musicImg?i.data.musicImg.split(","):[],e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),u.value=!0;case 21:n.value=!1;case 22:case"end":return e.stop()}}),e,null,[[4,18]])})));return function(r){return e.apply(this,arguments)}}(),ye=j(null),xe=j(null),we=j(0),Ce=function(){var e=i(regeneratorRuntime.mark((function e(){var r,t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=["play-large","play","progress","captions","duration"],ye.value=new de(xe.value,{controls:t}),e.next=4,E.get("/api-student/sysConfig/queryByParamNameList",{params:{paramNames:"music_sheet_free_rate"}});case 4:n=e.sent,we.value=(null===(r=n.data[0])||void 0===r?void 0:r.paramValue)||0,ye.value.on("timeupdate",(function(){var e=ye.value,r=e.duration*we.value/100||0;e.currentTime>=r&&!De.value.play&&e.stop()}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();x(i(regeneratorRuntime.mark((function e(){var r,t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be();case 2:r=w(c),t=r.height,n=w(l),s.value=t+n.height,m.value&&Ce();case 6:case"end":return e.stop()}}),e)}))));var ke=function(){var e=i(regeneratorRuntime.mark((function e(){var r,t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E.post("/music/sheet/favorite/"+(null===(r=d.value)||void 0===r?void 0:r.id),{prefix:"TEACHER"===z.platformType?"/api-teacher":"/api-student"});case 3:d.value.favorite=null!==(t=d.value)&&void 0!==t&&t.favorite?0:1,d.value.favoriteCount=null!==(n=d.value)&&void 0!==n&&n.favorite?d.value.favoriteCount+1:d.value.favoriteCount-1<0?0:d.value.favoriteCount-1,setTimeout((function(){var e;T(null!==(e=d.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)}}(),Ie=function(){var e=i(regeneratorRuntime.mark((function e(){var r,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E.post("/api-teacher/courseCourseware/submit",{data:{musicSheetId:d.value.id,clientType:"TEACHER",userId:null===(r=z.user.data)||void 0===r?void 0:r.userId}});case 3:t=e.sent,console.log(t),setTimeout((function(){d.value.coursewareId=t.data.id||"",T("添加成功"),d.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)}}(),Se=function(){var e=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:N.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,E.post("/api-teacher/courseCourseware/remove/"+d.value.coursewareId,{data:{}});case 3:setTimeout((function(){T("移除成功"),d.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)}}(),Te=function(){var e=i(regeneratorRuntime.mark((function e(){var n,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.value,oe.orderObject.orderType="MUSIC",oe.orderObject.orderName=n.musicSheetName,oe.orderObject.orderDesc=n.musicSheetName,oe.orderObject.actualPrice=n.musicPrice,oe.orderObject.recomUserId=t.query.recomUserId||0,oe.orderObject.activityId=t.query.activityId||0,oe.orderObject.orderNo="",oe.orderObject.orderList=[r({orderType:"MUSIC",goodsName:n.musicSheetName,actualPrice:n.musicPrice},n)],e.next=11,E.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"MUSIC",bizId:n.id}});case 11:a=e.sent,(o=a.data)?N.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:oe.orderObject.orderNo=o.orderNo,oe.orderObject.actualPrice=o.actualPrice,oe.orderObject.discountPrice=o.discountPrice,Oe();case 4:case"end":return e.stop()}}),e)})))).catch((function(){N.close(),ze(o.orderNo)})):Oe();case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Oe=function(){var r=d.value;e.push({path:"/orderDetail",query:{orderType:"MUSIC",musicId:r.id}})},ze=function(){var e=i(regeneratorRuntime.mark((function e(r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E.post("/api-student/userOrder/orderCancel",{data:{orderNo:r}});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(r){return e.apply(this,arguments)}}(),Re=C((function(){var e,r=null===(e=d.value)||void 0===e?void 0:e.paymentType;return"string"==typeof r?r=r.split(","):[]})),De=C((function(){var e=d.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)}})),Pe=j(!1),Ae=j(""),Ee=j(0),Ne=function(){var e=i(regeneratorRuntime.mark((function e(){var r,t,n,i,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E.post("/api-teacher/open/musicShareProfit",{data:{bizId:null===(r=d.value)||void 0===r?void 0:r.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===(n=d.value)||void 0===n?void 0:n.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)),Ee.value=a.data.discount||0,console.log(o),Ae.value=o,Pe.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)}}();return function(){var i,a,u,h,p,v,g,j,b;return k("div",{class:me.detail},[k(H,{position:"top"},{default:function(){var e;return[k("div",{ref:c},[k(B,{background:"transparent",border:!1,isFixed:!1,color:"#fff",title:null===(e=d.value)||void 0===e?void 0:e.musicSheetName,backIconColor:"white"},{right:function(){return k("div",{class:me.shareBtn,style:{color:"#fff"},onClick:Ne},[k(U,{src:ue},null),I("分享")])}})])]}}),k("img",{class:me.bgImg,src:null===(i=d.value)||void 0===i?void 0:i.titleImg},null),k("div",{class:me.bgContent},null),k("div",{class:me.musicContainer,style:{marginTop:"16px",height:"calc(100vh - ".concat(s.value+16+"px",")")}},[k(q,{border:!1,center:!0,class:me.musicInfo},{icon:function(){var e;return k(U,{class:me.pImg,src:null===(e=d.value)||void 0===e?void 0:e.titleImg},null)},title:function(){var e,r,t,n;return k("div",{class:me.info},[k("h4",{class:"van-ellipsis"},[null===(e=d.value)||void 0===e?void 0:e.musicSheetName]),k("p",{style:{display:"flex"}},[Re.value.map((function(e){return k(L,{style:{color:ge[e].color},class:me.tag,type:"success",plain:!0},{default:function(){return[ge[e].text]}})})),1===(null===(r=d.value)||void 0===r?void 0:r.exquisiteFlag)&&k(U,{class:me.exquisiteFlag,src:fe("icon_exquisite.png")},null),(null===(t=d.value)||void 0===t?void 0:t.albumNums)>0&&k(U,{class:me.songAlbum,src:fe("icon_album_active.png")},null),k("span",{class:me.coomposer},[null===(n=d.value)||void 0===n?void 0:n.composer])])])},value:function(){var e;return k(S,null,[null!==(e=d.value)&&void 0!==e&&e.notation?k("span",{class:me.download,onClick:function(){ve.status=!0}},[k("img",{src:J},null),k("span",null,[I("转谱")])]):null,k("span",{class:me.download,onClick:function(){f.length>0?pe.value=!0:T("暂无图片")}},[k("img",{src:G},null),k("span",null,[I("下载曲谱")])])])}}),k("div",{class:me.musicContent},[k("p",{class:me.musicTitle},[null===(a=d.value)||void 0===a?void 0:a.musicSheetName]),f.length>0?k("img",{src:f[0],alt:"",class:me.musicImg},null):n.value?k(S,null,[k(Q,{animationData:Z,class:me.finch},null),k("p",{class:me.finchLoad},[I("加载中...")])]):k("div",{class:me.empty},[k(U,{src:K,class:me.emptyImg},null),k("p",{class:me.emptyTip},[I("暂无乐谱预览图")])]),k("div",{class:me.videoOperation},[m.value&&k(S,null,[!De.value.play&&100!=we.value&&0!=we.value&&k("div",{class:[me.audition]},[k("img",{src:W},null),k("span",null,[I("每首曲目可试听"),we.value,I("%")])]),k("div",{class:[me.audio,me.collectCell]},[k("audio",{id:"player",controls:!0,ref:xe},[k("source",{src:m.value,type:"audio/mp3"},null)])])]),k("div",{class:[me.collect,me.collectCell]},[k("div",{class:[me.userInfo],onClick:function(){var r,t;O().isApp&&"TEACHER"===(null===(r=d.value)||void 0===r?void 0:r.sourceType)&&"STUDENT"===z.platformType&&e.push({path:"/teacherHome",query:{teacherId:null===(t=d.value)||void 0===t?void 0:t.userId,tabs:"music"}})}},[k("img",{src:(null===(u=d.value)||void 0===u?void 0:u.userAvatar)||le},null),k("span",null,[null===(h=d.value)||void 0===h?void 0:h.userName])]),k("div",{class:me.functionSection},[k("div",{class:[me.collectSection],onClick:function(){return ke()}},[k("span",null,[null===(p=d.value)||void 0===p?void 0:p.favoriteCount,I("人收藏")]),k("img",{src:null!==(v=d.value)&&void 0!==v&&v.favorite?X:Y},null)]),"TEACHER"===z.platformType&&k("div",{class:[me.collectSection],onClick:function(){var e;null!==(e=d.value)&&void 0!==e&&e.coursewareStatus?Se():Ie()}},[k("span",null,[null!==(g=d.value)&&void 0!==g&&g.coursewareStatus?"移出课件":"添加到课件"]),null!==(j=d.value)&&void 0!==j&&j.coursewareStatus?k(R,{name:"clear"},null):k(R,{name:"add",size:18},null)])])])])]),k("div",{class:[me.lookAlbum,me.collectCell],onClick:function(){var r,t;e.push({path:"/look-album-list",query:{id:null===(r=d.value)||void 0===r?void 0:r.id,musicSubject:null===(t=d.value)||void 0===t?void 0:t.musicSubject}})}},[k("div",null,[k("img",{src:_},null),k("span",null,[I("进入曲目所在专辑列表")])]),k(R,{name:"arrow",size:16,color:"#666"},null)])]),(null===(b=d.value)||void 0===b?void 0:b.id)&&k(ae,{position:"bottom",background:"white"},{default:function(){var n;return[k("div",{ref:l},[De.value.play?k(D,{round:!0,block:!0,type:"primary",color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",onClick:function(){ye.value&&ye.value.stop(),ie(d.value)}},{default:function(){return[I("立即练习")]}}):k("div",{class:me.colSticky},[De.value.charge&&k("div",{class:me.priceSection},[k("span",null,[I("点播价:")]),k("span",{class:me.price},[k("i",null,[I("¥")]),P(null===(n=d.value)||void 0===n?void 0:n.musicPrice)])]),k("div",{class:[me.buyBtn]},[De.value.charge&&k(D,{round:!0,type:"primary",color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",class:me.primary,onClick:Te},{default:function(){return[I("立即点播")]}}),De.value.vip&&k(D,{round:!0,block:!De.value.charge,type:"primary",color:"linear-gradient(180deg, #F7BD8D 0%, #CD8806 100%)",class:me.memeber,onClick:function(){e.push({path:"/memberCenter",query:r({},t.query)})}},{default:function(){return[o.value>0&&k("div",{class:[me.buttonDiscount]},[I("专属优惠")]),I("开通会员")]}})])])])]}}),k(A,{show:Pe.value,"onUpdate:show":function(e){return Pe.value=e},style:{background:"transparent"},teleport:"body"},{default:function(){var e;return[k(ce,{teacherId:null===(e=z.user.data)||void 0===e?void 0:e.userId,shareUrl:Ae.value,shareType:"music"},{default:function(){var e,r,t;return[k("div",{class:me.shareMate},[1===Ee.value&&k("div",{class:me.tagDiscount},[I("专属优惠")]),k("img",{class:me.icon,crossorigin:"anonymous",src:(null===(e=d.value)||void 0===e?void 0:e.titleImg)+"@base@tag=imgScale&h=80&w=80&m=1?t=".concat(+new Date)},null),k("div",{class:me.info},[k("h4",{class:"van-multi-ellipsis--l2"},[null===(r=d.value)||void 0===r?void 0:r.musicSheetName]),k("p",null,[I("作曲人:"),null===(t=d.value)||void 0===t?void 0:t.composer])])])]}})]}}),k(A,{show:pe.value,"onUpdate:show":function(e){return pe.value=e},position:"bottom",round:!0},{default:function(){return[k($,{imgList:JSON.parse(JSON.stringify(f)),musicSheetName:d.value.musicSheetName},null)]}}),k(A,{show:ve.status,"onUpdate:show":function(e){return ve.status=e},teleport:"body",closeable:!0,style:{width:"80%"},round:!0},{default:function(){return[k("div",{class:me.staffContainer},[k("div",{class:me.staffTitle},[I("选择转换曲谱")]),k(F,{modelValue:ve.radio,"onUpdate:modelValue":function(e){return ve.radio=e}},{default:function(){return[k(M,{border:!1},{default:function(){return[k(q,{center:!0,border:!1,class:"staff"===ve.radio?me.active:"",onClick:function(){return je("staff")}},{icon:function(){return k(U,{src:ee,class:me.staffImg},null)},title:function(){return k("span",{class:me.name},[I("五线谱")])},value:function(){return k(V,{name:"staff"},{icon:function(e){return k(R,{class:me.boxStyle,size:16,name:e.checked?se:_e},null)}})}}),k(q,{center:!0,border:!1,class:"first"===ve.radio?me.active:"",onClick:function(){return je("first")}},{icon:function(){return k(U,{src:re,class:me.staffImg},null)},title:function(){return k("span",{class:me.name},[I("简谱-首调")])},value:function(){return k(V,{name:"first"},{icon:function(e){return k(R,{class:me.boxStyle,size:16,name:e.checked?se:_e},null)}})}}),k(q,{center:!0,border:!1,class:"fixed"===ve.radio?me.active:"",onClick:function(){return je("fixed")}},{icon:function(){return k(U,{src:te,class:me.staffImg},null)},title:function(){return k("span",{class:me.name},[I("简谱-固定调")])},value:function(){return k(V,{name:"fixed"},{icon:function(e){return k(R,{class:me.boxStyle,size:16,name:e.checked?se:_e},null)}})}})]}})]}})])]}})])}}}))}}}))}();