album-my-legacy.f60c388d.js 7.9 KB

1
  1. !function(){function e(e){return function(e){if(Array.isArray(e))return a(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 a(e,t);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 a(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 a(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,r=new Array(a);t<a;t++)r[t]=e[t];return r}function t(e,a,t,r,n,u,i){try{var l=e[u](i),o=l.value}catch(s){return void t(s)}l.done?a(o):Promise.resolve(o).then(r,n)}function r(e){return function(){var a=this,r=arguments;return new Promise((function(n,u){var i=e.apply(a,r);function l(e){t(i,n,u,l,o,"next",e)}function o(e){t(i,n,u,l,o,"throw",e)}l(void 0)}))}}var n=document.createElement("style");n.innerHTML="._personal_1yygr_1{--van-cell-background-color: transparent;--van-cell-font-size: .42667rem;--van-cell-text-color: #333;--van-cell-value-color: #999;--van-cell-icon-size: .26667rem}._personal_1yygr_1 .van-tab{font-size:.42667rem!important;margin-top:.4rem;color:#999}._personal_1yygr_1 .van-tab--active{font-size:.42667rem!important;color:var(--van-primary)}._personal_1yygr_1 .van-button--plain.van-button--primary{background-color:transparent}._practice_1yygr_20,._personalSong_1yygr_21{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:0 .37333rem .37333rem}._personalSong_1yygr_21{margin:.37333rem}._musicGrid_1yygr_30{margin:.42667rem .32rem}\n",document.head.appendChild(n),System.register(["./index-legacy.b2528a15.js","./index-legacy.9cbe7ce8.js","./index-legacy.21779c2e.js","./index-legacy.3a0d59fb.js"],(function(a){"use strict";var t,n,u,i,l,o,s,c,p,v,f,d,g,m;return{setters:[function(e){t=e.d,n=e.P,u=e.Q,i=e.S,l=e.U,o=e.a3,s=e.i,c=e.bg,p=e.C,v=e.e,f=e.s},function(e){d=e.L},function(e){g=e.S},function(e){m=e.M}],execute:function(){var y=a("s",{personal:"_personal_1yygr_1",practice:"_practice_1yygr_20",personalSong:"_personalSong_1yygr_21",musicGrid:"_musicGrid_1yygr_30"});a("P",t({name:"MusicList",emits:["favorite"],props:{gift:{type:Number,default:0}},setup:function(a,t){var m=t.expose,h=(t.emit,n()),b=u(),_=i({search:h.query.search||"",musicTagIds:h.query.tagids||"",gift:a.gift,page:1}),x=l(null),S=l([]),L=l(!1),T=l(!1),w=l(!1),A=function(){var a=r(regeneratorRuntime.mark((function a(){var t;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!L.value){a.next=2;break}return a.abrupt("return");case 2:return L.value=!0,w.value=!1,a.prev=4,a.next=7,v("/music/sheet/my",{method:"TEACHER"===f.platformType?"POST":"GET",prefix:"TEACHER"===f.platformType?"/api-teacher":"/api-student",params:_,data:"TEACHER"===f.platformType?_:{}});case 7:t=a.sent,S.value=[].concat(e(S.value),e(t.data.rows)),x.value=t.data,_.page=t.data.pageNo+1,T.value=t.data.pageNo>=t.data.totalPage,a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),w.value=!0;case 17:L.value=!1;case 18:case"end":return a.stop()}}),a,null,[[4,14]])})));return function(){return a.apply(this,arguments)}}();return o((function(){return a.gift}),(function(e){w.value=!1,S.value=[],_.page=1,T.value=!1,_.gift=e,A()})),m({reset:function(){w.value=!1,S.value=[],_.page=1,T.value=!1,A()},FetchList:A}),function(){return s(d,{loading:L.value,finished:T.value,"finished-text":S.value.length?"没有更多了":"",onLoad:A,error:w.value},{default:function(){return[S.value.length?s("div",{class:y.personalSong},[s(g,{list:S.value,onDetail:function(e){var a=location.origin+location.pathname+"#/music-detail?id="+e.id;c(a,(function(){b.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!L.value&&s(p,{tips:"暂无单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),a("C",t({name:"MusicList",emits:["favorite"],setup:function(a,t){var o=t.expose,m=(t.emit,n()),h=u(),b=i({search:m.query.search||"",musicTagIds:m.query.tagids||"",page:1}),_=l([]),x=l(null),S=l(!1),L=l(!1),T=l(!1),w=function(){var a=r(regeneratorRuntime.mark((function a(){var t;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!S.value){a.next=2;break}return a.abrupt("return");case 2:return S.value=!0,T.value=!1,a.prev=4,a.next=7,v("/music/sheet/favorite",{prefix:"TEACHER"===f.platformType?"/api-teacher":"/api-student",params:b});case 7:t=a.sent,_.value=[].concat(e(_.value),e(t.data.rows)),x.value=t.data,b.page=t.data.pageNo+1,L.value=t.data.pageNo>=t.data.totalPage,a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),T.value=!0;case 17:S.value=!1;case 18:case"end":return a.stop()}}),a,null,[[4,14]])})));return function(){return a.apply(this,arguments)}}();return o({reset:function(){T.value=!1,_.value=[],b.page=1,L.value=!1,w()},FetchList:w}),function(){return s(d,{loading:S.value,finished:L.value,"finished-text":_.value.length?"没有更多了":"",onLoad:w,error:T.value},{default:function(){return[_.value.length?s("div",{class:y.personalSong},[s(g,{list:_.value,onDetail:function(e){var a=location.origin+location.pathname+"#/music-detail?id="+e.id;c(a,(function(){h.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!S.value&&s(p,{tips:"暂无收藏单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),a("a",t({name:"MusicList",setup:function(){var a=n(),t=u(),o=i({search:a.query.search||"",musicTagIds:a.query.tagids||"",page:1}),c=l([]),g=l(null),h=l(!1),b=l(!1),_=l(!1),x=function(){var a=r(regeneratorRuntime.mark((function a(){var t;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!h.value){a.next=2;break}return a.abrupt("return");case 2:return h.value=!0,_.value=!1,a.prev=4,a.next=7,v("/music/album/favorite",{prefix:"TEACHER"===f.platformType?"/api-teacher":"/api-student",params:o});case 7:t=a.sent,c.value=[].concat(e(c.value),e(t.data.rows)),g.value=t.data,o.page=t.data.pageNo+1,b.value=t.data.pageNo>=t.data.totalPage,a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),_.value=!0;case 17:h.value=!1;case 18:case"end":return a.stop()}}),a,null,[[4,14]])})));return function(){return a.apply(this,arguments)}}();return function(){return s(d,{loading:h.value,finished:b.value,"finished-text":c.value.length?"没有更多了":"",onLoad:x,error:_.value},{default:function(){return[c.value.length?s("div",{class:y.musicGrid},[s(m,{list:g.value.rows,onGoto:function(e){t.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!h.value&&s(p,{tips:"暂无收藏专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),a("A",t({name:"MusicList",props:{gift:{type:Number,default:0}},setup:function(a){n();var t=u(),c=i({page:1,gift:a.gift}),g=l([]),h=l(null),b=l(!1),_=l(!1),x=l(!1),S=function(){var a=r(regeneratorRuntime.mark((function a(){var t;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!b.value){a.next=2;break}return a.abrupt("return");case 2:return b.value=!0,x.value=!1,a.prev=4,a.next=7,v("/music/album/purchased",{prefix:"TEACHER"===f.platformType?"/api-teacher":"/api-student",params:c});case 7:t=a.sent,g.value=[].concat(e(g.value),e(t.data.rows)),h.value=t.data,c.page=t.data.pageNo+1,_.value=t.data.pageNo>=t.data.totalPage,a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),x.value=!0;case 17:b.value=!1;case 18:case"end":return a.stop()}}),a,null,[[4,14]])})));return function(){return a.apply(this,arguments)}}();return o((function(){return a.gift}),(function(e){x.value=!1,g.value=[],c.page=1,_.value=!1,c.gift=e,S()})),function(){return s(d,{loading:b.value,finished:_.value,"finished-text":g.value.length?"没有更多了":"",onLoad:S,error:x.value},{default:function(){return[g.value.length?s("div",{class:y.musicGrid},[s(m,{isHiddenTag:!0,list:h.value.rows,onGoto:function(e){t.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!b.value&&s(p,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}))}}}))}();