1 |
- !function(){var e=["musicSheetList"];function i(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,i){if(!e)return;if("string"==typeof e)return t(e,i);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,i)}(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,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,r=new Array(i);t<i;t++)r[t]=e[t];return r}function r(e,i){if(null==e)return{};var t,r,n=function(e,i){if(null==e)return{};var t,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],i.indexOf(t)>=0||(n[t]=e[t]);return n}(e,i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],i.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function n(e,i,t,r,n,a,o){try{var l=e[a](o),m=l.value}catch(s){return void t(s)}l.done?i(m):Promise.resolve(m).then(r,n)}function a(e){return function(){var i=this,t=arguments;return new Promise((function(r,a){var o=e.apply(i,t);function l(e){n(o,r,a,l,m,"next",e)}function m(e){n(o,r,a,l,m,"throw",e)}l(void 0)}))}}function o(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?o(Object(t),!0).forEach((function(i){m(e,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}))}return e}function m(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}var s=document.createElement("style");s.innerHTML='._base_4im3d_1>div{background:url(./assets/header-bg.d862c125.png) no-repeat top center}._detail_4im3d_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_4im3d_1 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._img_4im3d_14{width:2.50667rem;height:2.50667rem;margin-right:.48rem;position:relative}._img_4im3d_14>img,._img_4im3d_14>div{position:absolute;border-radius:.26667rem;overflow:hidden}._img_4im3d_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_4im3d_14 ._albumType_4im3d_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_4im3d_50{display:flex;align-items:flex-start;color:#fff;font-size:.37333rem;line-height:.53333rem!important}._shareBtn_4im3d_50 .van-image{width:.48rem;height:.48rem;margin-right:.16rem}._detailContent_4im3d_62{background-color:#fff;padding:0 .37333rem;border-radius:.45333rem .45333rem 0 0}._detailContent_4im3d_62 ._main_4im3d_67{padding-top:.64rem;padding-bottom:.53333rem;display:flex}._detailContent_4im3d_62 ._favoriteContaineer_4im3d_72{border:none;color:var(--music-list-item-mate-color);height:auto}._detailContent_4im3d_62 ._favoriteContaineer_4im3d_72 .van-button__text{display:flex;align-items:center}._detailContent_4im3d_62 ._favoriteContaineer_4im3d_72 .van-button__text span{line-height:1;padding-top:.05333rem}._detailContent_4im3d_62 ._favoriteContaineer_4im3d_72>span{display:inline-block;line-height:.42667rem;margin-top:.02667rem}._detailContent_4im3d_62 ._favorite_4im3d_72{font-size:.42667rem;margin-right:.13333rem}._detailContent_4im3d_62 ._content_4im3d_94{flex:1;display:inline-grid}._detailContent_4im3d_62 ._content_4im3d_94>h4{color:var(--music-list-item-title-color);font-size:.37333rem;height:.53333rem;line-height:.53333rem;margin-top:.18667rem}._detailContent_4im3d_62 ._content_4im3d_94>p{margin-top:.16rem;font-size:12PX;color:var(--music-list-item-desc-color);line-height:17PX;height:51PX}._footerBar_4im3d_115{padding:.32rem 0;display:flex;justify-content:space-between}._footerBar_4im3d_115>footer{margin-top:0}._bgImg_4im3d_123{position:absolute;left:0;top:0;width:100%;height:7.06667rem;-o-object-fit:cover;object-fit:cover;filter:blur(.26667rem)}._musicContent_4im3d_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_4im3d_123{position:relative;height:100%;padding:.42667rem;z-index:11}._alumWrap_4im3d_149{display:flex;align-items:center}._alumWrap_4im3d_149 ._img_4im3d_14{width:3.06667rem;height:3.06667rem;flex-shrink:0;border-radius:.16rem;overflow:hidden;margin-right:.37333rem}._alumWrap_4im3d_149 ._alumTitle_4im3d_161{font-size:.48rem;font-weight:500;color:#fff;padding-bottom:.21333rem}._alumWrap_4im3d_149 ._alumDes_4im3d_167{width:calc(100% - 3.44rem)}._alumWrap_4im3d_149 ._alumDes_4im3d_167 ._des_4im3d_170{color:#999}._tags_4im3d_173{margin:.16rem -.05333rem .58667rem}._tags_4im3d_173 ._tag_4im3d_173{margin:0 .05333rem;padding:.05333rem .16rem;color:#000;background-color:#718a93;border-radius:.53333rem}._alumCollect_4im3d_183{display:flex;align-items:center;padding-top:.53333rem;color:#999;font-size:.37333rem}._alumCollect_4im3d_183 img{display:inline-block;width:.37333rem;height:.37333rem;margin-right:.16rem}._alumCollect_4im3d_183 span{padding-top:.02667rem}._alumCollect_4im3d_183 ._right_4im3d_199{display:flex;align-items:center;margin-left:.69333rem}._albumTips_4im3d_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_4im3d_204 ._albumPrice_4im3d_214{font-size:.37333rem;font-weight:700;color:#fa0}._alumnContainer_4im3d_219{position:relative;padding:0 .42667rem;z-index:12}._alumnContainer_4im3d_219 ._alumnList_4im3d_224{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin-bottom:.42667rem}._alumnContainer_4im3d_219 ._subjectSearch_4im3d_230{position:relative;background:#EFFBF9;border-radius:.37333rem;margin-left:auto;border:.02667rem solid rgba(23,167,140,.6);font-size:.37333rem;color:#02b090;line-height:.53333rem;padding:.05333rem .66667rem .05333rem .32rem}._alumnContainer_4im3d_219 ._subjectSearch_4im3d_230:after{position:absolute;top:.18667rem;right:.32rem;border:.08rem solid;border-color:transparent transparent #2DC7AA #2DC7AA;transform:rotate(-45deg);opacity:.8;content:""}._alumnContainer_4im3d_219 ._subjectSearch_4im3d_230._active_4im3d_251:after{transform:rotate(135deg);top:.26667rem}._shareVip_4im3d_255{position:relative;margin-top:.26667rem;display:flex;flex:1;align-items:center;padding:.18667rem;background:#ffffff;border-radius:.26667rem}._shareVip_4im3d_255 ._icon_4im3d_265{width:1.92rem;height:1.92rem;border-radius:.26667rem}._shareVip_4im3d_255 ._info_4im3d_270{display:flex;flex-direction:column;margin-left:.16rem;flex:1;word-break:break-all}._shareVip_4im3d_255 ._info_4im3d_270>h4{color:var(--music-list-item-title-color);font-size:.42667rem;font-weight:600}._shareVip_4im3d_255 ._info_4im3d_270>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._shareVip_4im3d_255 ._shareAlumCollect_4im3d_286{display:flex;align-items:center;color:#999;font-size:.37333rem}._shareVip_4im3d_255 ._shareAlumCollect_4im3d_286 img{display:inline-block;width:.37333rem;height:.37333rem;margin-right:.16rem}._shareVip_4im3d_255 ._shareAlumCollect_4im3d_286 span{padding-top:.02667rem}._shareVip_4im3d_255 ._shareAlumCollect_4im3d_286 ._right_4im3d_199{display:flex;align-items:center;margin-left:.69333rem}._tagDiscount_4im3d_306{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_4im3d_319{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_4im3d_332{margin-top:.32rem;box-shadow:0 .05333rem .26667rem rgba(0,0,0,.05);padding:0 .26667rem}._albumShare_4im3d_337 .btnGroup .van-button{border:none}._albumShare_4im3d_337 .shareTeacherCustom{background:linear-gradient(270deg,#BAFFE7 0%,#C0DCFF 100%)}._albumShare_4im3d_337 .shareTeacherCustom>div:first-child{display:flex;align-items:center;justify-content:center}._albumShare_4im3d_337 .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(["./ResizeObserver.es-legacy.9ef5ac8c.js","./index-legacy.402479d8.js","./index-legacy.8802e914.js","./index-legacy.91eef022.js","./music-legacy.bce575bd.js","./index-legacy.fa34f47a.js","./index-legacy.894a9ef9.js","./index-legacy.345f7a0c.js","./hooks-legacy.b4b15558.js","./index-legacy.13430c18.js","./orderStatus-legacy.00d7eecf.js","./icon_share-legacy.69f1973c.js","./index-legacy.7f1bd7d2.js","./icon_uploader-legacy.99fa0203.js","./icon-xin-legacy.785d3d33.js","./icon_album-legacy.498b9a9b.js","./icon_album_active-legacy.890b9402.js","./icon_exquisite-legacy.ccb5dcc0.js","./icon_music_active-legacy.aba070d7.js","./select-subject-legacy.269d1651.js","./icon-play-legacy.50b88257.js","./index-legacy.75981fe0.js","./index-legacy.68eb7f39.js","./code-down-load-legacy.3bc1f4e9.js","./logo-legacy.cf4b3bd2.js","./browser-legacy.869507ab.js","./html2canvas.esm-legacy.19f9c2b7.js","./index-legacy.e9381954.js","./icon_teacher-legacy.42ba77b1.js","./index-legacy.31c9aada.js","./index-legacy.49dc34f1.js"],(function(t){"use strict";var n,o,m,s,c,u,d,_,f,p,g,h,b,v,A,y,C,w,M,x,J,k,B,Y,I,j,S,F,O,D,T,q,E,Z,X,z,R,U,V,P,N,Q,G,L,W,H;return{setters:[function(e){n=e.d,o=e.W,m=e.j,s=e.A,c=e.Q,u=e.P,d=e.S,_=e.U,f=e.V,p=e.X,g=e.Y,h=e.bA,b=e.bg,v=e.C,A=e.F,y=e.g,C=e.B,w=e.aS,M=e.y,x=e.D},function(e){J=e.C},function(e){k=e.I},function(e){B=e.a,Y=e.b},function(e){I=e.g},function(e){j=e.T},function(e){S=e.S},function(e){F=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.C},function(e){Z=e._,X=e.a,z=e.b,R=e.c,U=e.d,V=e.e,P=e.f},function(e){N=e._},function(e){Q=e._},function(e){G=e._},function(e){L=e._},function(e){W=e._},function(e){H=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var K={base:"_base_4im3d_1",detail:"_detail_4im3d_4",img:"_img_4im3d_14",albumType:"_albumType_4im3d_37",shareBtn:"_shareBtn_4im3d_50",detailContent:"_detailContent_4im3d_62",main:"_main_4im3d_67",favoriteContaineer:"_favoriteContaineer_4im3d_72",favorite:"_favorite_4im3d_72",content:"_content_4im3d_94",footerBar:"_footerBar_4im3d_115",bgImg:"_bgImg_4im3d_123",musicContent:"_musicContent_4im3d_132",bg:"_bg_4im3d_123",alumWrap:"_alumWrap_4im3d_149",alumTitle:"_alumTitle_4im3d_161",alumDes:"_alumDes_4im3d_167",des:"_des_4im3d_170",tags:"_tags_4im3d_173",tag:"_tag_4im3d_173",alumCollect:"_alumCollect_4im3d_183",right:"_right_4im3d_199",albumTips:"_albumTips_4im3d_204",albumPrice:"_albumPrice_4im3d_214",alumnContainer:"_alumnContainer_4im3d_219",alumnList:"_alumnList_4im3d_224",subjectSearch:"_subjectSearch_4im3d_230",active:"_active_4im3d_251",shareVip:"_shareVip_4im3d_255",icon:"_icon_4im3d_265",info:"_info_4im3d_270",shareAlumCollect:"_shareAlumCollect_4im3d_286",tagDiscount:"_tagDiscount_4im3d_306",buttonDiscount:"_buttonDiscount_4im3d_319",shareMusicList:"_shareMusicList_4im3d_332",albumShare:"_albumShare_4im3d_337"},$="_theSong_1plfo_1",ee="_item_1plfo_4",ie="_content_1plfo_16",te="_top_1plfo_19",re="_tags_1plfo_28",ne="_title_1plfo_39",ae="_singer_1plfo_46",oe="_exquisiteFlag_1plfo_160",le="_songAlbum_1plfo_165",me=function(e){var i="../images/".concat(e);return{"../images/collection.png":Z,"../images/collection_active.png":X,"../images/icon-xin.png":N,"../images/icon_ai.png":z,"../images/icon_album.png":Q,"../images/icon_album_active.png":G,"../images/icon_author.png":R,"../images/icon_download.png":U,"../images/icon_exquisite.png":L,"../images/icon_music_active.png":W,"../images/icon_share.png":V,"../images/icon_uploader.png":P}[i].default},se=n({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,i){var t=i.emit,r=o((function(){return e.list.map((function(e){return"string"==typeof e.paymentType&&(e.paymentType=e.paymentType.split(",")),l({},e)}))}));return function(){return m("div",{class:$},[r.value.map((function(i){return m("div",{class:ee,onClick:function(){return t("detail",i)}},[m("div",{class:ie},[m("div",{class:te},[1===i.exquisiteFlag&&m(k,{class:oe,src:me("icon_exquisite.png")},null),i.albumNums>0&&m(k,{class:le,src:me("icon_album_active.png")},null),m("span",{class:[ne,e.musicNameClass,"van-ellipsis"]},[i.musicSheetName]),m("span",{class:[ae,e.authorClass,"van-ellipsis"]},[s("-"),i.composer]),m("div",{class:re},[null==i?void 0:i.subjectNames.split(",").map((function(e){return m("span",null,[e])}))])])])])}))])}}}),ce=function(){};t("default",n({name:"AlbumDetail",props:{onItemClick:{type:Function,default:ce}},setup:function(t){var n=t.onItemClick;localStorage.setItem("behaviorId",I());var Z=c(),X=u(),z=d({search:"",relatedNum:6,page:1,rows:200}),R=_(null),U=_([]),V=_(!1),P=Number(X.query.activityId)||0,N=_(P),Q=_(!1),G=_(0),L=_(0),W=_(null),$=_("rgba(55, 205, 177, 0)"),ee=_("#fff"),ie=_("auto"),te=d({show:!1,name:X.query.subjectName||"全部声部",id:X.query.subjectId||null}),re=function(){var t=a(regeneratorRuntime.mark((function t(n){var a,o,m,s,c,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!V.value){t.next=2;break}return t.abrupt("return");case 2:return V.value=!0,Q.value=!1,t.prev=4,t.next=7,M.post("/music/album/detail",{prefix:"TEACHER"===y.platformType?"/api-teacher":"/api-student",data:l(l({id:n||X.params.id},z),{},{subjectIds:te.id})});case 7:o=t.sent,m=o.data,s=m.musicSheetList,c=r(m,e),U.value=i(s.rows),u=null!=c&&c.musicTagNames?null==c||null===(a=c.musicTagNames)||void 0===a?void 0:a.split(","):[],R.value=l(l({},c),{},{musicTagNames:u}),G.value=c.favorite,L.value=c.albumFavoriteCount,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(4),Q.value=!0;case 19:V.value=!1;case 20:case"end":return t.stop()}}),t,null,[[4,16]])})));return function(e){return t.apply(this,arguments)}}(),ne=_(!1);f((function(){re(),B(document,"scroll",(function(e){Y().y.value>20?($.value="rgba(255, 255, 255)",ee.value="black"):($.value="transparent",ee.value="#fff")})),O("专辑")}));var ae=function(){var e=a(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ne.value=!0,e.prev=1,e.next=4,M.post("/music/album/favorite/"+i,{prefix:"TEACHER"===y.platformType?"/api-teacher":"/api-student"});case 4:G.value=1===G.value?0:1,L.value+=G.value?1:-1,e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:ne.value=!1;case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(i){return e.apply(this,arguments)}}(),oe=function(){var e=a(regeneratorRuntime.mark((function e(){var i,t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=R.value,T.orderObject.orderType="ALBUM",T.orderObject.orderName=i.albumName,T.orderObject.orderDesc=i.albumName,T.orderObject.actualPrice=i.albumPrice,T.orderObject.recomUserId=X.query.recomUserId||0,T.orderObject.activityId=X.query.activityId||0,T.orderObject.orderNo="",T.orderObject.orderList=[l({orderType:"ALBUM",goodsName:i.albumName,recomUserId:X.query.recomUserId||0,price:i.albumPrice},i)],e.next=11,M.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"ALBUM",bizId:i.id}});case 11:t=e.sent,(r=t.data)?x.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=l(l({},r.paymentConfig),{},{paymentVendor:r.paymentVendor,paymentVersion:r.paymentVersion}),le();case 5:case"end":return e.stop()}}),e)})))).catch((function(){x.close(),me(r.orderNo)})):le();case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=R.value;Z.push({path:"/orderDetail",query:{orderType:"ALBUM",album:e.id}})},me=function(){var e=a(regeneratorRuntime.mark((function e(i){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:i}});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(i){return e.apply(this,arguments)}}(),ue=function(e){te.name=e.name,te.id=e.id,te.show=!1,re()},de=_(!1),_e=_(""),fe=_(0),pe=function(){var e=a(regeneratorRuntime.mark((function e(){var i,t,r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=y.user.data.userId,t=X.params.id,r=0,console.log(y.user,i),"TEACHER"!==y.platformType){e.next=9;break}return e.next=7,M.post("/api-teacher/open/vipProfit",{data:{bizId:t,userId:i}});case 7:n=e.sent,ge.value&&(r=n.data.activityId||0,fe.value=n.data.discount||0);case 9:_e.value="".concat(location.origin,"/teacher#/shareAblum?id=").concat(t,"&recomUserId=").concat(i,"&activityId=").concat(r,"&userType=").concat(y.platformType),console.log(_e.value,"shareUrl"),de.value=!0;case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ge=o((function(){var e,i=null===(e=R.value)||void 0===e?void 0:e.musicPaymentTypes;return i&&i.includes("VIP")})),he=o((function(){return U.value.length>4?U.value.slice(0,2):U.value}));return function(){var e,i,t,r,a,o,c,u,d,_,f,M,x,B,Y,I;return m("div",{class:K.detail},[m("div",{ref:W},[m(J,{background:$.value,border:!1,color:ee.value,backIconColor:"white",onHeaderBack:function(){p((function(){var e=g(W).height;ie.value=e}))}},{right:function(){return m("div",{class:K.shareBtn,style:{color:ee.value},onClick:pe},[m(k,{src:"black"===ee.value?"./assets/icon_share2.c59b82f9.svg":q},null),s("分享")])}})]),m("img",{class:K.bgImg,src:null===(e=R.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},["CHARGE"===(null===(i=R.value)||void 0===i?void 0:i.paymentType)&&m("span",{class:K.albumType},[s("付费")]),m(k,{class:K.image,width:"100%",height:"100%",fit:"cover",src:null===(t=R.value)||void 0===t?void 0:t.albumCoverUrl},null)]),m("div",{class:K.alumDes},[m("div",{class:[K.alumTitle,"van-ellipsis"]},[null===(r=R.value)||void 0===r?void 0:r.albumName]),m("div",{class:K.tags},[null===(a=R.value)||void 0===a||null===(o=a.musicTagNames)||void 0===o?void 0:o.map((function(e){return m("span",{class:K.tag},[e])}))]),m("div",{class:[K.des,"van-multi-ellipsis--l3"],style:{height:"48px",lineHeight:"16px"}},[null===(c=R.value)||void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nMmyodmoqAPwKPIq4yq8d11v0Wb4V8MQLsAHxMGzTiZloBLga8291DR3zxf1LJ/XHzXJYfeAf0ce0g6syzYNuArbWzIQ0fLrQDa2Qrc87jon1Ty2aJrS7h06ev3fVVA8a67z+eYurnqFNfAx4CfgF9SZJBldz0asEiP38DJuSfuh82O50AAAAASUVORK5CYII="},null),m("span",null,[s("共"),null===(u=R.value)||void 0===u?void 0:u.musicSheetCount,s("首曲目")]),m("div",{class:K.right,onClick:function(){var e;return ae(null===(e=R.value)||void 0===e?void 0:e.id)}},[m("img",{src:G.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/+QD/+ID/+MD/+MD/+UD/+QD/+QD/+ID/+MD/+MD/+MC/+QC/+MC/+MC/+QC/+IC/+QC/+QC/+QC/+MC/+IC/+MC/+IC/+IC/+MC/+IC/+MB/+MB/+MB/+MB/+MB/+MB/+MB/+MB/+IB/+MB/+MB/+MB/+IB/+MB/+IB/+IB/+IB/+MB/+IB/+IB/+IB/+MB/+MB/+IB/+IB/+MB/+MB/+IB/+MB/+MB/+MB/+MB/+IBMpLqhgAAAF50Uk5TAAECBwkLDA0PEhMUFRYXGhwfICEpLDEyMzU3OTw+QEJDR0hKTFBRUldfYGFjZGZobG9yc3mCg4qOkJeho6mqra6vtbbGyczR0tPU29zd3uPl5+jp6vDx8/T6+/z9/pKjV7YAAAFpSURBVBgZ7cFpO4JRFAXQXeSlkDFjmTJPocyEFCKzFNr//2fwKGk4Off6ylr49xtt+7ncXjusec744dwDW7v8tAtLUyyZghXvHUvuvLARZ1kcFuZZYR7GerOskO2FoZYLVrlogZHmBGskmmGgM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AAABJRU5ErkJggg=="},null),m("span",null,[L.value,s("人收藏")])])]),"CHARGE"===(null===(d=R.value)||void 0===d?void 0:d.paymentType)&&"PAID"!==(null===(_=R.value)||void 0===_?void 0:_.orderStatus)&&m("div",{class:K.albumTips},[m("span",null,[s("此专辑为付费专辑,购买即可自由练习该专辑")]),m("span",{class:K.albumPrice},[s("¥"),h(null===(f=R.value)||void 0===f?void 0:f.albumPrice)])])]),m("div",{class:K.alumnContainer},[m("div",{class:K.alumnList},[m(j,{title:"曲目列表",isMore:!1},{right:function(){var e;return"CONCERT"===(null===(e=R.value)||void 0===e?void 0:e.albumType)&&m("div",{class:[K.subjectSearch,te.show?K.active:""],onClick:function(){return te.show=!0}},[te.name])}}),m(S,{list:U.value,onDetail:function(e){if(n!==ce&&n)n(e);else{var i=location.origin+location.pathname+"#/music-detail?id="+e.id+"&albumId="+X.params.id;b(i,(function(){Z.push({path:"/music-detail",query:{id:e.id,albumId:X.params.id}})}))}}},null),U.value&&U.value.length<=0&&m(v,{btnStatus:!1,tips:"暂无曲目"},null)]),(null===(M=R.value)||void 0===M?void 0:M.relatedMusicAlbum)&&(null===(x=R.value)||void 0===x?void 0:x.relatedMusicAlbum.length)>0&&m(A,null,[m(j,{title:"相关专辑",onMore:function(){Z.push({path:"/music-album"})}},null),m(F,{list:null===(B=R.value)||void 0===B?void 0:B.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===(Y=R.value)||void 0===Y?void 0:Y.paymentType)&&"PAID"!==(null===(I=R.value)||void 0===I?void 0:I.orderStatus)&&m(D,{position:"bottom",background:"white"},{default:function(){return[m("div",{class:["btnGroup",ge.value&&!y.user.data.isVip&&"btnMore"],style:{paddingTop:"12px"}},[m(C,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:oe},{default:function(){return[s("购买专辑")]}}),ge.value&&!y.user.data.isVip&&m(C,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:function(){Z.push({path:"/memberCenter",query:l({},X.query)})}},{default:function(){return[N.value>0&&m("div",{class:[K.buttonDiscount]},[s("专属优惠")]),s("开通会员")]}})])]}}),m(w,{show:de.value,"onUpdate:show":function(e){return de.value=e},style:{background:"transparent"},class:K.albumShare},{default:function(){return[m(E,{teacherId:y.user.data.userId,shareUrl:_e.value,shareType:"album",shareLength:1},{default:function(){var e,i,t,r;return[m("div",{class:K.shareVip},[1===fe.value&&m("div",{class:K.tagDiscount},[s("专属优惠")]),m("img",{class:K.icon,crossorigin:"anonymous",src:(null===(e=R.value)||void 0===e?void 0:e.albumCoverUrl)+"?t=".concat(+new Date)},null),m("div",{class:K.info},[m("h4",{class:"van-multi-ellipsis--l2"},[null===(i=R.value)||void 0===i?void 0:i.albumName]),m("p",{class:["van-multi-ellipsis--l3"],style:{lineHeight:"16px",margin:"5px 0 10px 0"}},[null===(t=R.value)||void 0===t?void 0:t.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===(r=R.value)||void 0===r?void 0:r.musicSheetCount]),s("首曲目")])])])]),m("div",{class:[K.shareVip,K.shareMusicList]},[m(se,{list:he.value},null)])]}})]}}),m(w,{position:"bottom",round:!0,show:te.show,"onUpdate:show":function(e){return te.show=e},closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return te.show=!1},onClosed:function(){return te.show=!1}},{default:function(){return[m(H,{type:"ALBUM",isShowAllSubject:!0,searchParams:te,onComfirm:ue},null)]}})])}}}))}}}))}();
|