index-legacy.0d72d85f.js 15 KB

1
  1. !function(){function e(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(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 a(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t<a;t++)n[t]=e[t];return n}function t(e,a,t,n,r,u,i){try{var l=e[u](i),o=l.value}catch(c){return void t(c)}l.done?a(o):Promise.resolve(o).then(n,r)}function n(e){return function(){var a=this,n=arguments;return new Promise((function(r,u){var i=e.apply(a,n);function l(e){t(i,r,u,l,o,"next",e)}function o(e){t(i,r,u,l,o,"throw",e)}l(void 0)}))}}var r=document.createElement("style");r.innerHTML="._personal_197ar_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_197ar_1 .van-tab{font-size:.42667rem!important;margin-top:.4rem;color:#999}._personal_197ar_1 .van-tab--active{font-size:.42667rem!important;font-weight:500;color:#000}._personal_197ar_1 .van-tabs__line{display:none;width:.64rem;height:.10667rem;background:linear-gradient(90deg,#ff3c81 0%,rgba(255,118,166,.5) 100%)!important;border-radius:.96rem .96rem 0 0}._personal_197ar_1 .van-button--plain.van-button--primary{background-color:transparent}._personal_197ar_1 .van-sticky{background:url(./assets/bg-image-1.414abed8.png) no-repeat top center;background-size:cover}._personal_197ar_1 .van-search__content{background:rgba(255,255,255,.5)!important}._personal_197ar_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._personal_197ar_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._personal_197ar_1 .van-search__content input,._personal_197ar_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._personal_197ar_1 ._bgImg_197ar_44{position:fixed;top:0;left:0;width:100%;z-index:-1}._pTitle_197ar_51{font-size:.42667rem;font-weight:600;color:#131415}._practice_197ar_56,._personalSong_197ar_57{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:0 .37333rem .37333rem}._practice_197ar_56{margin-bottom:0}._personalSong_197ar_57{margin:.37333rem}._musicGrid_197ar_69{margin:.42667rem .32rem}._tennatCellGroup_197ar_72{margin:.18667rem .32rem .32rem;border-radius:.42667rem}._tennatCellGroup_197ar_72 .van-cell{padding:.4rem .32rem;font-size:.4rem}._tennatCellGroup_197ar_72 .van-cell__right-icon{font-size:.42667rem;color:#dadada}._tennatCellGroup_197ar_72 ._tenantLogo_197ar_84{width:.64rem;height:.64rem;border-radius:50%;margin-right:.21333rem}._tennatCellGroup_197ar_72 ._tenantCoverImg_197ar_90{width:2.34667rem;height:2.34667rem;border-radius:.32rem;margin-right:.32rem;overflow:hidden}._tennatCellGroup_197ar_72 ._tenantContent_197ar_97{padding-top:.16rem}._tennatCellGroup_197ar_72 ._tenantContent_197ar_97 h2{font-size:.42667rem;font-weight:500;color:#131415;line-height:.64rem;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}._tennatCellGroup_197ar_72 ._tenantContent_197ar_97 p{padding-top:.16rem;font-size:.34667rem;color:#777;line-height:.64rem;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:1;-webkit-box-orient:vertical}\n",document.head.appendChild(r),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","./index-legacy.d0274c22.js","./index-legacy.131fc015.js","./index-legacy.396611e9.js","./bg-image-1-legacy.249763f1.js","./music-legacy.08258adc.js","./hooks-legacy.fc1d8d94.js","./index-legacy.2efc356e.js","./index-legacy.67ecd3de.js","./index-legacy.2742bed6.js","./index-legacy.88ccb3b2.js","./use-id-legacy.ef6ad63d.js","./use-tab-status-legacy.8178268d.js","./use-refs-legacy.0835e65c.js","./icon-xin2-legacy.d521c9ab.js","./index-legacy.3e05556f.js"],(function(a){"use strict";var t,r,u,i,l,o,c,s,p,v,d,f,g,m,_,h,b,y,x,w,C,k,S,T,I,L,j;return{setters:[function(e){t=e.d,r=e.P,u=e.S,i=e.x,l=e.g,o=e.j,c=e.F,s=e.bf,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.c},function(e){b=e.C},function(e){y=e.S},function(e){x=e.L},function(e){w=e.M},function(e){C=e.b},function(e){k=e.g},function(e){S=e.u},function(e){T=e.T},function(e){I=e.C},function(e){L=e.C},function(e){j=e.I},function(){},function(){},function(){},function(){},function(){}],execute:function(){var A={personal:"_personal_197ar_1",bgImg:"_bgImg_197ar_44",pTitle:"_pTitle_197ar_51",practice:"_practice_197ar_56",personalSong:"_personalSong_197ar_57",musicGrid:"_musicGrid_197ar_69",tennatCellGroup:"_tennatCellGroup_197ar_72",tenantLogo:"_tenantLogo_197ar_84",tenantCoverImg:"_tenantCoverImg_197ar_90",tenantContent:"_tenantContent_197ar_97"},E=t({name:"Practice",emits:["favorite"],setup:function(e,a){var t=a.expose,n=(a.emit,r()),p=u(0),v=h((function(e){return i.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 t({reload:v.execute}),function(){var e,a=(null===(e=d.value)||void 0===e?void 0:e.data.rows)||[];return 0===p.value&&(p.value=a.length),o(c,null,[p.value>0&&o(c,null,[o(b,{titleClass:A.pTitle,title:"最近练习",border:!1},null),o("div",{class:A.practice},[o(y,{showTitleImg:!0,list:a,onDetail:function(e){var a=location.origin+location.pathname+"#/music-detail?id="+e.id;s(a,(function(){n.push({path:"/music-detail",query:{id:e.id}})}))}},null)])])])}}}),G=t({name:"MusicList",emits:["favorite"],props:{gift:{type:Number,default:0}},setup:function(a,t){var c=t.expose,g=(t.emit,p()),m=r(),_=v({search:g.query.search||"",musicTagIds:g.query.tagids||"",gift:a.gift,page:1}),h=u(null),b=u([]),w=u(!1),C=u(!1),k=u(!1),S=function(){var a=n(regeneratorRuntime.mark((function a(){var t;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!w.value){a.next=2;break}return a.abrupt("return");case 2:return w.value=!0,k.value=!1,a.prev=4,a.next=7,i("/music/sheet/my",{method:"TEACHER"===l.platformType?"POST":"GET",prefix:"TEACHER"===l.platformType?"/api-teacher":"/api-student",params:_,data:"TEACHER"===l.platformType?_:{}});case 7:t=a.sent,b.value=[].concat(e(b.value),e(t.data.rows)),h.value=t.data,_.page=t.data.pageNo+1,C.value=t.data.pageNo>=t.data.totalPage,a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),k.value=!0;case 17:w.value=!1;case 18:case"end":return a.stop()}}),a,null,[[4,14]])})));return function(){return a.apply(this,arguments)}}();return d((function(){return a.gift}),(function(e){k.value=!1,b.value=[],_.page=1,C.value=!1,_.gift=e,S()})),c({reset:function(){k.value=!1,b.value=[],_.page=1,C.value=!1,S()},FetchList:S}),function(){return o(x,{loading:w.value,finished:C.value,"finished-text":b.value.length?"没有更多了":"",onLoad:S,error:k.value},{default:function(){return[b.value.length?o("div",{class:A.personalSong},[o(y,{showTitleImg:!0,list:b.value,onDetail:function(e){var a=location.origin+location.pathname+"#/music-detail?id="+e.id;s(a,(function(){m.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!w.value&&o(f,{tips:"暂无单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),R=t({name:"MusicList",emits:["favorite"],setup:function(a,t){var c=t.expose,d=(t.emit,p()),g=r(),m=v({search:d.query.search||"",musicTagIds:d.query.tagids||"",page:1}),_=u([]),h=u(null),b=u(!1),w=u(!1),C=u(!1),k=function(){var a=n(regeneratorRuntime.mark((function a(){var t;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!b.value){a.next=2;break}return a.abrupt("return");case 2:return b.value=!0,C.value=!1,a.prev=4,a.next=7,i("/music/sheet/favorite",{prefix:"TEACHER"===l.platformType?"/api-teacher":"/api-student",params:m});case 7:t=a.sent,_.value=[].concat(e(_.value),e(t.data.rows)),h.value=t.data,m.page=t.data.pageNo+1,w.value=t.data.pageNo>=t.data.totalPage,a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),C.value=!0;case 17:b.value=!1;case 18:case"end":return a.stop()}}),a,null,[[4,14]])})));return function(){return a.apply(this,arguments)}}();return c({reset:function(){C.value=!1,_.value=[],m.page=1,w.value=!1,k()},FetchList:k}),function(){return o(x,{loading:b.value,finished:w.value,"finished-text":_.value.length?"没有更多了":"",onLoad:k,error:C.value},{default:function(){return[_.value.length?o("div",{class:A.personalSong},[o(y,{showTitleImg:!0,list:_.value,onDetail:function(e){var a=location.origin+location.pathname+"#/music-detail?id="+e.id;s(a,(function(){g.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!b.value&&o(f,{tips:"暂无收藏单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),z=t({name:"MusicList",setup:function(){var a=p(),t=r(),c=v({search:a.query.search||"",musicTagIds:a.query.tagids||"",page:1}),s=u([]),d=u(null),g=u(!1),m=u(!1),_=u(!1),h=function(){var a=n(regeneratorRuntime.mark((function a(){var t;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!g.value){a.next=2;break}return a.abrupt("return");case 2:return g.value=!0,_.value=!1,a.prev=4,a.next=7,i("/music/album/favorite",{prefix:"TEACHER"===l.platformType?"/api-teacher":"/api-student",params:c});case 7:t=a.sent,s.value=[].concat(e(s.value),e(t.data.rows)),d.value=t.data,c.page=t.data.pageNo+1,m.value=t.data.pageNo>=t.data.totalPage,a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),_.value=!0;case 17:g.value=!1;case 18:case"end":return a.stop()}}),a,null,[[4,14]])})));return function(){return a.apply(this,arguments)}}();return function(){return o(x,{loading:g.value,finished:m.value,"finished-text":s.value.length?"没有更多了":"",onLoad:h,error:_.value},{default:function(){return[s.value.length?o("div",{class:A.musicGrid},[o(w,{list:d.value.rows,onGoto:function(e){t.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!g.value&&o(f,{tips:"暂无收藏专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),N=t({name:"MusicList",props:{gift:{type:Number,default:0}},setup:function(a){p();var t=r(),c=v({page:1,gift:a.gift}),s=u([]),g=u(null),m=u(!1),_=u(!1),h=u(!1),b=function(){var a=n(regeneratorRuntime.mark((function a(){var t;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!m.value){a.next=2;break}return a.abrupt("return");case 2:return m.value=!0,h.value=!1,a.prev=4,a.next=7,i("/music/album/purchased",{prefix:"TEACHER"===l.platformType?"/api-teacher":"/api-student",params:c});case 7:t=a.sent,s.value=[].concat(e(s.value),e(t.data.rows)),g.value=t.data,c.page=t.data.pageNo+1,_.value=t.data.pageNo>=t.data.totalPage,a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),h.value=!0;case 17:m.value=!1;case 18:case"end":return a.stop()}}),a,null,[[4,14]])})));return function(){return a.apply(this,arguments)}}();return d((function(){return a.gift}),(function(e){h.value=!1,s.value=[],c.page=1,_.value=!1,c.gift=e,b()})),function(){return o(x,{loading:m.value,finished:_.value,"finished-text":s.value.length?"没有更多了":"",onLoad:b,error:h.value},{default:function(){return[s.value.length?o("div",{class:A.musicGrid},[o(w,{isHiddenTag:!0,list:g.value.rows,onGoto:function(e){t.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!m.value&&o(f,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),M=t({name:"tenant-album",setup:function(){var a=r(),t=v({page:1,rows:20}),c=u([]),s=u(null),p=u(!1),d=u(!1),g=u(!1),m=function(){var a=n(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!p.value){a.next=2;break}return a.abrupt("return");case 2:return p.value=!0,g.value=!1,a.prev=4,a.next=7,i.post("/userTenantAlbumRecord/page",{prefix:"TEACHER"===l.platformType?"/api-teacher":"/api-student",data:t});case 7:n=a.sent,c.value=[].concat(e(c.value),e(n.data.rows)),s.value=n.data,console.log(s.value),t.page=n.data.pageNo+1,d.value=n.data.pageNo>=n.data.totalPage,a.next=18;break;case 15:a.prev=15,a.t0=a.catch(4),g.value=!0;case 18:p.value=!1;case 19:case"end":return a.stop()}}),a,null,[[4,15]])})));return function(){return a.apply(this,arguments)}}();return function(){return o(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 o(L,{class:A.tennatCellGroup,border:!1,onClick:function(){return function(e){a.push({path:"/train-tool",query:{albumId:e.id,buy:"1"}})}(e)}},{default:function(){return[o(b,{isLink:!0,clickable:!1},{icon:function(){return o("img",{src:e.tenantImg,class:A.tenantLogo},null)},title:function(){return o("div",{class:A.tenantName},[e.tenantName])}}),o(b,null,{icon:function(){return o(j,{src:e.coverImg,class:A.tenantCoverImg},null)},title:function(){return o("div",{class:A.tenantContent},[o("h2",null,[e.name]),o("p",null,[e.describe])])}})]}})})):!p.value&&o(f,{tips:"暂无训练教程",classImgSize:"SMALL",btnStatus:!1},null)]}})}}});a("default",t({name:"MusicPersonal",setup:function(){localStorage.setItem("behaviorId",k());var e=sessionStorage.getItem("music-personal-tab-value");sessionStorage.removeItem("music-personal-tab-value");var a=u(e||"train-course");sessionStorage.setItem("music-personal-tab-value",a.value);var t=u(),n=u(),r=u();return g((function(){S("我的乐谱")})),function(){return o("div",{class:A.personal},[o(T,{position:"top"},{default:function(){return[o(I,{background:"transparent",isFixed:!1,border:!1,color:"#131415"},null)]}}),o("img",{class:A.bgImg,src:C},null),o(E,{ref:r,onFavorite:function(){var e,r;if("personal"===a.value)null===(e=t.value)||void 0===e||null===(r=e.reset)||void 0===r||r.call(e);else if("collection"===a.value){var u,i;null===(u=n.value)||void 0===u||null===(i=u.reset)||void 0===i||i.call(u)}}},null),o(m,{color:"var(--van-primary)",background:"transparent",lineWidth:20,shrink:!0,active:a.value,"onUpdate:active":function(e){return a.value=e},onChange:function(e){a.value=e,sessionStorage.setItem("music-personal-tab-value",e)}},{default:function(){return[o(_,{title:"训练教程",name:"train-course"},null)]}}),"train-course"===a.value&&o(M,null,null),("personal"===a.value||"personal-gift"===a.value)&&o(G,{ref:t,gift:"personal-gift"===a.value?1:0,onFavorite:function(){var e,a;null===(e=r.value)||void 0===e||null===(a=e.reload)||void 0===a||a.call(e)}},null),("personal-album"===a.value||"album-gift"===a.value)&&o(N,{gift:"album-gift"===a.value?1:0},null),"collection"===a.value&&o(R,{ref:n,onFavorite:function(){var e,a;null===(e=r.value)||void 0===e||null===(a=e.reload)||void 0===a||a.call(e)}},null),"album"===a.value&&o(z,null,null)])}}}))}}}))}();