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.fba2875c.js","./index-legacy.a7012d0a.js","./index-legacy.da4067bb.js","./index-legacy.e6c10c75.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.O,u=e.P,i=e.Q,l=e.S,o=e.a2,s=e.j,c=e.w,p=e.g,v=e.be,f=e.C},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([]),w=l(!1),L=l(!1),T=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(!w.value){a.next=2;break}return a.abrupt("return");case 2:return w.value=!0,T.value=!1,a.prev=4,a.next=7,c("/music/sheet/my",{method:"TEACHER"===p.platformType?"POST":"GET",prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:_,data:"TEACHER"===p.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,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:w.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){T.value=!1,S.value=[],_.page=1,L.value=!1,_.gift=e,A()})),m({reset:function(){T.value=!1,S.value=[],_.page=1,L.value=!1,A()},FetchList:A}),function(){return s(d,{loading:w.value,finished:L.value,"finished-text":S.value.length?"没有更多了":"",onLoad:A,error:T.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;v(a,(function(){b.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!w.value&&s(f,{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),w=l(!1),L=l(!1),T=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,L.value=!1,a.prev=4,a.next=7,c("/music/sheet/favorite",{prefix:"TEACHER"===p.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,w.value=t.data.pageNo>=t.data.totalPage,a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),L.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(){L.value=!1,_.value=[],b.page=1,w.value=!1,T()},FetchList:T}),function(){return s(d,{loading:S.value,finished:w.value,"finished-text":_.value.length?"没有更多了":"",onLoad:T,error:L.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;v(a,(function(){h.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!S.value&&s(f,{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}),v=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,c("/music/album/favorite",{prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:o});case 7:t=a.sent,v.value=[].concat(e(v.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":v.value.length?"没有更多了":"",onLoad:x,error:_.value},{default:function(){return[v.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(f,{tips:"暂无收藏专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),a("A",t({name:"MusicList",props:{gift:{type:Number,default:0}},setup:function(a){n();var t=u(),v=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,c("/music/album/purchased",{prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:v});case 7:t=a.sent,g.value=[].concat(e(g.value),e(t.data.rows)),h.value=t.data,v.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=[],v.page=1,_.value=!1,v.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(f,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}))}}}))}();
|