index-legacy.81cf8b3e.js 3.7 KB

1
  1. System.register(["./index-legacy.396370dc.js","./index-legacy.f72d11a4.js","./index-legacy.3b03d5e2.js","./index-legacy.9dc8887a.js","./index-legacy.f26c6944.js","./index-legacy.64d896a6.js","./album-my-legacy.77d1aab4.js","./index-legacy.5473412f.js","./music-legacy.476aa529.js","./hooks-legacy.fc1d8d94.js","./index-legacy.67ecd3de.js","./use-id-legacy.ef6ad63d.js","./use-tab-status-legacy.8178268d.js","./use-refs-legacy.0835e65c.js","./index-legacy.131fc015.js","./index-legacy.17a2e6bb.js","./index-legacy.3e05556f.js","./index-legacy.88ccb3b2.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,p,y,b,j,x,h,S;return{setters:[function(e){n=e.d,l=e.P,a=e.S,i=e.j,t=e.bf,u=e.F,c=e.x,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,p=e.A,y=e.C,b=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(){}],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),p=(m.isLoading,m.state);return s({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(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(p,{gift:"album-gift"===n.value?1:0},null),"collection"===n.value&&i(y,{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(b,null,null)])}}}))}}}));