index-legacy.d823e4d4.js 3.4 KB

1
  1. System.register(["./index-legacy.263fb109.js","./index-legacy.68849279.js","./index-legacy.e603bf4c.js","./index-legacy.f55dc9ae.js","./index-legacy.5f015351.js","./index-legacy.55a94761.js","./album-my-legacy.602b3471.js","./index-legacy.adae225f.js","./music-legacy.863ac723.js","./hooks-legacy.45548734.js","./use-id-legacy.aec7ad91.js","./use-tab-status-legacy.56051146.js","./use-refs-legacy.795bbff4.js","./index-legacy.c8c43642.js","./index-legacy.4d5acfe4.js","./index-legacy.716ee5df.js","./index-legacy.4c783170.js","./icon-xin-legacy.a17912c0.js","./icon_uploader-legacy.7d08d1c7.js","./icon_exquisite-legacy.22f81dc0.js","./icon_album_active-legacy.4c78a966.js","./icon_music_active-legacy.d6081e0f.js","./index-legacy.c610561c.js"],(function(e){"use strict";var n,l,a,i,t,u,c,o,r,s,f,d,v,g,m,p,y,j,b,x,h;return{setters:[function(e){n=e.d,l=e.M,a=e.O,i=e.i,t=e.be,u=e.F,c=e.e,o=e.s,r=e.P},function(){},function(){},function(e){s=e.T,f=e.a},function(e){d=e.b},function(e){v=e.C},function(e){g=e.s,m=e.P,p=e.A,y=e.C,j=e.a},function(e){b=e.S},function(e){x=e.g},function(e){h=e.u},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var _=n({name:"Practice",emits:["favorite"],setup:function(e,n){var r=n.expose,s=(n.emit,l()),f=a(0),m=d((function(e){return c.get("/music/sheet/practice",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:{rows:(null==e?void 0:e.rows)||3}})}),null),p=(m.isLoading,m.state);return r({reload:m.execute}),function(){var e,n=(null===(e=p.value)||void 0===e?void 0:e.data.rows)||[];return 0===f.value&&(f.value=n.length),i(u,null,[f.value>0&&i(v,{title:"最近练习",border:!1},null),i("div",{class:g.practice},[i(b,{list:n,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;t(n,(function(){s.push({path:"/music-detail",query:{id:e.id}})}))}},null)])])}}});e("default",n({name:"MusicPersonal",setup:function(){localStorage.setItem("behaviorId",x());var e=a("personal"),n=a(),l=a(),t=a();return r((function(){h("我的乐谱")})),function(){return i("div",{class:g.personal},[i(_,{ref:t,onFavorite:function(){var a,i;if("personal"===e.value)null===(a=n.value)||void 0===a||null===(i=a.reset)||void 0===i||i.call(a);else if("collection"===e.value){var t,u;null===(t=l.value)||void 0===t||null===(u=t.reset)||void 0===u||u.call(t)}}},null),i(s,{color:"var(--van-primary)",background:"transparent",lineWidth:20,shrink:!0,active:e.value,"onUpdate:active":function(n){return e.value=n},onChange:function(n){return e.value=n}},{default:function(){return[i(f,{title:"我的单曲",name:"personal"},null),i(f,{title:"我的专辑",name:"personal-album"},null),i(f,{title:"收藏单曲",name:"collection"},null),i(f,{title:"收藏专辑",name:"album"},null),i(f,{title:"赠送单曲",name:"personal-gift"},null),i(f,{title:"赠送专辑",name:"album-gift"},null)]}}),("personal"===e.value||"personal-gift"===e.value)&&i(m,{ref:n,gift:"personal-gift"===e.value?1:0,onFavorite:function(){var e,n;null===(e=t.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),("personal-album"===e.value||"album-gift"===e.value)&&i(p,{gift:"album-gift"===e.value?1:0},null),"collection"===e.value&&i(y,{ref:l,onFavorite:function(){var e,n;null===(e=t.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),"album"===e.value&&i(j,null,null)])}}}))}}}));