index-legacy.f419c7d2.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.9fbf5cc3.js","./index-legacy.4b80dca1.js","./index-legacy.3f9a9bef.js","./index-legacy.0f88a417.js","./index-legacy.c48fc3b9.js","./index-legacy.bcebad5e.js","./index-legacy.c8adb932.js","./index-legacy.12606251.js","./index-legacy.97cb90e2.js","./bg-image-legacy.44e2b3db.js","./music-legacy.faebeddc.js","./hooks-legacy.27b6531c.js","./index-legacy.e7916e07.js","./index-legacy.a25aafdb.js","./index-legacy.2574bd80.js","./index-legacy.4f3e9447.js","./use-id-legacy.9657d9c0.js","./use-tab-status-legacy.d33bc5cf.js","./use-refs-legacy.c258289c.js","./icon-xin-legacy.98015baf.js","./index-legacy.bc1c2921.js","./index-legacy.8e975b15.js","./use-height-legacy.af126ed3.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,L,k,I;return{setters:[function(e){a=e.d,r=e.S,u=e.V,l=e.w,o=e.g,i=e.j,c=e.bf,s=e.F,p=e.Q,v=e.U,d=e.a4,f=e.C,g=e.B,m=e.W},function(){},function(){},function(e){_=e.T,h=e.a},function(e){b=e.b},function(e){x=e.C},function(e){y=e.S},function(e){j=e.L},function(e){q=e.M},function(e){w=e.b},function(e){C=e.g},function(e){T=e.u},function(e){S=e.T},function(e){L=e.C},function(e){k=e.C},function(e){I=e.I},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var A={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"},E=a({name:"Practice",emits:["favorite"],setup:function(e,n){var a=n.expose,t=(n.emit,r()),p=u(0),v=b((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(s,null,[p.value>0&&i(x,{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;c(n,(function(){t.push({path:"/music-detail",query:{id:e.id}})}))}},null)])])}}}),R=a({name:"MusicList",emits:["favorite"],props:{gift:{type:Number,default:0}},setup:function(n,a){var s=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([]),x=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(!x.value){n.next=2;break}return n.abrupt("return");case 2:return x.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:x.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()})),s({reset:function(){w.value=!1,b.value=[],_.page=1,q.value=!1,C()},FetchList:C}),function(){return i(j,{loading:x.value,finished:q.value,"finished-text":b.value.length?"没有更多了":"",onLoad:C,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;c(n,(function(){m.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!x.value&&i(f,{tips:"暂无单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),G=a({name:"MusicList",emits:["favorite"],setup:function(n,a){var s=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),x=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,x.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 s({reset:function(){q.value=!1,_.value=[],m.page=1,x.value=!1,w()},FetchList:w}),function(){return i(j,{loading:b.value,finished:x.value,"finished-text":_.value.length?"没有更多了":"",onLoad:w,error:q.value},{default:function(){return[_.value.length?i("div",{class:A.personalSong},[i(y,{showTitleImg:!0,list:_.value,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;c(n,(function(){g.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!b.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),_=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(j,{loading:g.value,finished:m.value,"finished-text":s.value.length?"没有更多了":"",onLoad:h,error:_.value},{default:function(){return[s.value.length?i("div",{class:A.musicGrid},[i(q,{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)]}})}}}),M=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(j,{loading:m.value,finished:_.value,"finished-text":s.value.length?"没有更多了":"",onLoad:b,error:h.value},{default:function(){return[s.value.length?i("div",{class:A.musicGrid},[i(q,{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(){r();var n=v({page:1,rows:20}),a=u([]),c=u(null),s=u(!1),p=u(!1),d=u(!1),m=function(){var r=t(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!s.value){t.next=2;break}return t.abrupt("return");case 2:return s.value=!0,d.value=!1,t.prev=4,t.next=7,l.post("/userTenantAlbumRecord/page",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",data:n});case 7:r=t.sent,a.value=[].concat(e(a.value),e(r.data.rows)),c.value=r.data,n.page=r.data.pageNo+1,p.value=r.data.pageNo>=r.data.totalPage,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),d.value=!0;case 17:s.value=!1;case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return r.apply(this,arguments)}}();return function(){return i(j,{loading:s.value,finished:p.value,"finished-text":a.value.length?"没有更多了":"",onLoad:m,error:d.value},{default:function(){return[a.value.length?i(k,{class:A.tennatCellGroup,border:!1},{default:function(){return[i(x,{isLink:!0},{icon:function(){return i("img",{class:A.tenantLogo},null)},title:function(){return i("div",{class:A.tenantName},[g("测试机构")])}}),i(x,null,{icon:function(){return i(I,{class:A.tenantCoverImg},null)},title:function(){return i("div",{class:A.tenantContent},[i("h2",null,[g("巴赫旧约 | 四号勃兰登堡长笛协奏曲")]),i("p",{class:"van-multi-ellipsis--l2"},[g("巴赫经典曲目巴赫经典曲目巴赫经典曲目巴赫经典曲目巴赫经典曲目 巴赫经典曲目 巴赫经典曲目 巴赫经典曲目 巴赫经典曲目")])])}})]}}):!s.value&&i(f,{tips:"暂无训练教程",classImgSize:"SMALL",btnStatus:!1},null)]}})}}});n("default",a({name:"MusicPersonal",setup:function(){localStorage.setItem("behaviorId",C());var e=u("train-course"),n=u(),a=u(),t=u();return m((function(){T("我的乐谱")})),function(){return i("div",{class:A.personal},[i(S,{position:"top"},{default:function(){return[i(L,{background:"transparent",isFixed:!1,border:!1,color:"#131415"},null)]}}),i("img",{class:A.bgImg,src:w},null),i(E,{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(_,{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(h,{title:"训练教程",name:"train-course"},null),i(h,{title:"我的单曲",name:"personal"},null),i(h,{title:"我的专辑",name:"personal-album"},null),i(h,{title:"收藏单曲",name:"collection"},null),i(h,{title:"收藏专辑",name:"album"},null)]}}),"train-course"===e.value&&i(N,null,null),("personal"===e.value||"personal-gift"===e.value)&&i(R,{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(M,{gift:"album-gift"===e.value?1:0},null),"collection"===e.value&&i(G,{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(z,null,null)])}}}))}}}))}();