album-my-legacy.4b6474f3.js 8.8 KB

1
  1. !function(){function e(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,a){if(!e)return;if("string"==typeof e)return t(e,a);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 t(e,a)}(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,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function a(e,t,a,n,r,i,u){try{var o=e[i](u),s=o.value}catch(l){return void a(l)}o.done?t(s):Promise.resolve(s).then(n,r)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var u=e.apply(t,n);function o(e){a(u,r,i,o,s,"next",e)}function s(e){a(u,r,i,o,s,"throw",e)}o(void 0)}))}}var r=document.createElement("style");r.innerHTML="._personal_tq7si_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_tq7si_1 .van-tab{font-size:.42667rem!important;margin-top:.4rem;color:#999}._personal_tq7si_1 .van-tab--active{font-size:.42667rem!important;color:var(--van-primary)}._personal_tq7si_1 .van-button--plain.van-button--primary{background-color:transparent}._songEfficacy_tq7si_20{background:#FFFFFF;border-radius:.26667rem}._songContainer_tq7si_24{width:6.34667rem;padding-top:.48rem;padding-bottom:.48rem}._songContainer_tq7si_24 ._title_tq7si_29{font-size:.42667rem;color:#666;line-height:.64rem;text-align:center}._songContainer_tq7si_24 img{margin:.26667rem auto .42667rem;width:3.54667rem;height:2.61333rem;display:block}._songContainer_tq7si_24 ._btnGroup_tq7si_41{text-align:center}._songContainer_tq7si_24 ._btnGroup_tq7si_41 .van-button{--van-button-default-height: 1.06667rem;width:3.46667rem;font-size:.42667rem;color:#333}._practice_tq7si_50,._personalSong_tq7si_51{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:0 .37333rem .37333rem}._personalSong_tq7si_51{margin:.37333rem}._musicGrid_tq7si_60{margin:.42667rem .32rem}\n",document.head.appendChild(r),System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.c07bb851.js","./index-legacy.c6de691c.js","./index-legacy.fc9acec5.js"],(function(t){"use strict";var a,r,i,u,o,s,l,c,p,v,f,d,m,g;return{setters:[function(e){a=e.d,r=e.P,i=e.Q,u=e.S,o=e.U,s=e.a3,l=e.j,c=e.y,p=e.g,v=e.be,f=e.C},function(e){d=e.L},function(e){m=e.S},function(e){g=e.M}],execute:function(){var _=t("s",{personal:"_personal_tq7si_1",songEfficacy:"_songEfficacy_tq7si_20",songContainer:"_songContainer_tq7si_24",title:"_title_tq7si_29",btnGroup:"_btnGroup_tq7si_41",practice:"_practice_tq7si_50",personalSong:"_personalSong_tq7si_51",musicGrid:"_musicGrid_tq7si_60"});t("P",a({name:"MusicList",emits:["favorite"],props:{gift:{type:Number,default:0}},setup:function(t,a){var g=a.expose,h=(a.emit,r()),y=i(),b=u({search:h.query.search||"",musicTagIds:h.query.tagids||"",gift:t.gift,page:1}),x=o(null),q=o([]),S=o(!1),T=o(!1),w=o(!1),L=function(){var t=n(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!S.value){t.next=2;break}return t.abrupt("return");case 2:return S.value=!0,w.value=!1,t.prev=4,t.next=7,c("/music/sheet/my",{method:"TEACHER"===p.platformType?"POST":"GET",prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:b,data:"TEACHER"===p.platformType?b:{}});case 7:a=t.sent,q.value=[].concat(e(q.value),e(a.data.rows)),x.value=a.data,b.page=a.data.pageNo+1,T.value=a.data.pageNo>=a.data.totalPage,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),w.value=!0;case 17:S.value=!1;case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return t.apply(this,arguments)}}();return s((function(){return t.gift}),(function(e){w.value=!1,q.value=[],b.page=1,T.value=!1,b.gift=e,L()})),g({reset:function(){w.value=!1,q.value=[],b.page=1,T.value=!1,L()},FetchList:L}),function(){return l(d,{loading:S.value,finished:T.value,"finished-text":q.value.length?"没有更多了":"",onLoad:L,error:w.value},{default:function(){return[q.value.length?l("div",{class:_.personalSong},[l(m,{list:q.value,onDetail:function(e){var t=location.origin+location.pathname+"#/music-detail?id="+e.id;v(t,(function(){y.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!S.value&&l(f,{tips:"暂无单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),t("C",a({name:"MusicList",emits:["favorite"],setup:function(t,a){var s=a.expose,g=(a.emit,r()),h=i(),y=u({search:g.query.search||"",musicTagIds:g.query.tagids||"",page:1}),b=o([]),x=o(null),q=o(!1),S=o(!1),T=o(!1),w=function(){var t=n(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!q.value){t.next=2;break}return t.abrupt("return");case 2:return q.value=!0,T.value=!1,t.prev=4,t.next=7,c("/music/sheet/favorite",{prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:y});case 7:a=t.sent,b.value=[].concat(e(b.value),e(a.data.rows)),x.value=a.data,y.page=a.data.pageNo+1,S.value=a.data.pageNo>=a.data.totalPage,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),T.value=!0;case 17:q.value=!1;case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return t.apply(this,arguments)}}();return s({reset:function(){T.value=!1,b.value=[],y.page=1,S.value=!1,w()},FetchList:w}),function(){return l(d,{loading:q.value,finished:S.value,"finished-text":b.value.length?"没有更多了":"",onLoad:w,error:T.value},{default:function(){return[b.value.length?l("div",{class:_.personalSong},[l(m,{list:b.value,onDetail:function(e){var t=location.origin+location.pathname+"#/music-detail?id="+e.id;e.favoriteProviderType&&(t+="&providerType=".concat(e.favoriteProviderType)),v(t,(function(){h.push({path:"/music-detail",query:{id:e.id,providerType:e.favoriteProviderType}})}))}},null)]):!q.value&&l(f,{tips:"暂无收藏单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),t("a",a({name:"MusicList",setup:function(){var t=r(),a=i(),s=u({search:t.query.search||"",musicTagIds:t.query.tagids||"",page:1}),v=o([]),m=o(null),h=o(!1),y=o(!1),b=o(!1),x=function(){var t=n(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!h.value){t.next=2;break}return t.abrupt("return");case 2:return h.value=!0,b.value=!1,t.prev=4,t.next=7,c("/music/album/favorite",{prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:s});case 7:a=t.sent,v.value=[].concat(e(v.value),e(a.data.rows)),m.value=a.data,s.page=a.data.pageNo+1,y.value=a.data.pageNo>=a.data.totalPage,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),b.value=!0;case 17:h.value=!1;case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return t.apply(this,arguments)}}();return function(){return l(d,{loading:h.value,finished:y.value,"finished-text":v.value.length?"没有更多了":"",onLoad:x,error:b.value},{default:function(){return[v.value.length?l("div",{class:_.musicGrid},[l(g,{list:m.value.rows,onGoto:function(e){a.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!h.value&&l(f,{tips:"暂无收藏专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}})),t("A",a({name:"MusicList",props:{gift:{type:Number,default:0}},setup:function(t){r();var a=i(),v=u({page:1,gift:t.gift}),m=o([]),h=o(null),y=o(!1),b=o(!1),x=o(!1),q=function(){var t=n(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!y.value){t.next=2;break}return t.abrupt("return");case 2:return y.value=!0,x.value=!1,t.prev=4,t.next=7,c("/music/album/purchased",{prefix:"TEACHER"===p.platformType?"/api-teacher":"/api-student",params:v});case 7:a=t.sent,m.value=[].concat(e(m.value),e(a.data.rows)),h.value=a.data,v.page=a.data.pageNo+1,b.value=a.data.pageNo>=a.data.totalPage,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),x.value=!0;case 17:y.value=!1;case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return t.apply(this,arguments)}}();return s((function(){return t.gift}),(function(e){x.value=!1,m.value=[],v.page=1,b.value=!1,v.gift=e,q()})),function(){return l(d,{loading:y.value,finished:b.value,"finished-text":m.value.length?"没有更多了":"",onLoad:q,error:x.value},{default:function(){return[m.value.length?l("div",{class:_.musicGrid},[l(g,{isHiddenTag:!0,list:h.value.rows,onGoto:function(e){a.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!y.value&&l(f,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}))}}}))}();