index-legacy.e59e0839.js 15 KB

1
  1. !function(){function e(e){return function(e){if(Array.isArray(e))return n(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 n(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(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 n(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}function a(e,n,a,t,r,u,l){try{var o=e[u](l),i=o.value}catch(c){return void a(c)}o.done?n(i):Promise.resolve(i).then(t,r)}function t(e){return function(){var n=this,t=arguments;return new Promise((function(r,u){var l=e.apply(n,t);function o(e){a(l,r,u,o,i,"next",e)}function i(e){a(l,r,u,o,i,"throw",e)}o(void 0)}))}}var r=document.createElement("style");r.innerHTML="._personal_ojpxq_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_ojpxq_1 .van-tab{font-size:.42667rem!important;margin-top:.4rem;color:#999}._personal_ojpxq_1 .van-tab--active{font-size:.42667rem!important;color:var(--van-primary)}._personal_ojpxq_1 .van-tabs__line{width:.64rem;height:.10667rem;background:linear-gradient(90deg,#FF3C81 0%,rgba(255,118,166,.5) 100%)!important;border-radius:.96rem .96rem 0 0}._personal_ojpxq_1 .van-button--plain.van-button--primary{background-color:transparent}._personal_ojpxq_1 .van-sticky{background:url(./assets/bg-image.e89554da.png) no-repeat top center;background-size:100% 5.70667rem}._personal_ojpxq_1 .van-search__content{background:rgba(255,255,255,.5)!important}._personal_ojpxq_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._personal_ojpxq_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._personal_ojpxq_1 .van-search__content input,._personal_ojpxq_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._personal_ojpxq_1 ._bgImg_ojpxq_42{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._pTitle_ojpxq_50{font-size:.42667rem;font-weight:600;color:#131415}._practice_ojpxq_55,._personalSong_ojpxq_56{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:0 .37333rem .37333rem}._personalSong_ojpxq_56{margin:.37333rem}._musicGrid_ojpxq_65{margin:.42667rem .32rem}._tennatCellGroup_ojpxq_68{margin:.32rem;border-radius:.42667rem}._tennatCellGroup_ojpxq_68 .van-cell{padding:.4rem .32rem;font-size:.4rem}._tennatCellGroup_ojpxq_68 .van-cell__right-icon{font-size:.42667rem;color:#dadada}._tennatCellGroup_ojpxq_68 ._tenantLogo_ojpxq_80{width:.64rem;height:.64rem;border-radius:50%;margin-right:.21333rem}._tennatCellGroup_ojpxq_68 ._tenantCoverImg_ojpxq_86{width:2.61333rem;height:2.61333rem;border-radius:.32rem;margin-right:.42667rem;overflow:hidden}._tennatCellGroup_ojpxq_68 ._tenantContent_ojpxq_93 h2{font-size:.42667rem;font-weight:500;color:#131415;line-height:.64rem}._tennatCellGroup_ojpxq_68 ._tenantContent_ojpxq_93 p{font-size:.34667rem;color:#777;line-height:.64rem}\n",document.head.appendChild(r),System.register(["./index-legacy.fba2875c.js","./index-legacy.edb65d0c.js","./index-legacy.af00a324.js","./index-legacy.5aeab789.js","./index-legacy.33680739.js","./index-legacy.7dcec7b3.js","./index-legacy.85fd8338.js","./index-legacy.a7012d0a.js","./index-legacy.2374f896.js","./bg-image-legacy.44e2b3db.js","./music-legacy.bbe2d538.js","./hooks-legacy.148eb332.js","./index-legacy.0e744c22.js","./index-legacy.e7460ea1.js","./index-legacy.f231f1c5.js","./index-legacy.d92f7da7.js","./use-id-legacy.db87b112.js","./use-tab-status-legacy.8752ccde.js","./use-refs-legacy.2affcb61.js","./icon-xin-legacy.98015baf.js","./index-legacy.1c1cdc6c.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js"],(function(n){"use strict";var a,r,u,l,o,i,c,s,p,v,d,f,g,m,_,h,b,x,y,j,q,w,C,T,S,k,L;return{setters:[function(e){a=e.d,r=e.P,u=e.S,l=e.w,o=e.g,i=e.j,c=e.F,s=e.be,p=e.O,v=e.Q,d=e.a2,f=e.C,g=e.U},function(){},function(){},function(e){m=e.T,_=e.a},function(e){h=e.b},function(e){b=e.C},function(e){x=e.S},function(e){y=e.L},function(e){j=e.M},function(e){q=e.b},function(e){w=e.g},function(e){C=e.u},function(e){T=e.T},function(e){S=e.C},function(e){k=e.C},function(e){L=e.I},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var I={personal:"_personal_ojpxq_1",bgImg:"_bgImg_ojpxq_42",pTitle:"_pTitle_ojpxq_50",practice:"_practice_ojpxq_55",personalSong:"_personalSong_ojpxq_56",musicGrid:"_musicGrid_ojpxq_65",tennatCellGroup:"_tennatCellGroup_ojpxq_68",tenantLogo:"_tenantLogo_ojpxq_80",tenantCoverImg:"_tenantCoverImg_ojpxq_86",tenantContent:"_tenantContent_ojpxq_93"},A=a({name:"Practice",emits:["favorite"],setup:function(e,n){var a=n.expose,t=(n.emit,r()),p=u(0),v=h((function(e){return l.get("/music/sheet/practice",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:{rows:(null==e?void 0:e.rows)||3}})}),null),d=(v.isLoading,v.state);return a({reload:v.execute}),function(){var e,n=(null===(e=d.value)||void 0===e?void 0:e.data.rows)||[];return 0===p.value&&(p.value=n.length),i(c,null,[p.value>0&&i(c,null,[i(b,{titleClass:I.pTitle,title:"最近练习",border:!1},null),i("div",{class:I.practice},[i(x,{showTitleImg:!0,list:n,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;s(n,(function(){t.push({path:"/music-detail",query:{id:e.id}})}))}},null)])])])}}}),E=a({name:"MusicList",emits:["favorite"],props:{gift:{type:Number,default:0}},setup:function(n,a){var c=a.expose,g=(a.emit,p()),m=r(),_=v({search:g.query.search||"",musicTagIds:g.query.tagids||"",gift:n.gift,page:1}),h=u(null),b=u([]),j=u(!1),q=u(!1),w=u(!1),C=function(){var n=t(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!j.value){n.next=2;break}return n.abrupt("return");case 2:return j.value=!0,w.value=!1,n.prev=4,n.next=7,l("/music/sheet/my",{method:"TEACHER"===o.platformType?"POST":"GET",prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:_,data:"TEACHER"===o.platformType?_:{}});case 7:a=n.sent,b.value=[].concat(e(b.value),e(a.data.rows)),h.value=a.data,_.page=a.data.pageNo+1,q.value=a.data.pageNo>=a.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),w.value=!0;case 17:j.value=!1;case 18:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(){return n.apply(this,arguments)}}();return d((function(){return n.gift}),(function(e){w.value=!1,b.value=[],_.page=1,q.value=!1,_.gift=e,C()})),c({reset:function(){w.value=!1,b.value=[],_.page=1,q.value=!1,C()},FetchList:C}),function(){return i(y,{loading:j.value,finished:q.value,"finished-text":b.value.length?"没有更多了":"",onLoad:C,error:w.value},{default:function(){return[b.value.length?i("div",{class:I.personalSong},[i(x,{showTitleImg:!0,list:b.value,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;s(n,(function(){m.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!j.value&&i(f,{tips:"暂无单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),R=a({name:"MusicList",emits:["favorite"],setup:function(n,a){var c=a.expose,d=(a.emit,p()),g=r(),m=v({search:d.query.search||"",musicTagIds:d.query.tagids||"",page:1}),_=u([]),h=u(null),b=u(!1),j=u(!1),q=u(!1),w=function(){var n=t(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!b.value){n.next=2;break}return n.abrupt("return");case 2:return b.value=!0,q.value=!1,n.prev=4,n.next=7,l("/music/sheet/favorite",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:m});case 7:a=n.sent,_.value=[].concat(e(_.value),e(a.data.rows)),h.value=a.data,m.page=a.data.pageNo+1,j.value=a.data.pageNo>=a.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),q.value=!0;case 17:b.value=!1;case 18:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(){return n.apply(this,arguments)}}();return c({reset:function(){q.value=!1,_.value=[],m.page=1,j.value=!1,w()},FetchList:w}),function(){return i(y,{loading:b.value,finished:j.value,"finished-text":_.value.length?"没有更多了":"",onLoad:w,error:q.value},{default:function(){return[_.value.length?i("div",{class:I.personalSong},[i(x,{showTitleImg:!0,list:_.value,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;s(n,(function(){g.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!b.value&&i(f,{tips:"暂无收藏单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),G=a({name:"MusicList",setup:function(){var n=p(),a=r(),c=v({search:n.query.search||"",musicTagIds:n.query.tagids||"",page:1}),s=u([]),d=u(null),g=u(!1),m=u(!1),_=u(!1),h=function(){var n=t(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!g.value){n.next=2;break}return n.abrupt("return");case 2:return g.value=!0,_.value=!1,n.prev=4,n.next=7,l("/music/album/favorite",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:c});case 7:a=n.sent,s.value=[].concat(e(s.value),e(a.data.rows)),d.value=a.data,c.page=a.data.pageNo+1,m.value=a.data.pageNo>=a.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),_.value=!0;case 17:g.value=!1;case 18:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(){return n.apply(this,arguments)}}();return function(){return i(y,{loading:g.value,finished:m.value,"finished-text":s.value.length?"没有更多了":"",onLoad:h,error:_.value},{default:function(){return[s.value.length?i("div",{class:I.musicGrid},[i(j,{list:d.value.rows,onGoto:function(e){a.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!g.value&&i(f,{tips:"暂无收藏专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),z=a({name:"MusicList",props:{gift:{type:Number,default:0}},setup:function(n){p();var a=r(),c=v({page:1,gift:n.gift}),s=u([]),g=u(null),m=u(!1),_=u(!1),h=u(!1),b=function(){var n=t(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!m.value){n.next=2;break}return n.abrupt("return");case 2:return m.value=!0,h.value=!1,n.prev=4,n.next=7,l("/music/album/purchased",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:c});case 7:a=n.sent,s.value=[].concat(e(s.value),e(a.data.rows)),g.value=a.data,c.page=a.data.pageNo+1,_.value=a.data.pageNo>=a.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),h.value=!0;case 17:m.value=!1;case 18:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(){return n.apply(this,arguments)}}();return d((function(){return n.gift}),(function(e){h.value=!1,s.value=[],c.page=1,_.value=!1,c.gift=e,b()})),function(){return i(y,{loading:m.value,finished:_.value,"finished-text":s.value.length?"没有更多了":"",onLoad:b,error:h.value},{default:function(){return[s.value.length?i("div",{class:I.musicGrid},[i(j,{isHiddenTag:!0,list:g.value.rows,onGoto:function(e){a.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!m.value&&i(f,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),N=a({name:"tenant-album",setup:function(){var n=r(),a=v({page:1,rows:20}),c=u([]),s=u(null),p=u(!1),d=u(!1),g=u(!1),m=function(){var n=t(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!p.value){n.next=2;break}return n.abrupt("return");case 2:return p.value=!0,g.value=!1,n.prev=4,n.next=7,l.post("/userTenantAlbumRecord/page",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",data:a});case 7:t=n.sent,c.value=[].concat(e(c.value),e(t.data.rows)),s.value=t.data,console.log(s.value),a.page=t.data.pageNo+1,d.value=t.data.pageNo>=t.data.totalPage,n.next=18;break;case 15:n.prev=15,n.t0=n.catch(4),g.value=!0;case 18:p.value=!1;case 19:case"end":return n.stop()}}),n,null,[[4,15]])})));return function(){return n.apply(this,arguments)}}();return function(){return i(y,{loading:p.value,finished:d.value,"finished-text":c.value.length?" ":"",onLoad:m,error:g.value},{default:function(){return[c.value.length?c.value.map((function(e){return i(k,{class:I.tennatCellGroup,border:!1,onClick:function(){return function(e){n.push({path:"/train-tool",query:{albumId:e.id}})}(e)}},{default:function(){return[i(b,{isLink:!0,clickable:!1},{icon:function(){return i("img",{src:e.tenantImg,class:I.tenantLogo},null)},title:function(){return i("div",{class:I.tenantName},[e.tenantName])}}),i(b,null,{icon:function(){return i(L,{src:e.coverImg,class:I.tenantCoverImg},null)},title:function(){return i("div",{class:I.tenantContent},[i("h2",null,[e.name]),i("p",{class:"van-multi-ellipsis--l2"},[e.describe])])}})]}})})):!p.value&&i(f,{tips:"暂无训练教程",classImgSize:"SMALL",btnStatus:!1},null)]}})}}});n("default",a({name:"MusicPersonal",setup:function(){localStorage.setItem("behaviorId",w());var e=u("train-course"),n=u(),a=u(),t=u();return g((function(){C("我的乐谱")})),function(){return i("div",{class:I.personal},[i(T,{position:"top"},{default:function(){return[i(S,{background:"transparent",isFixed:!1,border:!1,color:"#131415"},null)]}}),i("img",{class:I.bgImg,src:q},null),i(A,{ref:t,onFavorite:function(){var t,r;if("personal"===e.value)null===(t=n.value)||void 0===t||null===(r=t.reset)||void 0===r||r.call(t);else if("collection"===e.value){var u,l;null===(u=a.value)||void 0===u||null===(l=u.reset)||void 0===l||l.call(u)}}},null),i(m,{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(_,{title:"训练教程",name:"train-course"},null),i(_,{title:"我的单曲",name:"personal"},null),i(_,{title:"我的专辑",name:"personal-album"},null),i(_,{title:"收藏单曲",name:"collection"},null),i(_,{title:"收藏专辑",name:"album"},null)]}}),"train-course"===e.value&&i(N,null,null),("personal"===e.value||"personal-gift"===e.value)&&i(E,{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(z,{gift:"album-gift"===e.value?1:0},null),"collection"===e.value&&i(R,{ref:a,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(G,null,null)])}}}))}}}))}();