1 |
- !function(){var e=["musicSheetList"];function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function r(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function i(e,n,t,r,i,a,l){try{var o=e[a](l),s=o.value}catch(m){return void t(m)}o.done?n(s):Promise.resolve(s).then(r,i)}function a(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var l=e.apply(n,t);function o(e){i(l,r,a,o,s,"next",e)}function s(e){i(l,r,a,o,s,"throw",e)}o(void 0)}))}}function l(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 o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var m=document.createElement("style");m.innerHTML='._base_1xln6_1>div{background:url(./assets/header-bg.d862c125.png) no-repeat top center}._detail_1xln6_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}._base_1xln6_1 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._img_1xln6_14{width:2.50667rem;height:2.50667rem;margin-right:.48rem;position:relative}._img_1xln6_14>img,._img_1xln6_14>div{position:absolute;border-radius:.26667rem;overflow:hidden}._img_1xln6_14:before{content:"";width:2.13333rem;height:2.13333rem;border-radius:.24rem;background-color:var(--music-list-item-background-color);box-shadow:0 .08rem .16rem rgba(0,0,0,.08);position:absolute;right:-.16rem;top:.21333rem}._img_1xln6_14 ._albumType_1xln6_37{position:absolute;left:0;top:0;background:linear-gradient(180deg,#ff8900 0%,#ff5100 100%);box-shadow:0 .02667rem .05333rem rgba(150,13,0,.11);border-radius:.26667rem 0;font-size:.32rem;padding:0 .16rem;line-height:.53333rem;color:#fff;z-index:9}._shareBtn_1xln6_50{display:flex;align-items:flex-start;color:#fff;font-size:.37333rem;line-height:.53333rem!important}._shareBtn_1xln6_50 .van-image{width:.48rem;height:.48rem;margin-right:.16rem}._detailContent_1xln6_62{background-color:#fff;padding:0 .37333rem;border-radius:.45333rem .45333rem 0 0}._detailContent_1xln6_62 ._main_1xln6_67{padding-top:.64rem;padding-bottom:.53333rem;display:flex}._detailContent_1xln6_62 ._favoriteContaineer_1xln6_72{border:none;color:var(--music-list-item-mate-color);height:auto}._detailContent_1xln6_62 ._favoriteContaineer_1xln6_72 .van-button__text{display:flex;align-items:center}._detailContent_1xln6_62 ._favoriteContaineer_1xln6_72 .van-button__text span{line-height:1;padding-top:.05333rem}._detailContent_1xln6_62 ._favoriteContaineer_1xln6_72>span{display:inline-block;line-height:.42667rem;margin-top:.02667rem}._detailContent_1xln6_62 ._favorite_1xln6_72{font-size:.42667rem;margin-right:.13333rem}._detailContent_1xln6_62 ._content_1xln6_94{flex:1;display:inline-grid}._detailContent_1xln6_62 ._content_1xln6_94>h4{color:var(--music-list-item-title-color);font-size:.37333rem;height:.53333rem;line-height:.53333rem;margin-top:.18667rem}._detailContent_1xln6_62 ._content_1xln6_94>p{margin-top:.16rem;font-size:12PX;color:var(--music-list-item-desc-color);line-height:17PX;height:51PX}._footerBar_1xln6_115{padding:.32rem 0;display:flex;justify-content:space-between}._footerBar_1xln6_115>footer{margin-top:0}._bgImg_1xln6_123{position:absolute;left:0;top:0;width:100%;height:7.06667rem;-o-object-fit:cover;object-fit:cover;filter:blur(.26667rem)}._musicContent_1xln6_132{position:absolute;top:0;height:7.06667rem;width:100%;padding-top:1.46667rem;z-index:10;background-color:rgba(0,0,0,.6);backdrop-filter:blur(.53333rem);-webkit-backdrop-filter:blur(.53333rem)}._bg_1xln6_123{position:relative;height:100%;padding:.42667rem;z-index:11}._alumWrap_1xln6_149{display:flex;align-items:center}._alumWrap_1xln6_149 ._img_1xln6_14{width:3.06667rem;height:3.06667rem;flex-shrink:0;border-radius:.16rem;overflow:hidden;margin-right:.37333rem}._alumWrap_1xln6_149 ._alumTitle_1xln6_161{font-size:.48rem;font-weight:500;color:#fff;padding-bottom:.21333rem}._alumWrap_1xln6_149 ._alumDes_1xln6_167{width:calc(100% - 3.44rem)}._alumWrap_1xln6_149 ._alumDes_1xln6_167 ._des_1xln6_170{color:#999}._tags_1xln6_173{margin:.16rem -.05333rem .58667rem}._tags_1xln6_173 ._tag_1xln6_173{margin:0 .05333rem;padding:.05333rem .16rem;color:#000;background-color:#718a93;border-radius:.53333rem}._alumCollect_1xln6_183{display:flex;align-items:center;padding-top:.53333rem;color:#999;font-size:.37333rem}._alumCollect_1xln6_183 img{display:inline-block;width:.37333rem;height:.37333rem;margin-right:.16rem}._alumCollect_1xln6_183 span{padding-top:.02667rem}._alumCollect_1xln6_183 ._right_1xln6_199{display:flex;align-items:center;margin-left:.69333rem}._albumTips_1xln6_204{background:rgba(0,0,0,.32);border-radius:.42667rem;padding:.21333rem .32rem .16rem .26667rem;margin-top:.32rem;font-size:.32rem;color:#999;display:flex;justify-content:space-between}._albumTips_1xln6_204 ._albumPrice_1xln6_214{font-size:.37333rem;font-weight:700;color:#fa0}._alumnContainer_1xln6_219{position:relative;padding:0 .42667rem;z-index:12}._alumnContainer_1xln6_219 ._alumnList_1xln6_224{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin-bottom:.42667rem}._shareVip_1xln6_230{position:relative;margin-top:.26667rem;display:flex;flex:1;align-items:center;padding:.18667rem;background:#ffffff;border-radius:.26667rem}._shareVip_1xln6_230 ._icon_1xln6_240{width:1.92rem;height:1.92rem;border-radius:.26667rem}._shareVip_1xln6_230 ._info_1xln6_245{display:flex;flex-direction:column;margin-left:.16rem;flex:1;word-break:break-all}._shareVip_1xln6_230 ._info_1xln6_245>h4{color:var(--music-list-item-title-color);font-size:.42667rem;font-weight:600}._shareVip_1xln6_230 ._info_1xln6_245>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._shareVip_1xln6_230 ._shareAlumCollect_1xln6_261{display:flex;align-items:center;color:#999;font-size:.37333rem}._shareVip_1xln6_230 ._shareAlumCollect_1xln6_261 img{display:inline-block;width:.37333rem;height:.37333rem;margin-right:.16rem}._shareVip_1xln6_230 ._shareAlumCollect_1xln6_261 span{padding-top:.02667rem}._shareVip_1xln6_230 ._shareAlumCollect_1xln6_261 ._right_1xln6_199{display:flex;align-items:center;margin-left:.69333rem}._tagDiscount_1xln6_281{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_1xln6_294{position:absolute;top:-.61333rem;right:.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}._shareMusicList_1xln6_307{margin-top:.32rem;box-shadow:0 .05333rem .26667rem rgba(0,0,0,.05);padding:0 .26667rem}._albumShare_1xln6_312 .btnGroup .van-button{border:none}._albumShare_1xln6_312 .shareTeacherCustom{background:linear-gradient(270deg,#BAFFE7 0%,#C0DCFF 100%)}._albumShare_1xln6_312 .shareTeacherCustom>div:first-child{display:flex;align-items:center;justify-content:center}._albumShare_1xln6_312 .downloadCustom>div:last-child{border-left-style:dashed}._theSong_1plfo_1{width:100%}._theSong_1plfo_1 ._item_1plfo_4{display:flex;align-items:center;border-bottom:.02667rem solid #f2f2f2;padding:.42667rem 0}._theSong_1plfo_1 ._item_1plfo_4:last-child{border-bottom:0}._theSong_1plfo_1 ._item_1plfo_4:last-child{border:none}._theSong_1plfo_1 ._content_1plfo_16{flex:1}._theSong_1plfo_1 ._content_1plfo_16 ._top_1plfo_19{display:flex;align-items:center}._theSong_1plfo_1 ._content_1plfo_16 ._tag_1plfo_23{flex-shrink:0;padding:.05333rem .10667rem 0;border-radius:.10667rem}._theSong_1plfo_1 ._content_1plfo_16 ._tags_1plfo_28>span{display:inline-block;background:#effbf9;border-radius:.53333rem;color:var(--van-primary-color);padding:.10667rem .21333rem;margin:0 .10667rem;font-size:.32rem;transform:scale(.9);white-space:nowrap}._theSong_1plfo_1 ._content_1plfo_16 ._title_1plfo_39{max-width:3.86667rem;font-size:.42667rem;font-weight:700;color:#1a1a1a;margin-right:.16rem}._theSong_1plfo_1 ._content_1plfo_16 ._singer_1plfo_46{max-width:1.33333rem;font-size:.32rem;color:#999}._theSong_1plfo_1 ._play_1plfo_51{flex-shrink:0;display:flex;align-items:center}._mb100_1plfo_56{margin-bottom:2.66667rem}._pImg_1plfo_59{width:1.33333rem;height:1.33333rem;border-radius:.26667rem;overflow:hidden;flex-shrink:0}._moreSection_1plfo_66{margin-left:.16rem;display:flex;align-items:center;justify-content:center;width:.74667rem;height:.74667rem}._collection_1plfo_74{width:.34667rem;height:.32rem;margin-right:.21333rem}._musicInfo_1plfo_79{padding-top:.61333rem!important;padding-bottom:.61333rem!important;margin-bottom:.26667rem}._musicInfo_1plfo_79 ._tag_1plfo_23{flex-shrink:0;border-radius:.10667rem}._musicInfo_1plfo_79 ._info_1plfo_88{margin-left:.37333rem;flex:1;margin-right:.37333rem;word-break:break-all}._musicInfo_1plfo_79 ._info_1plfo_88>h4{font-size:.42667rem;font-weight:700;color:#1a1a1a;width:5.33333rem;padding-bottom:.08rem}._musicInfo_1plfo_79 ._info_1plfo_88>p{font-size:.32rem;color:#999;line-height:.45333rem}._shareIcon_1plfo_106{display:flex;width:.58667rem;height:.50667rem;margin-right:.37333rem}._shareIcon_1plfo_106 ._share_1plfo_106{width:.53333rem;height:.53333rem}._shareMate_1plfo_116{position:relative;margin-top:1.33333rem;display:flex;flex:1;align-items:center;padding:.29333rem .32rem;background:#ffffff;border-radius:.26667rem}._shareMate_1plfo_116 ._icon_1plfo_126{width:.96rem;height:.96rem;border-radius:.26667rem}._shareMate_1plfo_116 ._info_1plfo_88{margin-left:.37333rem;flex:1;margin-right:.37333rem;word-break:break-all}._shareMate_1plfo_116 ._info_1plfo_88>h4{color:var(--music-list-item-title-color);font-size:.37333rem;font-weight:600;width:5.33333rem}._shareMate_1plfo_116 ._info_1plfo_88>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._shareMate_1plfo_116 ._tagDiscount_1plfo_147{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}._exquisiteFlag_1plfo_160{width:.37333rem;margin-right:.13333rem;flex-shrink:0}._songAlbum_1plfo_165{width:.4rem;height:.4rem;margin-right:.13333rem;flex-shrink:0}\n',document.head.appendChild(m),System.register(["./index-legacy.fba2875c.js","./index-legacy.e7460ea1.js","./index-legacy.d92f7da7.js","./index-legacy.33680739.js","./music-legacy.4cbbd879.js","./index-legacy.09310242.js","./index-legacy.da4067bb.js","./index-legacy.e6c10c75.js","./hooks-legacy.148eb332.js","./index-legacy.a026685b.js","./orderStatus-legacy.9b3fdd6c.js","./icon_share-legacy.69f1973c.js","./icon_share2-legacy.df666685.js","./index-legacy.31c636a4.js","./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.40eca993.js","./use-height-legacy.233a2ec8.js","./icon-play-legacy.50b88257.js","./index-legacy.1c1cdc6c.js","./index-legacy.af00a324.js","./code-down-load-legacy.cfefc939.js","./logo-legacy.cf4b3bd2.js","./browser-legacy.869507ab.js","./html2canvas.esm-legacy.19f9c2b7.js","./index-legacy.7dcec7b3.js","./icon_teacher-legacy.42ba77b1.js"],(function(t){"use strict";var i,l,s,m,c,u,_,d,f,p,g,h,b,v,x,A,y,C,w,M,J,k,Y,B,I,S,F,j,O,D,T,q,E,Z,X,z,R,U,P,V,N,Q,G,L,W,H,K;return{setters:[function(e){i=e.d,l=e.V,s=e.j,m=e.z,c=e.P,u=e.O,_=e.Q,d=e.S,f=e.U,p=e.n,g=e.W,h=e.X,b=e.by,v=e.be,x=e.C,A=e.F,y=e.g,C=e.B,w=e.aR,M=e.w,J=e.D},function(e){k=e.C},function(e){Y=e.I},function(e){B=e.u,I=e.a},function(e){S=e.g},function(e){F=e.T},function(e){j=e.S},function(e){O=e.M},function(e){D=e.u},function(e){T=e.C},function(e){q=e.o},function(e){E=e.i},function(e){Z=e.i},function(e){X=e.C},function(e){z=e._,R=e.a,U=e.b,P=e.c,V=e.d,N=e.e,Q=e.f},function(e){G=e._},function(e){L=e._},function(e){W=e._},function(e){H=e._},function(e){K=e._},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var $={base:"_base_1xln6_1",detail:"_detail_1xln6_4",img:"_img_1xln6_14",albumType:"_albumType_1xln6_37",shareBtn:"_shareBtn_1xln6_50",detailContent:"_detailContent_1xln6_62",main:"_main_1xln6_67",favoriteContaineer:"_favoriteContaineer_1xln6_72",favorite:"_favorite_1xln6_72",content:"_content_1xln6_94",footerBar:"_footerBar_1xln6_115",bgImg:"_bgImg_1xln6_123",musicContent:"_musicContent_1xln6_132",bg:"_bg_1xln6_123",alumWrap:"_alumWrap_1xln6_149",alumTitle:"_alumTitle_1xln6_161",alumDes:"_alumDes_1xln6_167",des:"_des_1xln6_170",tags:"_tags_1xln6_173",tag:"_tag_1xln6_173",alumCollect:"_alumCollect_1xln6_183",right:"_right_1xln6_199",albumTips:"_albumTips_1xln6_204",albumPrice:"_albumPrice_1xln6_214",alumnContainer:"_alumnContainer_1xln6_219",alumnList:"_alumnList_1xln6_224",shareVip:"_shareVip_1xln6_230",icon:"_icon_1xln6_240",info:"_info_1xln6_245",shareAlumCollect:"_shareAlumCollect_1xln6_261",tagDiscount:"_tagDiscount_1xln6_281",buttonDiscount:"_buttonDiscount_1xln6_294",shareMusicList:"_shareMusicList_1xln6_307",albumShare:"_albumShare_1xln6_312"},ee="_theSong_1plfo_1",ne="_item_1plfo_4",te="_content_1plfo_16",re="_top_1plfo_19",ie="_tags_1plfo_28",ae="_title_1plfo_39",le="_singer_1plfo_46",oe="_exquisiteFlag_1plfo_160",se="_songAlbum_1plfo_165",me=function(e){var n="../images/".concat(e);return{"../images/collection.png":z,"../images/collection_active.png":R,"../images/icon-xin.png":G,"../images/icon_ai.png":U,"../images/icon_album.png":L,"../images/icon_album_active.png":W,"../images/icon_author.png":P,"../images/icon_download.png":V,"../images/icon_exquisite.png":H,"../images/icon_music_active.png":K,"../images/icon_share.png":N,"../images/icon_uploader.png":Q}[n].default},ce=i({name:"TheSong",props:{list:{type:Array,default:function(){return[]}},showPlay:{type:Boolean,default:!0},musicNameClass:{type:String},authorClass:{type:String}},emits:["detail"],setup:function(e,n){var t=n.emit,r=l((function(){return e.list.map((function(e){return"string"==typeof e.paymentType&&(e.paymentType=e.paymentType.split(",")),o({},e)}))}));return function(){return s("div",{class:ee},[r.value.map((function(n){return s("div",{class:ne,onClick:function(){return t("detail",n)}},[s("div",{class:te},[s("div",{class:re},[1===n.exquisiteFlag&&s(Y,{class:oe,src:me("icon_exquisite.png")},null),n.albumNums>0&&s(Y,{class:se,src:me("icon_album_active.png")},null),s("span",{class:[ae,e.musicNameClass,"van-ellipsis"]},[n.musicSheetName]),s("span",{class:[le,e.authorClass,"van-ellipsis"]},[m("-"),n.composer]),s("div",{class:ie},[null==n?void 0:n.subjectNames.split(",").map((function(e){return s("span",null,[e])}))])])])])}))])}}}),ue=function(){};t("default",i({name:"AlbumDetail",props:{onItemClick:{type:Function,default:ue}},setup:function(t){var i=t.onItemClick;localStorage.setItem("behaviorId",S());var z=c(),R=u(),U=_({search:"",relatedNum:6,page:1,rows:200}),P=d(null),V=d([]),N=d(!1),Q=Number(R.query.activityId)||0,G=d(Q),L=d(!1),W=d(0),H=d(0),K=d(null),ee=d("rgba(55, 205, 177, 0)"),ne=d("#fff"),te=d("auto"),re=function(){var t=a(regeneratorRuntime.mark((function t(i){var a,l,s,m,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!N.value){t.next=2;break}return t.abrupt("return");case 2:return N.value=!0,L.value=!1,t.prev=4,t.next=7,M.post("/music/album/detail",{prefix:"TEACHER"===y.platformType?"/api-teacher":"/api-student",data:o({id:i||R.params.id},U)});case 7:l=t.sent,s=l.data,m=s.musicSheetList,c=r(s,e),V.value=n(m.rows),u=null!=c&&c.musicTagNames?null==c||null===(a=c.musicTagNames)||void 0===a?void 0:a.split(","):[],P.value=o(o({},c),{},{musicTagNames:u}),W.value=c.favorite,H.value=c.albumFavoriteCount,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(4),L.value=!0;case 19:N.value=!1;case 20:case"end":return t.stop()}}),t,null,[[4,16]])})));return function(e){return t.apply(this,arguments)}}(),ie=d(!1);f((function(){re(),B(document,"scroll",(function(e){I().y.value>20?(ee.value="rgba(255, 255, 255)",ne.value="black",p({api:"backIconChange",content:{iconStyle:"black"}})):(ee.value="transparent",ne.value="#fff",p({api:"backIconChange",content:{iconStyle:"white"}}))})),D("专辑")}));var ae=function(){var e=a(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ie.value=!0,e.prev=1,e.next=4,M.post("/music/album/favorite/"+n,{prefix:"TEACHER"===y.platformType?"/api-teacher":"/api-student"});case 4:W.value=1===W.value?0:1,H.value+=W.value?1:-1,e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:ie.value=!1;case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(n){return e.apply(this,arguments)}}(),le=function(){var e=a(regeneratorRuntime.mark((function e(){var n,t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=P.value,q.orderObject.orderType="ALBUM",q.orderObject.orderName=n.albumName,q.orderObject.orderDesc=n.albumName,q.orderObject.actualPrice=n.albumPrice,q.orderObject.recomUserId=R.query.recomUserId||0,q.orderObject.activityId=R.query.activityId||0,q.orderObject.orderNo="",q.orderObject.orderList=[o({orderType:"ALBUM",goodsName:n.albumName,recomUserId:R.query.recomUserId||0,price:n.albumPrice},n)],e.next=11,M.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"ALBUM",bizId:n.id}});case 11:t=e.sent,(r=t.data)?J.confirm({title:"提示",message:"您有一个未支付的订单,是否继续支付?",confirmButtonColor:"#269a93",cancelButtonText:"取消订单",confirmButtonText:"继续支付"}).then(a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:q.orderObject.orderNo=r.orderNo,q.orderObject.actualPrice=r.actualPrice,q.orderObject.discountPrice=r.discountPrice,oe();case 4:case"end":return e.stop()}}),e)})))).catch((function(){J.close(),se(r.orderNo)})):oe();case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),oe=function(){var e=P.value;z.push({path:"/orderDetail",query:{orderType:"ALBUM",album:e.id}})},se=function(){var e=a(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,M.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)}}(),me=d(!1),_e=d(""),de=d(0),fe=function(){var e=a(regeneratorRuntime.mark((function e(){var n,t,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=y.user.data.userId,t=R.params.id,r=0,console.log(y.user,n),"TEACHER"!==y.platformType){e.next=9;break}return e.next=7,M.post("/api-teacher/open/vipProfit",{data:{bizId:t,userId:n}});case 7:i=e.sent,pe.value&&(r=i.data.activityId||0,de.value=i.data.discount||0);case 9:_e.value="".concat(location.origin,"/teacher#/shareAblum?id=").concat(t,"&recomUserId=").concat(n,"&activityId=").concat(r,"&userType=").concat(y.platformType),console.log(_e.value,"shareUrl"),me.value=!0;case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pe=l((function(){var e,n=null===(e=P.value)||void 0===e?void 0:e.musicPaymentTypes;return n&&n.includes("VIP")})),ge=l((function(){return V.value.length>4?V.value.slice(0,4):V.value}));return function(){var e,n,t,r,a,l,c,u,_,d,f,p,M,J,B,I;return s("div",{class:$.detail},[s("div",{ref:K},[s(k,{background:ee.value,border:!1,color:ne.value,backIconColor:"white",onHeaderBack:function(){g((function(){var e=h(K).height;te.value=e}))}},{right:function(){return s("div",{class:$.shareBtn,style:{color:ne.value},onClick:fe},[s(Y,{src:"black"===ne.value?Z:E},null),m("分享")])}})]),s("img",{class:$.bgImg,src:null===(e=P.value)||void 0===e?void 0:e.albumCoverUrl},null),s("div",{class:$.musicContent},null),s("div",{class:$.bg},[s("div",{class:$.alumWrap},[s("div",{class:$.img},["CHARGE"===(null===(n=P.value)||void 0===n?void 0:n.paymentType)&&s("span",{class:$.albumType},[m("付费")]),s(Y,{class:$.image,width:"100%",height:"100%",fit:"cover",src:null===(t=P.value)||void 0===t?void 0:t.albumCoverUrl},null)]),s("div",{class:$.alumDes},[s("div",{class:[$.alumTitle,"van-ellipsis"]},[null===(r=P.value)||void 0===r?void 0:r.albumName]),s("div",{class:$.tags},[null===(a=P.value)||void 0===a||null===(l=a.musicTagNames)||void 0===l?void 0:l.map((function(e){return s("span",{class:$.tag},[e])}))]),s("div",{class:[$.des,"van-multi-ellipsis--l3"],style:{height:"48px",lineHeight:"16px"}},[null===(c=P.value)||void 0===c?void 0:c.albumDesc])])]),s("div",{class:$.alumCollect},[s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA0xJREFUSEvtlk1sVGUUhp/3zl9J1IKIphpcGDUmA1RbYWcsiTEggjPFMWJM3BhwZUyMP5DY+agbURMJO0hYGdlMpTVGWLipuINMI9OS4AaCC9NYaOpPrG3vvcfcO0NDyjg/bY0b7+5+Ofc857znfOdc8S881ueSrAuykOgFesB6QVlgSCvlWe/+FBvvz+KpN3ZskXO2AB11fPttAa3g0gRswsIo4h4ggmwBZRoEPg82C+pEhA2Bttc9hoVPx84tyoBNYE2cMwEqI5XBH2N2pkLm7o8QbzUE2t7BJwiD80CyfvQ2hzSOqYwxBkGZVGJcJTe/1N5yxc+aA3MD+5BO1T7+C6gAY3Hk8sqsv29CJw4stNID7QMVbtPpDy+04ryeTftASzypkYHyfw60nccypCbXkkh34gedpIKA6XRFo86/NbgVZWj9h7oItZEwEbX57XdtwbugM25yVYAGYs/AcwjvNnmDcA5PU2QuV1QqBasCjJzY8x90k7ANoN8xm8FP/sqfzGjURZ1c91mRpMtpnP+BsWp266Rp4x7aTncXHXYQ6AfuBa7UytDTeJYuA2iF9zrx13wPtrlurRtti+VkaP3uC8xeqcJ0EcIfwHsG7IHq0ZL1FE+OzHQXKa6zEO5eHN4tSGp7jtxJYvYGWAr0Ld3skHOh7Xp/HemOS2BdYBbvQ8sfXA+ZT4CXwdaARRf3CuiRakGbz1LLu2hXjlftvdc1Ujx5U1bLu1Ng+0AmK7g78O276r/HP93cloBRg0yCCXFCpw8fiNmFQgI/WwbrBrshy7lPkb1dQ51DGia0rYhaLVrLsKqUOwf2VCQd6CTYedCLwLO1Gh6V5YrXEA/GCzaZ7VHppXgOWr74OfBqVSJt14gbbTZlrOAexrdob66tY1thfq5Pli/OAWnQcQ27NxZ1zxXfRRyJ30Pt0lfuTDNgHNsLg5vxgmNg0b+QMHzEEMnMmyodmoqAPwKPIq4yq8d11v0Wb4V8MQLsAHxMGzTiZloBLga8291DR3zxf1LJ/XHzXJYfeAf0ce0g6syzYNuArbWzIQ0fLrQDa2Qrc87jon1Ty2aJrS7h06ev3fVVA8a67z+eYurnqFNfAx4CfgF9SZJBldz0asEiP38DJuSfuh82O50AAAAASUVORK5CYII="},null),s("span",null,[m("共"),null===(u=P.value)||void 0===u?void 0:u.musicSheetCount,m("首曲目")]),s("div",{class:$.right,onClick:function(){var e;return ae(null===(e=P.value)||void 0===e?void 0:e.id)}},[s("img",{src:W.value?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAAXNSR0IArs4c6QAAAR1QTFRFAAAA//////+A//8k/+Mc/+gX/+oV/+sU/+4R/+MO/+QN/+YN/+cM/+gM/+kL/+sK/+QJ/+YI/+cI/+gI/+YG/+IG/+UF/+UF/+YF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Waaluw4ZKtiYoOBLa5UWUdX6hYIPNbKs6sOU6W7cIFcbGrszmL6GZboKjDw5Ui4Pyo88GQHaZeqHnnJ5FuqBXpnS0KYiXIIJmYbgrSHPjDfwTabbQIs8awE6ZFo7Dtmd8mhnFsbXy3ISGKqUJ5VDwEkVPARe+eSB7xXwUDNWJICYPIgBiRWaVZOCXK2WVJuDVI3miAD9QS0h2A9ENE8H0K4ltAMdmm/lIIyH5So8DoMrtcABoFmumoEDWqhkABJylYCBEtnEgQq5qADisqsF6uWiHqiVXQg4IxdngJDsjBy0yUUb5Aw5SMI1ubgGSTlJwxW5uAJpOclCXC7ikJEDA7goFxcBQ3alQLNctAClsisDzsnFOaBMdiGgQTMCO85ff/Dg+vkdAc1oAEKyqwSisgQPdqYoSHUeDMoSBSplF8hAXFJgz6NR5hl9tCcg6TJM+uXgMySje+8OUzDS2ztCwfCdulOj8EFOjvNX+mmkWnnVkadp/johJ8Yzpk29iJRpVlnkxRTTnsmZ0fIDcq+jYS0Qjr7Jwc8Lhha1ZfMyOQpu26h/7A/SsS/F1RxolQAAAABJRU5ErkJggg=="},null),s("span",null,[H.value,m("人收藏")])])]),"CHARGE"===(null===(_=P.value)||void 0===_?void 0:_.paymentType)&&"PAID"!==(null===(d=P.value)||void 0===d?void 0:d.orderStatus)&&s("div",{class:$.albumTips},[s("span",null,[m("此专辑为付费专辑,购买即可自由练习该专辑")]),s("span",{class:$.albumPrice},[m("¥"),b(null===(f=P.value)||void 0===f?void 0:f.albumPrice)])])]),s("div",{class:$.alumnContainer},[s("div",{class:$.alumnList},[s(F,{title:"曲目列表",isMore:!1},null),s(j,{list:V.value,onDetail:function(e){if(i!==ue&&i)i(e);else{var n=location.origin+location.pathname+"#/music-detail?id="+e.id+"&albumId="+R.params.id;v(n,(function(){z.push({path:"/music-detail",query:{id:e.id,albumId:R.params.id}})}))}}},null),V.value&&V.value.length<=0&&s(x,{btnStatus:!1,tips:"暂无曲目"},null)]),(null===(p=P.value)||void 0===p?void 0:p.relatedMusicAlbum)&&(null===(M=P.value)||void 0===M?void 0:M.relatedMusicAlbum.length)>0&&s(A,null,[s(F,{title:"相关专辑",onMore:function(){z.push({path:"/music-album"})}},null),s(O,{list:null===(J=P.value)||void 0===J?void 0:J.relatedMusicAlbum,onGoto:function(e){z.push({name:"music-album-detail",params:{id:e.id}}).then((function(){re(e.id),window.scrollTo(0,0)}))}},null)])]),"CHARGE"===(null===(B=P.value)||void 0===B?void 0:B.paymentType)&&"PAID"!==(null===(I=P.value)||void 0===I?void 0:I.orderStatus)&&s(T,{position:"bottom",background:"white"},{default:function(){return[s("div",{class:["btnGroup",pe.value&&!y.user.data.isVip&&"btnMore"],style:{paddingTop:"12px"}},[s(C,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:le},{default:function(){return[m("购买专辑")]}}),pe.value&&!y.user.data.isVip&&s(C,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:function(){z.push({path:"/memberCenter",query:o({},R.query)})}},{default:function(){return[G.value>0&&s("div",{class:[$.buttonDiscount]},[m("专属优惠")]),m("开通会员")]}})])]}}),s(w,{show:me.value,"onUpdate:show":function(e){return me.value=e},style:{background:"transparent"},class:$.albumShare},{default:function(){return[s(X,{teacherId:y.user.data.userId,shareUrl:_e.value,shareType:"album",shareLength:1},{default:function(){var e,n,t,r;return[s("div",{class:$.shareVip},[1===de.value&&s("div",{class:$.tagDiscount},[m("专属优惠")]),s("img",{class:$.icon,crossorigin:"anonymous",src:(null===(e=P.value)||void 0===e?void 0:e.albumCoverUrl)+"@base@tag=imgScale&h=144&w=144&m=1?t=".concat(+new Date)},null),s("div",{class:$.info},[s("h4",{class:"van-multi-ellipsis--l2"},[null===(n=P.value)||void 0===n?void 0:n.albumName]),s("p",{class:["van-multi-ellipsis--l3"],style:{lineHeight:"16px",margin:"5px 0 10px 0"}},[null===(t=P.value)||void 0===t?void 0:t.albumDesc]),s("div",{class:$.shareAlumCollect},[s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAb1BMVEUAAABG2MNG2MFF18BF2MFG18BF2MFA4MRD2cBF2MJF2cJF18FE2MFF2MFF2MFE2MFF2MFE179A3MVF2MFF18JF2MJF18JF2MFG2cJF2MFG179F2MJF18FF2MFF18JE1sJH2sNF18FF2MJE179F18GInqdFAAAAJHRSTlMAMo9Z+E1lBhaZDfvNyfDSpzUR2biglXUs40Un3sKKSiLmv0D+yki/AAAA3klEQVQoz7XOWXKDMBRE0YYQSUhinsFTkt7/GhMBVihbVf5yf95TD4TwItFnefeUpesJ3cxDT/dOJjl5h0Wk1nebikrGHiOz9ywVkVzTP3643t/7M1Y+BzB6jVItVRREVc2fbiqE15Xm8OU4V4uSLx70JtSXJrc2jLqgWxhLsuimHeVNH1EbtkD95bDuEprmgCMptntoy20eFZkCsMxxIc9DeUSc/1S0ZIyJBYCO/PF4y+lW1EjWbwzkFX7jN2lKBTQ8aaClqXGYGjW2m1OfkSVCa7cfqCDKoUmmuA7RL2POHWJJLgwaAAAAAElFTkSuQmCC"},null),s("span",null,[m("共"),s("span",{style:"color: var(--van-primary-color);"},[null===(r=P.value)||void 0===r?void 0:r.musicSheetCount]),m("首曲目")])])])]),s("div",{class:[$.shareVip,$.shareMusicList]},[s(ce,{list:ge.value},null)])]}})]}})])}}}))}}}))}();
|