index-legacy.59fa6bb2.js 3.8 KB

1
  1. System.register(["./index-legacy.b903c881.js","./index-legacy.8abefd50.js","./index-legacy.ae2ce69e.js","./index-legacy.ba78f33e.js","./index-legacy.8e85fa65.js","./index-legacy.b7f666cc.js","./album-my-legacy.2972edc1.js","./index-legacy.c848501c.js","./music-legacy.1b935274.js","./hooks-legacy.84a774a1.js","./index-legacy.885c229f.js","./use-id-legacy.29724920.js","./use-tab-status-legacy.a19d344b.js","./use-refs-legacy.14daae14.js","./index-legacy.77670d98.js","./index-legacy.f52c26b4.js","./index-legacy.24f66432.js","./index-legacy.1b471fb9.js","./index-legacy.5b93d63d.js","./icon-xin-legacy.34fb9986.js","./icon_uploader-legacy.b178a553.js","./icon_album-legacy.27017c0f.js","./icon_album_active-legacy.fcd6f4c0.js","./icon_exquisite-legacy.80eb242a.js","./icon_music_active-legacy.77693573.js","./icon-play-legacy.50b88257.js"],(function(e){"use strict";var n,l,a,i,t,u,c,o,s,r,f,v,d,g,m,b,p,y,j,x,h,S;return{setters:[function(e){n=e.d,l=e.P,a=e.S,i=e.j,t=e.be,u=e.F,c=e.w,o=e.g,s=e.U},function(){},function(){},function(e){r=e.T,f=e.a},function(e){v=e.c},function(e){d=e.C},function(e){g=e.s,m=e.P,b=e.A,p=e.C,y=e.a},function(e){j=e.S},function(e){x=e.g},function(e){h=e.u},function(e){S=e.C},function(){},function(){},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 s=n.expose,r=(n.emit,l()),f=a(0),m=v((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),b=(m.isLoading,m.state);return s({reload:m.execute}),function(){var e,n=(null===(e=b.value)||void 0===e?void 0:e.data.rows)||[];return 0===f.value&&(f.value=n.length),i(u,null,[f.value>0&&i(d,{title:"最近练习",border:!1},null),i("div",{class:g.practice},[i(j,{list:n,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;t(n,(function(){r.push({path:"/music-detail",query:{id:e.id}})}))}},null)])])}}});e("default",n({name:"MusicPersonal",setup:function(){localStorage.setItem("behaviorId",x());var e=sessionStorage.getItem("music-personal-tab-value");sessionStorage.removeItem("music-personal-tab-value");var n=a(e||"personal");sessionStorage.setItem("music-personal-tab-value",n.value);var l=a(),t=a(),u=a();return s((function(){h("我的乐谱")})),function(){return i("div",{class:g.personal},[i(S,null,null),i(_,{ref:u,onFavorite:function(){var e,a;if("personal"===n.value)null===(e=l.value)||void 0===e||null===(a=e.reset)||void 0===a||a.call(e);else if("collection"===n.value){var i,u;null===(i=t.value)||void 0===i||null===(u=i.reset)||void 0===u||u.call(i)}}},null),i(r,{color:"var(--van-primary)",background:"transparent",lineWidth:20,shrink:!0,active:n.value,"onUpdate:active":function(e){return n.value=e},onChange:function(e){n.value=e,sessionStorage.setItem("music-personal-tab-value",e)}},{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"===n.value||"personal-gift"===n.value)&&i(m,{ref:l,gift:"personal-gift"===n.value?1:0,onFavorite:function(){var e,n;null===(e=u.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),("personal-album"===n.value||"album-gift"===n.value)&&i(b,{gift:"album-gift"===n.value?1:0},null),"collection"===n.value&&i(p,{ref:t,onFavorite:function(){var e,n;null===(e=u.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),"album"===n.value&&i(y,null,null)])}}}))}}}));