1 |
- !function(){var e=["musicSheetList"];function t(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function i(e,t,r,n,i,a,l){try{var o=e[a](l),m=o.value}catch(s){return void r(s)}o.done?t(m):Promise.resolve(m).then(n,i)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var l=e.apply(t,r);function o(e){i(l,n,a,o,m,"next",e)}function m(e){i(l,n,a,o,m,"throw",e)}o(void 0)}))}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=document.createElement("style");s.innerHTML='._base_lm7xy_1>div{background:url(./assets/header-bg.d862c125.png) no-repeat top center}._detail_lm7xy_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_lm7xy_1 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._img_lm7xy_14{width:2.50667rem;height:2.50667rem;margin-right:.48rem;position:relative}._img_lm7xy_14>img,._img_lm7xy_14>div{position:absolute;border-radius:.26667rem;overflow:hidden}._img_lm7xy_14:before{content:"";width:2.50667rem;height:2.50667rem;border-radius:50%;background:linear-gradient(180deg,#434343 0%,#666666 50%,#434343 100%);position:absolute;right:-.24rem;top:0}._img_lm7xy_14 ._albumType_lm7xy_36{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_lm7xy_49{display:flex;align-items:flex-start;color:#fff;font-size:.37333rem;line-height:.53333rem!important}._shareBtn_lm7xy_49 .van-image{width:.48rem;height:.48rem;margin-right:.16rem}._detailContent_lm7xy_61{background-color:#fff;padding:0 .37333rem;border-radius:.45333rem .45333rem 0 0}._detailContent_lm7xy_61 ._main_lm7xy_66{padding-top:.64rem;padding-bottom:.53333rem;display:flex}._detailContent_lm7xy_61 ._favoriteContaineer_lm7xy_71{border:none;color:var(--music-list-item-mate-color);height:auto}._detailContent_lm7xy_61 ._favoriteContaineer_lm7xy_71 .van-button__text{display:flex;align-items:center}._detailContent_lm7xy_61 ._favoriteContaineer_lm7xy_71 .van-button__text span{line-height:1;padding-top:.05333rem}._detailContent_lm7xy_61 ._favoriteContaineer_lm7xy_71>span{display:inline-block;line-height:.42667rem;margin-top:.02667rem}._detailContent_lm7xy_61 ._favorite_lm7xy_71{font-size:.42667rem;margin-right:.13333rem}._detailContent_lm7xy_61 ._content_lm7xy_93{flex:1;display:inline-grid}._detailContent_lm7xy_61 ._content_lm7xy_93>h4{color:var(--music-list-item-title-color);font-size:.37333rem;height:.53333rem;line-height:.53333rem;margin-top:.18667rem}._detailContent_lm7xy_61 ._content_lm7xy_93>p{margin-top:.16rem;font-size:12PX;color:var(--music-list-item-desc-color);line-height:17PX;height:51PX}._footerBar_lm7xy_114{padding:.32rem 0;display:flex;justify-content:space-between}._footerBar_lm7xy_114>footer{margin-top:0}._bgImg_lm7xy_122{position:absolute;left:0;top:0;width:100%;height:7.06667rem;-o-object-fit:cover;object-fit:cover;filter:blur(.26667rem);-webkit-backdrop-filter:blur(.58667rem);backdrop-filter:blur(.58667rem)}._musicContent_lm7xy_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_lm7xy_122{position:relative;height:100%;padding:.42667rem .42667rem .32rem;z-index:11}._alumWrap_lm7xy_149{display:flex;align-items:center}._alumWrap_lm7xy_149 ._img_lm7xy_14{width:2.61333rem;height:2.61333rem;flex-shrink:0;border-radius:.16rem;margin-right:.69333rem}._alumWrap_lm7xy_149 ._alumTitle_lm7xy_160{font-size:.42667rem;font-weight:600;color:#fff;padding-bottom:.21333rem}._alumWrap_lm7xy_149 ._alumDes_lm7xy_166{width:calc(100% - 3.44rem)}._alumWrap_lm7xy_149 ._alumDes_lm7xy_166 ._des_lm7xy_169{color:#999}._tags_lm7xy_172{margin:.32rem -.05333rem .16rem}._tags_lm7xy_172 ._tag_lm7xy_172{margin:0 .05333rem;padding:.05333rem .16rem;color:#000;border-radius:.53333rem;color:#fff;border:.02667rem solid #FFFFFF;font-size:.32rem}._alumCollect_lm7xy_184{display:flex;align-items:center;justify-content:space-between;padding-top:.53333rem;color:#999;font-size:.37333rem}._alumCollect_lm7xy_184 ._alumCollectItem_lm7xy_192{display:flex;align-items:center;justify-content:center;width:32%;height:.96rem;font-size:.4rem;color:#fff;background-color:rgba(255,255,255,.5);border-radius:2.64rem;font-weight:600}._alumCollect_lm7xy_184 ._alumCollectItem_lm7xy_192 img{width:.53333rem;height:.53333rem;margin-right:.16rem}._albumTips_lm7xy_209{background:url(./assets/charge_bg.82460a86.png) no-repeat center;background-size:contain;padding:.26667rem;margin-top:.32rem;font-size:.34667rem;font-weight:500;color:#5e3314;line-height:.48rem;display:flex;justify-content:space-between;align-items:center}._albumTips_lm7xy_209 ._albumPrice_lm7xy_222{font-size:.37333rem;font-weight:700;color:#ffc76c;background:#262626;border-radius:.34667rem;padding:.10667rem .18667rem}._alumnContainer_lm7xy_230{position:relative;padding:0;z-index:12}._alumnContainer_lm7xy_230 ._alumnList_lm7xy_235{padding:.42667rem .53333rem 0 .32rem;border-radius:.48rem;background-color:#fff;margin-bottom:.42667rem}._alumnContainer_lm7xy_230 ._alumnTitle_lm7xy_241{display:flex;align-items:center;font-size:.42667rem;font-weight:600;color:#2f384e;line-height:.58667rem}._alumnContainer_lm7xy_230 ._alumnTitle_lm7xy_241 ._iconMenu_lm7xy_249{width:.58667rem;height:.64rem;margin-right:.21333rem}._alumnContainer_lm7xy_230 ._alumnTitle_lm7xy_241 span{font-size:.32rem;color:#808593;padding-left:.08rem}._shareVip_lm7xy_259{position:relative;margin-top:.26667rem;display:flex;flex:1;align-items:center;padding:.18667rem;background:#ffffff;border-radius:.26667rem}._shareVip_lm7xy_259 ._icon_lm7xy_249{width:1.92rem;height:1.92rem;border-radius:.26667rem}._shareVip_lm7xy_259 ._info_lm7xy_274{display:flex;flex-direction:column;margin-left:.16rem;flex:1;word-break:break-all}._shareVip_lm7xy_259 ._info_lm7xy_274>h4{color:var(--music-list-item-title-color);font-size:.42667rem;font-weight:600}._shareVip_lm7xy_259 ._info_lm7xy_274>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._shareVip_lm7xy_259 ._shareAlumCollect_lm7xy_290{display:flex;align-items:center;color:#999;font-size:.37333rem}._shareVip_lm7xy_259 ._shareAlumCollect_lm7xy_290 img{display:inline-block;width:.37333rem;height:.37333rem;margin-right:.16rem}._shareVip_lm7xy_259 ._shareAlumCollect_lm7xy_290 span{padding-top:.02667rem}._shareVip_lm7xy_259 ._shareAlumCollect_lm7xy_290 ._right_lm7xy_305{display:flex;align-items:center;margin-left:.69333rem}._tagDiscount_lm7xy_310{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_lm7xy_323{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_lm7xy_336{margin-top:.32rem;box-shadow:0 .05333rem .26667rem rgba(0,0,0,.05);padding:0 .26667rem}._albumShare_lm7xy_341 .btnGroup .van-button{border:none}._albumShare_lm7xy_341 .shareTeacherCustom{background:linear-gradient(270deg,#BAFFE7 0%,#C0DCFF 100%)}._albumShare_lm7xy_341 .shareTeacherCustom>div:first-child{display:flex;align-items:center;justify-content:center}._albumShare_lm7xy_341 .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(s),System.register(["./index-legacy.fba2875c.js","./index-legacy.e7460ea1.js","./index-legacy.d92f7da7.js","./index-legacy.33680739.js","./music-legacy.bbe2d538.js","./icon-share-legacy.7f39b322.js","./index-legacy.85fd8338.js","./hooks-legacy.148eb332.js","./index-legacy.a026685b.js","./orderStatus-legacy.9b3fdd6c.js","./index-legacy.31c636a4.js","./icon-xin-legacy.98015baf.js","./index-legacy.0e744c22.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.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(r){"use strict";var i,l,m,s,c,u,_,d,f,p,g,h,y,b,v,x,A,w,C,k,F,S,j,T,I,O,B,D,z,M,R,E,N,P,V,U,q,L,Y,J,X,W,H,G,Z;return{setters:[function(e){i=e.d,l=e.V,m=e.j,s=e.z,c=e.P,u=e.O,_=e.Q,d=e.S,f=e.U,p=e.by,g=e.be,h=e.C,y=e.g,b=e.B,v=e.aR,x=e.w,A=e.D,w=e.n},function(e){C=e.C},function(e){k=e.I},function(e){F=e.u,S=e.a},function(e){j=e.g},function(e){T=e.i,I=e.a,O=e.o},function(e){B=e._,D=e.a,z=e.b,M=e.c,R=e.d,E=e.e,N=e.f,P=e.g,V=e.h,U=e.i,q=e.j,L=e.k,Y=e.S},function(e){J=e.u},function(e){X=e.C},function(e){W=e.o},function(e){H=e.C},function(e){G=e._},function(e){Z=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var K={base:"_base_lm7xy_1",detail:"_detail_lm7xy_4",img:"_img_lm7xy_14",albumType:"_albumType_lm7xy_36",shareBtn:"_shareBtn_lm7xy_49",detailContent:"_detailContent_lm7xy_61",main:"_main_lm7xy_66",favoriteContaineer:"_favoriteContaineer_lm7xy_71",favorite:"_favorite_lm7xy_71",content:"_content_lm7xy_93",footerBar:"_footerBar_lm7xy_114",bgImg:"_bgImg_lm7xy_122",musicContent:"_musicContent_lm7xy_132",bg:"_bg_lm7xy_122",alumWrap:"_alumWrap_lm7xy_149",alumTitle:"_alumTitle_lm7xy_160",alumDes:"_alumDes_lm7xy_166",des:"_des_lm7xy_169",tags:"_tags_lm7xy_172",tag:"_tag_lm7xy_172",alumCollect:"_alumCollect_lm7xy_184",alumCollectItem:"_alumCollectItem_lm7xy_192",albumTips:"_albumTips_lm7xy_209",albumPrice:"_albumPrice_lm7xy_222",alumnContainer:"_alumnContainer_lm7xy_230",alumnList:"_alumnList_lm7xy_235",alumnTitle:"_alumnTitle_lm7xy_241",iconMenu:"_iconMenu_lm7xy_249",shareVip:"_shareVip_lm7xy_259",icon:"_icon_lm7xy_249",info:"_info_lm7xy_274",shareAlumCollect:"_shareAlumCollect_lm7xy_290",right:"_right_lm7xy_305",tagDiscount:"_tagDiscount_lm7xy_310",buttonDiscount:"_buttonDiscount_lm7xy_323",shareMusicList:"_shareMusicList_lm7xy_336",albumShare:"_albumShare_lm7xy_341"},Q="_theSong_1plfo_1",$="_item_1plfo_4",ee="_content_1plfo_16",te="_top_1plfo_19",re="_tags_1plfo_28",ne="_title_1plfo_39",ie="_singer_1plfo_46",ae="_exquisiteFlag_1plfo_160",le="_songAlbum_1plfo_165",oe=function(e){var t="../images/".concat(e);return{"../images/collection.png":B,"../images/collection_active.png":D,"../images/icon-play.png":z,"../images/icon-xin.png":G,"../images/icon_ai.png":M,"../images/icon_album.png":R,"../images/icon_album_active.png":E,"../images/icon_author.png":N,"../images/icon_download.png":P,"../images/icon_exquisite.png":V,"../images/icon_music_active.png":U,"../images/icon_share.png":q,"../images/icon_uploader.png":L}[t].default},me=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,t){var r=t.emit,n=l((function(){return e.list.map((function(e){return"string"==typeof e.paymentType&&(e.paymentType=e.paymentType.split(",")),o({},e)}))}));return function(){return m("div",{class:Q},[n.value.map((function(t){var n;return m("div",{class:$,onClick:function(){return r("detail",t)}},[m("div",{class:ee},[m("div",{class:te},[1===t.exquisiteFlag&&m(k,{class:ae,src:oe("icon_exquisite.png")},null),t.albumNums>0&&m(k,{class:le,src:oe("icon_album_active.png")},null),m("span",{class:[ne,e.musicNameClass,"van-ellipsis"]},[t.musicSheetName]),m("span",{class:[ie,e.authorClass,"van-ellipsis"]},[s("-"),t.composer]),m("div",{class:re},[null==t||null===(n=t.subjectNames)||void 0===n?void 0:n.split(",").map((function(e){return m("span",null,[e])}))])])])])}))])}}}),se=function(){};r("default",i({name:"AlbumDetail",props:{onItemClick:{type:Function,default:se}},setup:function(r){var i=r.onItemClick;localStorage.setItem("behaviorId",j());var B=c(),D=u(),z=_({search:"",relatedNum:6,page:1,rows:200}),M=d(null),R=d([]),E=d(!1),N=Number(D.query.activityId)||0,P=d(N),V=d(!1),U=d(0),q=d(0),L=d("rgba(55, 205, 177, 0)"),G=d("#fff"),Q=function(){var r=a(regeneratorRuntime.mark((function r(i){var a,l,m,s,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!E.value){r.next=2;break}return r.abrupt("return");case 2:return E.value=!0,V.value=!1,r.prev=4,r.next=7,x.post("/music/album/detail",{prefix:"TEACHER"===y.platformType?"/api-teacher":"/api-student",data:o({id:i||D.params.id},z)});case 7:l=r.sent,m=l.data,s=m.musicSheetList,c=n(m,e),R.value=t(s.rows),u=null!=c&&c.musicTagNames?null==c||null===(a=c.musicTagNames)||void 0===a?void 0:a.split(","):[],M.value=o(o({},c),{},{musicTagNames:u}),U.value=c.favorite,q.value=c.albumFavoriteCount,r.next=19;break;case 16:r.prev=16,r.t0=r.catch(4),V.value=!0;case 19:E.value=!1;case 20:case"end":return r.stop()}}),r,null,[[4,16]])})));return function(e){return r.apply(this,arguments)}}(),$=d(!1);f((function(){Q(),F(document,"scroll",(function(e){S().y.value>20?(L.value="rgba(255, 255, 255)",G.value="black",w({api:"backIconChange",content:{iconStyle:"black"}})):(L.value="transparent",G.value="#fff",w({api:"backIconChange",content:{iconStyle:"white"}}))})),J("专辑")}));var ee=function(){var e=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $.value=!0,e.prev=1,e.next=4,x.post("/music/album/favorite/"+t,{prefix:"TEACHER"===y.platformType?"/api-teacher":"/api-student"});case 4:U.value=1===U.value?0:1,q.value+=U.value?1:-1,e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:$.value=!1;case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),te=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=M.value,W.orderObject.orderType="ALBUM",W.orderObject.orderName=t.albumName,W.orderObject.orderDesc=t.albumName,W.orderObject.actualPrice=t.albumPrice,W.orderObject.recomUserId=D.query.recomUserId||0,W.orderObject.activityId=D.query.activityId||0,W.orderObject.orderNo="",W.orderObject.orderList=[o({orderType:"ALBUM",goodsName:t.albumName,recomUserId:D.query.recomUserId||0,price:t.albumPrice},t)],e.next=11,x.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"ALBUM",bizId:t.id}});case 11:r=e.sent,(n=r.data)?A.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:W.orderObject.orderNo=n.orderNo,W.orderObject.actualPrice=n.actualPrice,W.orderObject.discountPrice=n.discountPrice,re();case 4:case"end":return e.stop()}}),e)})))).catch((function(){A.close(),ne(n.orderNo)})):re();case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),re=function(){var e=M.value;B.push({path:"/orderDetail",query:{orderType:"ALBUM",album:e.id}})},ne=function(){var e=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,x.post("/api-student/userOrder/orderCancel/v2",{data:{orderNo:t}});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(t){return e.apply(this,arguments)}}(),ie=d(!1),ae=d(""),le=d(0),oe=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=y.user.data.userId,r=D.params.id,n=0,console.log(y.user,t),"TEACHER"!==y.platformType){e.next=9;break}return e.next=7,x.post("/api-teacher/open/vipProfit",{data:{bizId:r,userId:t}});case 7:i=e.sent,ce.value&&(n=i.data.activityId||0,le.value=i.data.discount||0);case 9:ae.value="".concat(location.origin,"/teacher#/shareAblum?id=").concat(r,"&recomUserId=").concat(t,"&activityId=").concat(n,"&userType=").concat(y.platformType),ie.value=!0;case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ce=l((function(){var e,t=null===(e=M.value)||void 0===e?void 0:e.musicPaymentTypes;return t&&t.includes("VIP")})),ue=l((function(){return R.value.length>2?R.value.slice(0,2):R.value}));return function(){var e,t,r,n,a,l,c,u,_,d,f,x;return m("div",{class:K.detail},[m(Z,{position:"top"},{default:function(){return[m(C,{background:L.value,border:!1,isFixed:!1,color:G.value,backIconColor:"white"},null)]}}),m("img",{class:K.bgImg,src:null===(e=M.value)||void 0===e?void 0:e.albumCoverUrl},null),m("div",{class:K.musicContent},null),m("div",{class:K.bg},[m("div",{class:K.alumWrap},[m("div",{class:K.img},[m(k,{class:K.image,width:"100%",height:"100%",fit:"cover",src:null===(t=M.value)||void 0===t?void 0:t.albumCoverUrl},null)]),m("div",{class:K.alumDes},[m("div",{class:[K.alumTitle,"van-ellipsis"]},[null===(r=M.value)||void 0===r?void 0:r.albumName]),m("div",{class:[K.des,"van-multi-ellipsis--l2"],style:{height:"32px",lineHeight:"16px"}},[null===(n=M.value)||void 0===n?void 0:n.albumDesc]),m("div",{class:K.tags},[null===(a=M.value)||void 0===a||null===(l=a.musicTagNames)||void 0===l?void 0:l.map((function(e){return m("span",{class:K.tag},[e])}))])])]),m("div",{class:K.alumCollect},[m("div",{class:K.alumCollectItem,onClick:oe},[m(k,{src:T},null),m("span",null,[s("分享")])]),m("div",{class:K.alumCollectItem,onClick:function(){return B.push({path:"/music-album"})}},[m("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABPxJREFUWEfNmVmsnVMYhp8X4UJMISFNiCklWqKRKGq4qIS02iohaItIzFyoIg4XvaCNoW6ooRKhVYRQRU3hghDpBTEHQRpNhISY4oLgk7f51s46/9l7//sMTc66Ovv/1/rW+3/D+35rHTGOERE7AocDhwFTgN3S3B/A98CXwBeS/h3rNhrtwojYFTgLOAc4GdijxcZvwNvAM8Bzkv4czZ4DA4yIfYClwNXA7qPZpJr7O7AauEfST4PYaAUYEZ5zBXA7sFcXo1uBj4EtgL3lYa8eCBwF7N9lzS/ALcCDkqIf0L4A02vrgNMbRj4HHs2QfdNvg4g4JFPiYuCIxtxXgAv7ebMnwDT8OnBwZfQr4CZgY9uXN0FnJBYAdwBTq/f+wNMkdf3QrgAT3DvAfmnovzS8XNLfg+ROrzkRsTOwPD90h5z3A3BiN5AjAGZYN1eec9WdJ+mlllDa1qLMuZ+Bz4DNkv7pti4izgCeAswKHt8CM5vhHgYww/BylXMGZ/e/2+a1iDC4xxvzDHRTVu1HXcI+C3itAvkqMKdOnybAK4H7q7AuaPNc2bQHwPLaKWLwSyUZdGekJzcCJdxXSXqgTOgAzNC6CAqVrJQ01Oa5CqBtnQ/MSFU5Hjiosd5hnC/J4a9BrgBuzgemoKkl1DXAepKBHjkBBWGwtwILgbKXuXJWDTIL55OqujvO2bYo5cvaWRRioaTnB/Ve27yImAM8UcmiPXlsHe6IOBPYkLasOFMsiwXgEmBtvjQJTx8tzw0Acjpg6iravVbSRY0U+bQicxP4ugLwBWBeTr5R0l1tGzZyaCfgFODofP4h8FaTYtKTpivv68KZIckyuW1ExA3AnfnzRUnzlS2TK6t82aG9WL0b6IgwVTzSUAdPdR5f0qSoiHg2pc9zHpNkCSwALYtf50/n6t4GOA2waz22SjpgUO8luDeBXXqs+QuYXYOMCBfOBznfjtm37hcj4ruqwZhugO7t/FUemySZ4VtHRDispouiq78CT+fCc4E98297clod7ohwkRQKssR1hCAinAJzc+3ZBngNcG8+WC3Jv4vLi3z59/q6cCJiNvBGTjW4YyR5Y+eSG4z3K5CnSrKni11XtDnT4zJJD1fv7sue04+uNUATpDnQY4Uk92nFUC1fiyWtr95dD9ydv9dIurx2e0Q85M3z2TJJq6q1Xuf1HkOSVlbv3HcWgRhqA1iDXyVp2QQB7PfhIwD2C/GlwJoE9aSkCyqA4wlxkUWbs91OVx0RI0Lcs0gi4gSgJPAWSR1tHU+R1KnQ/LtbkfSkmeTIH81HaciFUCjCxWAOHBXN9APnd91oxmfbnkQdET57FEnaIMke74zREnWL90YSdaLuKXUR4ZOZveYPca7Mk+QmtAY5kNQN4L2RUpcA+zYLDS9agk6S5PZowkZ28z2bBZ8LerZbEeEc9DnFIfAwyEVNT44Hbd92K73Yt2FNzXZFl6bC4XbPeFtdOGMB2dqwJkBfbfRt+ROkzw/FkwWPbxXeyyi41Romi22gI6K95U+QrYemDLdla3EWTrf9h8liS+W6OWk/NCVAM/xAx86s7uuy0S08WbAMBDApqj52+ipkbs9jZxXqgQ/uSeYzs1V3mrifGyZf3TzY5eDuq4/j+h7ci6FJffXRADk5L48qkA7Z9rx+81XHkjFdv1UgJ+8FZkNvJ+cVcLMCJ+0leg+q2O7/hvgfqWOr87cr4AMAAAAASUVORK5CYII="},null),m("span",null,[s("相关专辑")])]),m("div",{class:K.alumCollectItem,onClick:function(){var e;return ee(null===(e=M.value)||void 0===e?void 0:e.id)}},[m("img",{src:U.value?I:O},null),m("span",null,[q.value])])]),"CHARGE"===(null===(c=M.value)||void 0===c?void 0:c.paymentType)&&"PAID"!==(null===(u=M.value)||void 0===u?void 0:u.orderStatus)&&m("div",{class:K.albumTips},[m("span",null,[s("开通会员或购买专辑,即可自由练习该专辑")]),m("span",{class:K.albumPrice},[s("¥"),p(null===(_=M.value)||void 0===_?void 0:_.albumPrice)])])]),m("div",{class:K.alumnContainer},[m("div",{class:K.alumnList},[m("div",{class:K.alumnTitle},[m("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAwCAYAAABqkJjhAAAAAXNSR0IArs4c6QAAAhpJREFUaEPtmr9LHEEUxz8vd5ImIY2V2kgWTGWVv0GQwIXbykIEC00RJSn8A/wDUkS0MSkCksLqREEF/wYrK4ULNkmqNEELJVlfmL3c4a+7nb3Z9W70pt333nz2u2/eDPNWaDE0CIdAXwOvFEYF+hUet/JJ+0zgXOGXwAGwDbIp1cr3ZnHktgc6UhogKiwC0wrFtBAu9gJ/gS8UokU52vp5PdYNYA3CkqJfgacuE2fgeyLIpFQrW5djXQHW5+G8oh8RHmUwoXsI5UKQ9/KtslwP1gCOlVXd6BrYOqGBFinXlY6BTc5qVDjsgjRo9lVOpBC9MDldAw7KnxRm3L9hfhEEPkt1Y1b+l67ju64GaV+tVj1kWDQov1VYSRugE/YCcwZ4R2G8EwBp5xTYlYugbHaVwbTOHbL/YRQ+y3q7zetlzDZuFFarCfqK8G4CJsaQZ0+sXJKM9PcprO/B0jr8MTty8rAHXphE3oTJEduw0NUKfDCngeRhD7y/lpmy17FipV9OJdMC9xjYu5TwbtFZZVj+RvY5nD+L1Qw9YCuZHIx6CjuIZ+Vqr7BDWWvnzNCM3h44g40jzZnBHTiDs0SaM8MDBPYuJbxbdFZFJ38j+yqRP4vVDD1gK5kcjHoKO4hn5erlRYp3V1V+XQZ6eN0a9+L8udA2S9OrlkEM7FtTpqayR22vesX2qrHYgPapdduA9qk5fnlD78bfD/4Bah8zqvt1tfcAAAAASUVORK5CYII=",class:K.iconMenu},null),s("曲目列表")," ",m("span",null,[s("("),(null===(d=M.value)||void 0===d?void 0:d.musicSheetCount)||0,s(")")])]),m(Y,{showNumber:!0,list:R.value,onDetail:function(e){if(i!==se&&i)i(e);else{var t=location.origin+location.pathname+"#/music-detail?id="+e.id+"&albumId="+D.params.id;g(t,(function(){B.push({path:"/music-detail",query:{id:e.id,albumId:D.params.id}})}))}}},null),R.value&&R.value.length<=0&&m(h,{btnStatus:!1,tips:"暂无曲目"},null)])]),"CHARGE"===(null===(f=M.value)||void 0===f?void 0:f.paymentType)&&"PAID"!==(null===(x=M.value)||void 0===x?void 0:x.orderStatus)&&m(X,{position:"bottom",background:"white"},{default:function(){return[m("div",{class:["btnGroup",ce.value&&!y.user.data.isVip&&"btnMore"],style:{paddingTop:"12px"}},[m(b,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:te,color:"linear-gradient(270deg, #FF204B 0%, #FE5B71 100%)"},{default:function(){return[s("购买专辑")]}}),ce.value&&!y.user.data.isVip&&m(b,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},color:"linear-gradient(270deg, #FF204B 0%, #FE5B71 100%)",onClick:function(){B.push({path:"/memberCenter",query:o({},D.query)})}},{default:function(){return[P.value>0&&m("div",{class:[K.buttonDiscount]},[s("专属优惠")]),s("开通会员")]}})])]}}),m(v,{show:ie.value,"onUpdate:show":function(e){return ie.value=e},style:{background:"transparent"},class:K.albumShare},{default:function(){return[m(H,{type:"tenant",teacherId:y.user.data.userId,shareUrl:ae.value,shareType:"album",shareLength:1},{default:function(){var e,t,r,n;return[m("div",{class:K.shareVip},[1===le.value&&m("div",{class:K.tagDiscount},[s("专属优惠")]),m("img",{class:K.icon,crossorigin:"anonymous",src:(null===(e=M.value)||void 0===e?void 0:e.albumCoverUrl)+"@base@tag=imgScale&h=144&w=144&m=1?t=".concat(+new Date)},null),m("div",{class:K.info},[m("h4",{class:"van-multi-ellipsis--l2"},[null===(t=M.value)||void 0===t?void 0:t.albumName]),m("p",{class:["van-multi-ellipsis--l3"],style:{lineHeight:"16px",margin:"5px 0 10px 0"}},[null===(r=M.value)||void 0===r?void 0:r.albumDesc]),m("div",{class:K.shareAlumCollect},[m("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAb1BMVEUAAABG2MNG2MFF18BF2MFG18BF2MFA4MRD2cBF2MJF2cJF18FE2MFF2MFF2MFE2MFF2MFE179A3MVF2MFF18JF2MJF18JF2MFG2cJF2MFG179F2MJF18FF2MFF18JE1sJH2sNF18FF2MJE179F18GInqdFAAAAJHRSTlMAMo9Z+E1lBhaZDfvNyfDSpzUR2biglXUs40Un3sKKSiLmv0D+yki/AAAA3klEQVQoz7XOWXKDMBRE0YYQSUhinsFTkt7/GhMBVihbVf5yf95TD4TwItFnefeUpesJ3cxDT/dOJjl5h0Wk1nebikrGHiOz9ywVkVzTP3643t/7M1Y+BzB6jVItVRREVc2fbiqE15Xm8OU4V4uSLx70JtSXJrc2jLqgWxhLsuimHeVNH1EbtkD95bDuEprmgCMptntoy20eFZkCsMxxIc9DeUSc/1S0ZIyJBYCO/PF4y+lW1EjWbwzkFX7jN2lKBTQ8aaClqXGYGjW2m1OfkSVCa7cfqCDKoUmmuA7RL2POHWJJLgwaAAAAAElFTkSuQmCC"},null),m("span",null,[s("共"),m("span",{style:"color: var(--van-primary-color);"},[null===(n=M.value)||void 0===n?void 0:n.musicSheetCount]),s("首曲目")])])])]),m("div",{class:[K.shareVip,K.shareMusicList]},[m(me,{list:ue.value},null)])]}})]}})])}}}))}}}))}();
|