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,o){try{var l=e[u](o),i=l.value}catch(c){return void a(c)}l.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 o=e.apply(n,t);function l(e){a(o,r,u,l,i,"next",e)}function i(e){a(o,r,u,l,i,"throw",e)}l(void 0)}))}}var r=document.createElement("style");r.innerHTML="._personal_60b5o_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_60b5o_1 .van-tab{font-size:.42667rem!important;margin-top:.4rem;color:#999}._personal_60b5o_1 .van-tab--active{font-size:.42667rem!important;font-weight:500;color:#000}._personal_60b5o_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_60b5o_1 .van-button--plain.van-button--primary{background-color:transparent}._personal_60b5o_1 .van-sticky{background:url(./assets/bg-image-1.8c8cf3ab.png) no-repeat top center;background-size:cover}._personal_60b5o_1 .van-search__content{background:rgba(255,255,255,.5)!important}._personal_60b5o_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._personal_60b5o_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._personal_60b5o_1 .van-search__content input,._personal_60b5o_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._personal_60b5o_1 ._bgImg_60b5o_43{position:fixed;top:0;left:0;width:100%;z-index:-1}._pTitle_60b5o_50{font-size:.42667rem;font-weight:600;color:#131415}._practice_60b5o_55,._personalSong_60b5o_56{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:0 .37333rem .37333rem}._personalSong_60b5o_56{margin:.37333rem}._musicGrid_60b5o_65{margin:.42667rem .32rem}._tennatCellGroup_60b5o_68{margin:.32rem;border-radius:.42667rem}._tennatCellGroup_60b5o_68 .van-cell{padding:.4rem .32rem;font-size:.4rem}._tennatCellGroup_60b5o_68 .van-cell__right-icon{font-size:.42667rem;color:#dadada}._tennatCellGroup_60b5o_68 ._tenantLogo_60b5o_80{width:.64rem;height:.64rem;border-radius:50%;margin-right:.21333rem}._tennatCellGroup_60b5o_68 ._tenantCoverImg_60b5o_86{width:2.61333rem;height:2.61333rem;border-radius:.32rem;margin-right:.42667rem;overflow:hidden}._tennatCellGroup_60b5o_68 ._tenantContent_60b5o_93{padding-top:.16rem}._tennatCellGroup_60b5o_68 ._tenantContent_60b5o_93 h2{font-size:.42667rem;font-weight:500;color:#131415;line-height:.64rem}._tennatCellGroup_60b5o_68 ._tenantContent_60b5o_93 p{padding-top:.16rem;font-size:.34667rem;color:#777;line-height:.64rem}\n",document.head.appendChild(r),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","./index-legacy.1c1000df.js","./index-legacy.f52c26b4.js","./index-legacy.9eaf8265.js","./bg-image-1-legacy.5c9f0c4e.js","./music-legacy.7769391f.js","./hooks-legacy.84a774a1.js","./index-legacy.909b3c1c.js","./index-legacy.885c229f.js","./index-legacy.5907f1a9.js","./index-legacy.5b93d63d.js","./use-id-legacy.29724920.js","./use-tab-status-legacy.a19d344b.js","./use-refs-legacy.14daae14.js","./index-legacy.77670d98.js","./icon-xin2-legacy.d521c9ab.js","./index-legacy.1b471fb9.js"],(function(n){"use strict";var a,r,u,o,l,i,c,s,p,v,d,f,g,m,b,_,h,y,x,C,w,S,T,I,k,L,j;return{setters:[function(e){a=e.d,r=e.P,u=e.S,o=e.w,l=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,b=e.a},function(e){_=e.c},function(e){h=e.C},function(e){y=e.S},function(e){x=e.L},function(e){C=e.M},function(e){w=e.b},function(e){S=e.g},function(e){T=e.u},function(e){I=e.T},function(e){k=e.C},function(e){L=e.C},function(e){j=e.I},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var A={personal:"_personal_60b5o_1",bgImg:"_bgImg_60b5o_43",pTitle:"_pTitle_60b5o_50",practice:"_practice_60b5o_55",personalSong:"_personalSong_60b5o_56",musicGrid:"_musicGrid_60b5o_65",tennatCellGroup:"_tennatCellGroup_60b5o_68",tenantLogo:"_tenantLogo_60b5o_80",tenantCoverImg:"_tenantCoverImg_60b5o_86",tenantContent:"_tenantContent_60b5o_93"},E=a({name:"Practice",emits:["favorite"],setup:function(e,n){var a=n.expose,t=(n.emit,r()),p=u(0),v=_((function(e){return o.get("/music/sheet/practice",{prefix:"TEACHER"===l.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(h,{titleClass:A.pTitle,title:"最近练习",border:!1},null),i("div",{class:A.practice},[i(y,{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)])])])}}}),G=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(),b=v({search:g.query.search||"",musicTagIds:g.query.tagids||"",gift:n.gift,page:1}),_=u(null),h=u([]),C=u(!1),w=u(!1),S=u(!1),T=function(){var n=t(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!C.value){n.next=2;break}return n.abrupt("return");case 2:return C.value=!0,S.value=!1,n.prev=4,n.next=7,o("/music/sheet/my",{method:"TEACHER"===l.platformType?"POST":"GET",prefix:"TEACHER"===l.platformType?"/api-teacher":"/api-student",params:b,data:"TEACHER"===l.platformType?b:{}});case 7:a=n.sent,h.value=[].concat(e(h.value),e(a.data.rows)),_.value=a.data,b.page=a.data.pageNo+1,w.value=a.data.pageNo>=a.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),S.value=!0;case 17:C.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){S.value=!1,h.value=[],b.page=1,w.value=!1,b.gift=e,T()})),c({reset:function(){S.value=!1,h.value=[],b.page=1,w.value=!1,T()},FetchList:T}),function(){return i(x,{loading:C.value,finished:w.value,"finished-text":h.value.length?"没有更多了":"",onLoad:T,error:S.value},{default:function(){return[h.value.length?i("div",{class:A.personalSong},[i(y,{showTitleImg:!0,list:h.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)]):!C.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}),b=u([]),_=u(null),h=u(!1),C=u(!1),w=u(!1),S=function(){var n=t(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!h.value){n.next=2;break}return n.abrupt("return");case 2:return h.value=!0,w.value=!1,n.prev=4,n.next=7,o("/music/sheet/favorite",{prefix:"TEACHER"===l.platformType?"/api-teacher":"/api-student",params:m});case 7:a=n.sent,b.value=[].concat(e(b.value),e(a.data.rows)),_.value=a.data,m.page=a.data.pageNo+1,C.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:h.value=!1;case 18:case"end":return n.stop()}}),n,null,[[4,14]])})));return function(){return n.apply(this,arguments)}}();return c({reset:function(){w.value=!1,b.value=[],m.page=1,C.value=!1,S()},FetchList:S}),function(){return i(x,{loading:h.value,finished:C.value,"finished-text":b.value.length?"没有更多了":"",onLoad:S,error:w.value},{default:function(){return[b.value.length?i("div",{class:A.personalSong},[i(y,{showTitleImg:!0,list:b.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)]):!h.value&&i(f,{tips:"暂无收藏单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),z=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),b=u(!1),_=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,b.value=!1,n.prev=4,n.next=7,o("/music/album/favorite",{prefix:"TEACHER"===l.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),b.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(x,{loading:g.value,finished:m.value,"finished-text":s.value.length?"没有更多了":"",onLoad:_,error:b.value},{default:function(){return[s.value.length?i("div",{class:A.musicGrid},[i(C,{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)]}})}}}),N=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),b=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(!m.value){n.next=2;break}return n.abrupt("return");case 2:return m.value=!0,_.value=!1,n.prev=4,n.next=7,o("/music/album/purchased",{prefix:"TEACHER"===l.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,b.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: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){_.value=!1,s.value=[],c.page=1,b.value=!1,c.gift=e,h()})),function(){return i(x,{loading:m.value,finished:b.value,"finished-text":s.value.length?"没有更多了":"",onLoad:h,error:_.value},{default:function(){return[s.value.length?i("div",{class:A.musicGrid},[i(C,{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)]}})}}}),M=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,o.post("/userTenantAlbumRecord/page",{prefix:"TEACHER"===l.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(x,{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(L,{class:A.tennatCellGroup,border:!1,onClick:function(){return function(e){n.push({path:"/train-tool",query:{albumId:e.id,buy:"1"}})}(e)}},{default:function(){return[i(h,{isLink:!0,clickable:!1},{icon:function(){return i("img",{src:e.tenantImg,class:A.tenantLogo},null)},title:function(){return i("div",{class:A.tenantName},[e.tenantName])}}),i(h,null,{icon:function(){return i(j,{src:e.coverImg,class:A.tenantCoverImg},null)},title:function(){return i("div",{class:A.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",S());var e=sessionStorage.getItem("music-personal-tab-value");sessionStorage.removeItem("music-personal-tab-value");var n=u(e||"train-course");sessionStorage.setItem("music-personal-tab-value",n.value);var a=u(),t=u(),r=u();return g((function(){T("我的乐谱")})),function(){return i("div",{class:A.personal},[i(I,{position:"top"},{default:function(){return[i(k,{background:"transparent",isFixed:!1,border:!1,color:"#131415"},null)]}}),i("img",{class:A.bgImg,src:w},null),i(E,{ref:r,onFavorite:function(){var e,r;if("personal"===n.value)null===(e=a.value)||void 0===e||null===(r=e.reset)||void 0===r||r.call(e);else if("collection"===n.value){var u,o;null===(u=t.value)||void 0===u||null===(o=u.reset)||void 0===o||o.call(u)}}},null),i(m,{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(b,{title:"训练教程",name:"train-course"},null),i(b,{title:"我的单曲",name:"personal"},null),i(b,{title:"我的专辑",name:"personal-album"},null),i(b,{title:"收藏单曲",name:"collection"},null),i(b,{title:"收藏专辑",name:"album"},null)]}}),"train-course"===n.value&&i(M,null,null),("personal"===n.value||"personal-gift"===n.value)&&i(G,{ref:a,gift:"personal-gift"===n.value?1:0,onFavorite:function(){var e,n;null===(e=r.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),("personal-album"===n.value||"album-gift"===n.value)&&i(N,{gift:"album-gift"===n.value?1:0},null),"collection"===n.value&&i(R,{ref:t,onFavorite:function(){var e,n;null===(e=r.value)||void 0===e||null===(n=e.reload)||void 0===n||n.call(e)}},null),"album"===n.value&&i(z,null,null)])}}}))}}}))}();
|