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.19a69a6b.js","./index-legacy.53bf502e.js","./index-legacy.433a3fe3.js","./index-legacy.0073fc73.js","./music-legacy.1c339f8a.js","./index-legacy.e3d026e3.js","./index-legacy.8ccf9e9e.js","./index-legacy.238559fa.js","./hooks-legacy.ebe8e7b0.js","./index-legacy.073eb0f5.js","./orderStatus-legacy.59d99055.js","./icon_share-legacy.69f1973c.js","./icon_share2-legacy.df666685.js","./index-legacy.5bb574b9.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","./icon-play-legacy.50b88257.js","./index-legacy.01892c8c.js","./index-legacy.da2492ca.js","./code-down-load-legacy.925e7297.js","./logo-legacy.cf4b3bd2.js","./browser-legacy.869507ab.js","./html2canvas.esm-legacy.19f9c2b7.js","./index-legacy.b552c918.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,F,S,j,O,D,T,q,E,Z,X,z,R,V,U,P,N,Q,G,L,W,H;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.W,g=e.X,h=e.by,b=e.be,v=e.C,x=e.F,A=e.g,y=e.B,C=e.aR,w=e.w,M=e.D},function(e){J=e.C},function(e){k=e.I},function(e){Y=e.a,B=e.b},function(e){I=e.g},function(e){F=e.T},function(e){S=e.S},function(e){j=e.M},function(e){O=e.u},function(e){D=e.C},function(e){T=e.o},function(e){q=e.i},function(e){E=e.i},function(e){Z=e.C},function(e){X=e._,z=e.a,R=e.b,V=e.c,U=e.d,P=e.e,N=e.f},function(e){Q=e._},function(e){G=e._},function(e){L=e._},function(e){W=e._},function(e){H=e._},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var K={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"},$="_theSong_1plfo_1",ee="_item_1plfo_4",ne="_content_1plfo_16",te="_top_1plfo_19",re="_tags_1plfo_28",ie="_title_1plfo_39",ae="_singer_1plfo_46",le="_exquisiteFlag_1plfo_160",oe="_songAlbum_1plfo_165",se=function(e){var n="../images/".concat(e);return{"../images/collection.png":X,"../images/collection_active.png":z,"../images/icon-xin.png":Q,"../images/icon_ai.png":R,"../images/icon_album.png":G,"../images/icon_album_active.png":L,"../images/icon_author.png":V,"../images/icon_download.png":U,"../images/icon_exquisite.png":W,"../images/icon_music_active.png":H,"../images/icon_share.png":P,"../images/icon_uploader.png":N}[n].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,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:$},[r.value.map((function(n){return s("div",{class:ee,onClick:function(){return t("detail",n)}},[s("div",{class:ne},[s("div",{class:te},[1===n.exquisiteFlag&&s(k,{class:le,src:se("icon_exquisite.png")},null),n.albumNums>0&&s(k,{class:oe,src:se("icon_album_active.png")},null),s("span",{class:[ie,e.musicNameClass,"van-ellipsis"]},[n.musicSheetName]),s("span",{class:[ae,e.authorClass,"van-ellipsis"]},[m("-"),n.composer]),s("div",{class:re},[null==n?void 0:n.subjectNames.split(",").map((function(e){return s("span",null,[e])}))])])])])}))])}}}),ce=function(){};t("default",i({name:"AlbumDetail",props:{onItemClick:{type:Function,default:ce}},setup:function(t){var i=t.onItemClick;localStorage.setItem("behaviorId",I());var X=c(),z=u(),R=_({search:"",relatedNum:6,page:1,rows:200}),V=d(null),U=d([]),P=d(!1),N=Number(z.query.activityId)||0,Q=d(N),G=d(!1),L=d(0),W=d(0),H=d(null),$=d("rgba(55, 205, 177, 0)"),ee=d("#fff"),ne=d("auto"),te=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(!P.value){t.next=2;break}return t.abrupt("return");case 2:return P.value=!0,G.value=!1,t.prev=4,t.next=7,w.post("/music/album/detail",{prefix:"TEACHER"===A.platformType?"/api-teacher":"/api-student",data:o({id:i||z.params.id},R)});case 7:l=t.sent,s=l.data,m=s.musicSheetList,c=r(s,e),U.value=n(m.rows),u=null!=c&&c.musicTagNames?null==c||null===(a=c.musicTagNames)||void 0===a?void 0:a.split(","):[],V.value=o(o({},c),{},{musicTagNames:u}),L.value=c.favorite,W.value=c.albumFavoriteCount,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(4),G.value=!0;case 19:P.value=!1;case 20:case"end":return t.stop()}}),t,null,[[4,16]])})));return function(e){return t.apply(this,arguments)}}(),re=d(!1);f((function(){te(),Y(document,"scroll",(function(e){B().y.value>20?($.value="rgba(255, 255, 255)",ee.value="black"):($.value="transparent",ee.value="#fff")})),O("专辑")}));var ie=function(){var e=a(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re.value=!0,e.prev=1,e.next=4,w.post("/music/album/favorite/"+n,{prefix:"TEACHER"===A.platformType?"/api-teacher":"/api-student"});case 4:L.value=1===L.value?0:1,W.value+=L.value?1:-1,e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:re.value=!1;case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(n){return e.apply(this,arguments)}}(),ae=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=V.value,T.orderObject.orderType="ALBUM",T.orderObject.orderName=n.albumName,T.orderObject.orderDesc=n.albumName,T.orderObject.actualPrice=n.albumPrice,T.orderObject.recomUserId=z.query.recomUserId||0,T.orderObject.activityId=z.query.activityId||0,T.orderObject.orderNo="",T.orderObject.orderList=[o({orderType:"ALBUM",goodsName:n.albumName,recomUserId:z.query.recomUserId||0,price:n.albumPrice},n)],e.next=11,w.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"ALBUM",bizId:n.id}});case 11:t=e.sent,(r=t.data)?M.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:T.orderObject.orderNo=r.orderNo,T.orderObject.actualPrice=r.actualPrice,T.orderObject.discountPrice=r.discountPrice,T.orderObject.paymentConfig=o(o({},r.paymentConfig),{},{paymentVendor:r.paymentVendor,paymentVersion:r.paymentVersion}),le();case 5:case"end":return e.stop()}}),e)})))).catch((function(){M.close(),oe(r.orderNo)})):le();case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=V.value;X.push({path:"/orderDetail",query:{orderType:"ALBUM",album:e.id}})},oe=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,w.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)}}(),se=d(!1),ue=d(""),_e=d(0),de=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=A.user.data.userId,t=z.params.id,r=0,console.log(A.user,n),"TEACHER"!==A.platformType){e.next=9;break}return e.next=7,w.post("/api-teacher/open/vipProfit",{data:{bizId:t,userId:n}});case 7:i=e.sent,fe.value&&(r=i.data.activityId||0,_e.value=i.data.discount||0);case 9:ue.value="".concat(location.origin,"/teacher#/shareAblum?id=").concat(t,"&recomUserId=").concat(n,"&activityId=").concat(r,"&userType=").concat(A.platformType),console.log(ue.value,"shareUrl"),se.value=!0;case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fe=l((function(){var e,n=null===(e=V.value)||void 0===e?void 0:e.musicPaymentTypes;return n&&n.includes("VIP")})),pe=l((function(){return U.value.length>4?U.value.slice(0,2):U.value}));return function(){var e,n,t,r,a,l,c,u,_,d,f,w,M,Y,B,I;return s("div",{class:K.detail},[s("div",{ref:H},[s(J,{background:$.value,border:!1,color:ee.value,backIconColor:"white",onHeaderBack:function(){p((function(){var e=g(H).height;ne.value=e}))}},{right:function(){return s("div",{class:K.shareBtn,style:{color:ee.value},onClick:de},[s(k,{src:"black"===ee.value?E:q},null),m("分享")])}})]),s("img",{class:K.bgImg,src:null===(e=V.value)||void 0===e?void 0:e.albumCoverUrl},null),s("div",{class:K.musicContent},null),s("div",{class:K.bg},[s("div",{class:K.alumWrap},[s("div",{class:K.img},["CHARGE"===(null===(n=V.value)||void 0===n?void 0:n.paymentType)&&s("span",{class:K.albumType},[m("付费")]),s(k,{class:K.image,width:"100%",height:"100%",fit:"cover",src:null===(t=V.value)||void 0===t?void 0:t.albumCoverUrl},null)]),s("div",{class:K.alumDes},[s("div",{class:[K.alumTitle,"van-ellipsis"]},[null===(r=V.value)||void 0===r?void 0:r.albumName]),s("div",{class:K.tags},[null===(a=V.value)||void 0===a||null===(l=a.musicTagNames)||void 0===l?void 0:l.map((function(e){return s("span",{class:K.tag},[e])}))]),s("div",{class:[K.des,"van-multi-ellipsis--l3"],style:{height:"48px",lineHeight:"16px"}},[null===(c=V.value)||void 0===c?void 0:c.albumDesc])])]),s("div",{class:K.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=V.value)||void 0===u?void 0:u.musicSheetCount,m("首曲目")]),s("div",{class:K.right,onClick:function(){var e;return ie(null===(e=V.value)||void 0===e?void 0:e.id)}},[s("img",{src:L.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/+IF/+MF/+QE/+YE/+IE/+ME/+QE/+QE/+IE/+ME/+MD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GrszmL6GZboKjDw5Ui4Pyo88GQHaZeqHnnJ5FuqBXpnS0KYiXIIJmYbgrSHPjDfwTabbQIs8awE6ZFo7Dtmd8mhnFsbXy3ISGKqUJ5VDwEkVPARe+eSB7xXwUDNWJICYPIgBiRWaVZOCXK2WVJuDVI3miAD9QS0h2A9ENE8H0K4ltAMdmm/lIIyH5So8DoMrtcABoFmumoEDWqhkABJylYCBEtnEgQq5qADisqsF6uWiHqiVXQg4IxdngJDsjBy0yUUb5Aw5SMI1ubgGSTlJwxW5uAJpOclCXC7ikJEDA7goFxcBQ3alQLNctAClsisDzsnFOaBMdiGgQTMCO85ff/Dg+vkdAc1oAEKyqwSisgQPdqYoSHUeDMoSBSplF8hAXFJgz6NR5hl9tCcg6TJM+uXgMySje+8OUzDS2ztCwfCdulOj8EFOjvNX+mmkWnnVkadp/johJ8Yzpk29iJRpVlnkxRTTnsmZ0fIDcq+jYS0Qjr7Jwc8Lhha1ZfMyOQpu26h/7A/SsS/F1RxolQAAAABJRU5ErkJggg=="},null),s("span",null,[W.value,m("人收藏")])])]),"CHARGE"===(null===(_=V.value)||void 0===_?void 0:_.paymentType)&&"PAID"!==(null===(d=V.value)||void 0===d?void 0:d.orderStatus)&&s("div",{class:K.albumTips},[s("span",null,[m("此专辑为付费专辑,购买即可自由练习该专辑")]),s("span",{class:K.albumPrice},[m("¥"),h(null===(f=V.value)||void 0===f?void 0:f.albumPrice)])])]),s("div",{class:K.alumnContainer},[s("div",{class:K.alumnList},[s(F,{title:"曲目列表",isMore:!1},null),s(S,{list:U.value,onDetail:function(e){if(i!==ce&&i)i(e);else{var n=location.origin+location.pathname+"#/music-detail?id="+e.id+"&albumId="+z.params.id;b(n,(function(){X.push({path:"/music-detail",query:{id:e.id,albumId:z.params.id}})}))}}},null),U.value&&U.value.length<=0&&s(v,{btnStatus:!1,tips:"暂无曲目"},null)]),(null===(w=V.value)||void 0===w?void 0:w.relatedMusicAlbum)&&(null===(M=V.value)||void 0===M?void 0:M.relatedMusicAlbum.length)>0&&s(x,null,[s(F,{title:"相关专辑",onMore:function(){X.push({path:"/music-album"})}},null),s(j,{list:null===(Y=V.value)||void 0===Y?void 0:Y.relatedMusicAlbum,onGoto:function(e){X.push({name:"music-album-detail",params:{id:e.id}}).then((function(){te(e.id),window.scrollTo(0,0)}))}},null)])]),"CHARGE"===(null===(B=V.value)||void 0===B?void 0:B.paymentType)&&"PAID"!==(null===(I=V.value)||void 0===I?void 0:I.orderStatus)&&s(D,{position:"bottom",background:"white"},{default:function(){return[s("div",{class:["btnGroup",fe.value&&!A.user.data.isVip&&"btnMore"],style:{paddingTop:"12px"}},[s(y,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:ae},{default:function(){return[m("购买专辑")]}}),fe.value&&!A.user.data.isVip&&s(y,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:function(){X.push({path:"/memberCenter",query:o({},z.query)})}},{default:function(){return[Q.value>0&&s("div",{class:[K.buttonDiscount]},[m("专属优惠")]),m("开通会员")]}})])]}}),s(C,{show:se.value,"onUpdate:show":function(e){return se.value=e},style:{background:"transparent"},class:K.albumShare},{default:function(){return[s(Z,{teacherId:A.user.data.userId,shareUrl:ue.value,shareType:"album",shareLength:1},{default:function(){var e,n,t,r;return[s("div",{class:K.shareVip},[1===_e.value&&s("div",{class:K.tagDiscount},[m("专属优惠")]),s("img",{class:K.icon,crossorigin:"anonymous",src:(null===(e=V.value)||void 0===e?void 0:e.albumCoverUrl)+"?t=".concat(+new Date)},null),s("div",{class:K.info},[s("h4",{class:"van-multi-ellipsis--l2"},[null===(n=V.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=V.value)||void 0===t?void 0:t.albumDesc]),s("div",{class:K.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=V.value)||void 0===r?void 0:r.musicSheetCount]),m("首曲目")])])])]),s("div",{class:[K.shareVip,K.shareMusicList]},[s(me,{list:pe.value},null)])]}})]}})])}}}))}}}))}();
|