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,t){if(!e)return;if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(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 n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function t(e,n,t,a,r,i,u){try{var o=e[i](u),l=o.value}catch(c){return void t(c)}o.done?n(l):Promise.resolve(l).then(a,r)}function a(e){return function(){var n=this,a=arguments;return new Promise((function(r,i){var u=e.apply(n,a);function o(e){t(u,r,i,o,l,"next",e)}function l(e){t(u,r,i,o,l,"throw",e)}o(void 0)}))}}var r=document.createElement("style");r.innerHTML="._personal_8myd5_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_8myd5_1 .van-tab{font-size:.42667rem!important;margin-top:.4rem;color:#999}._personal_8myd5_1 .van-tab--active{font-size:.42667rem!important;font-weight:500;color:#000}._personal_8myd5_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_8myd5_1 .van-button--plain.van-button--primary{background-color:transparent}._personal_8myd5_1 .van-sticky{background:url(./assets/bg-image-1.414abed8.png) no-repeat top center;background-size:cover}._personal_8myd5_1 .van-search__content{background:rgba(255,255,255,.5)!important}._personal_8myd5_1 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._personal_8myd5_1 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._personal_8myd5_1 .van-search__content input,._personal_8myd5_1 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._personal_8myd5_1 ._bgImg_8myd5_44{position:fixed;top:0;left:0;width:100%;z-index:-1}._songEfficacy_8myd5_51{background:#FFFFFF;border-radius:.26667rem}._songContainer_8myd5_55{width:6.34667rem;padding-top:.48rem;padding-bottom:.48rem}._songContainer_8myd5_55 ._title_8myd5_60{font-size:.42667rem;color:#666;line-height:.64rem;text-align:center}._songContainer_8myd5_55 img{margin:.26667rem auto .42667rem;width:3.54667rem;height:2.61333rem;display:block}._songContainer_8myd5_55 ._btnGroup_8myd5_72{text-align:center}._songContainer_8myd5_55 ._btnGroup_8myd5_72 .van-button{--van-button-default-height: 1.06667rem;width:3.46667rem;font-size:.42667rem;color:#333}._pTitle_8myd5_81{font-size:.42667rem;font-weight:600;color:#131415}._practice_8myd5_86,._personalSong_8myd5_87{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:0 .37333rem .37333rem}._practice_8myd5_86{margin-bottom:0}._personalSong_8myd5_87{margin:.37333rem}._musicGrid_8myd5_99{margin:.42667rem .32rem}._tennatCellGroup_8myd5_102{margin:.18667rem .32rem .32rem;border-radius:.42667rem}._tennatCellGroup_8myd5_102 .van-cell{padding:.4rem .32rem;font-size:.4rem}._tennatCellGroup_8myd5_102 .van-cell__right-icon{font-size:.42667rem;color:#dadada}._tennatCellGroup_8myd5_102 ._tenantLogo_8myd5_114{width:.64rem;height:.64rem;border-radius:50%;margin-right:.21333rem}._tennatCellGroup_8myd5_102 ._tenantCoverImg_8myd5_120{width:2.34667rem;height:2.34667rem;border-radius:.32rem;margin-right:.32rem;overflow:hidden}._tennatCellGroup_8myd5_102 ._tenantContent_8myd5_127{padding-top:.16rem}._tennatCellGroup_8myd5_102 ._tenantContent_8myd5_127 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_8myd5_102 ._tenantContent_8myd5_127 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(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.6a5df59c.js","./index-legacy.7e047c4c.js","./index-legacy.183eabe8.js","./index-legacy.bbc2b10e.js","./index-legacy.610f0a70.js","./index-legacy.34b0986d.js","./song-empty-legacy.0a91aed1.js","./index-legacy.c07bb851.js","./index-legacy.26bfaa3e.js","./bg-image-1-legacy.249763f1.js","./music-legacy.f8020082.js","./hooks-legacy.f81762aa.js","./index-legacy.4f8bc5f4.js","./index-legacy.87bcd48f.js","./index-legacy.fd89cccf.js","./index-legacy.4a75d877.js","./use-id-legacy.54528695.js","./use-tab-status-legacy.1f35f332.js","./use-refs-legacy.82f31dee.js","./icon-xin2-legacy.d521c9ab.js","./index-legacy.b6bb491f.js"],(function(n){"use strict";var t,r,i,u,o,l,c,s,d,m,p,v,f,g,_,y,h,b,x,w,C,k,S,T,I,L,j,E,G,A,R;return{setters:[function(e){t=e.d,r=e.Q,i=e.U,u=e.y,o=e.g,l=e.j,c=e.F,s=e.be,d=e.aS,m=e.A,p=e.B,v=e.P,f=e.S,g=e.a3,_=e.C,y=e.V},function(){},function(){},function(e){h=e.T,b=e.a},function(e){x=e.c},function(e){w=e.C},function(e){C=e.S},function(e){k=e.s},function(e){S=e.L},function(e){T=e.M},function(e){I=e.b},function(e){L=e.g},function(e){j=e.u},function(e){E=e.T},function(e){G=e.C},function(e){A=e.C},function(e){R=e.I},function(){},function(){},function(){},function(){},function(){}],execute:function(){var z={personal:"_personal_8myd5_1",bgImg:"_bgImg_8myd5_44",songEfficacy:"_songEfficacy_8myd5_51",songContainer:"_songContainer_8myd5_55",title:"_title_8myd5_60",btnGroup:"_btnGroup_8myd5_72",pTitle:"_pTitle_8myd5_81",practice:"_practice_8myd5_86",personalSong:"_personalSong_8myd5_87",musicGrid:"_musicGrid_8myd5_99",tennatCellGroup:"_tennatCellGroup_8myd5_102",tenantLogo:"_tenantLogo_8myd5_114",tenantCoverImg:"_tenantCoverImg_8myd5_120",tenantContent:"_tenantContent_8myd5_127"},N=t({name:"Practice",emits:["favorite"],setup:function(e,n){var t=n.expose,v=(n.emit,r()),f=i(0),g=i(!1),_=i({}),y=x((function(e){return u.get("/music/sheet/practice",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:{rows:(null==e?void 0:e.rows)||3}})}),null),h=(y.isLoading,y.state),b=y.execute,S=function(){var e=a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.get("/music/sheet/practice/del/"+_.value.id,{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student"});case 3:b(),g.value=!1,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return t({reload:b}),function(){var e,n=(null===(e=h.value)||void 0===e?void 0:e.data.rows)||[];return 0===f.value&&(f.value=n.length),l(c,null,[f.value>0&&l(c,null,[l(w,{titleClass:z.pTitle,title:"最近练习",border:!1},null),l("div",{class:z.practice},[l(C,{showTitleImg:!0,list:n,onDetail:function(e){if(1===e.play)return _.value=e,void(g.value=!0);var n=location.origin+location.pathname+"#/music-detail?id="+e.id;s(n,(function(){v.push({path:"/music-detail",query:{id:e.id}})}))}},null)])]),l(d,{show:g.value,class:z.songEfficacy,round:!0,onClose:function(){return g.value=!1}},{default:function(){return[l("div",{class:z.songContainer},[l("div",{class:z.title},[m("该曲目已失效")]),l("img",{src:k},null),l("div",{class:z.btnGroup},[l(p,{round:!0,onClick:S},{default:function(){return[m("我知道了")]}})])])]}})])}}}),F=t({name:"MusicList",emits:["favorite"],props:{gift:{type:Number,default:0}},setup:function(n,t){var d=t.expose,m=(t.emit,v()),p=r(),y=f({search:m.query.search||"",musicTagIds:m.query.tagids||"",gift:n.gift,page:1}),h=i(null),b=i([]),x=i(!1),w=i(!1),k=i(!1),T=function(){var n=a(regeneratorRuntime.mark((function n(){var t;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,k.value=!1,n.prev=4,n.next=7,u("/music/sheet/my",{method:"TEACHER"===o.platformType?"POST":"GET",prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:y,data:"TEACHER"===o.platformType?y:{}});case 7:t=n.sent,b.value=[].concat(e(b.value),e(t.data.rows)),h.value=t.data,y.page=t.data.pageNo+1,w.value=t.data.pageNo>=t.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),k.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 g((function(){return n.gift}),(function(e){k.value=!1,b.value=[],y.page=1,w.value=!1,y.gift=e,T()})),d({reset:function(){k.value=!1,b.value=[],y.page=1,w.value=!1,T()},FetchList:T}),console.log("1111"),function(){return l(c,null,[l(S,{loading:x.value,finished:w.value,"finished-text":b.value.length?"没有更多了":"",onLoad:T,error:k.value},{default:function(){return[b.value.length?l("div",{class:z.personalSong},[l(C,{showTitleImg:!0,list:b.value,onDetail:function(e){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;s(n,(function(){p.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!x.value&&l(_,{tips:"暂无单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})])}}}),M=t({name:"MusicList",emits:["favorite"],setup:function(n,t){var c=t.expose,d=(t.emit,v()),m=r(),p=f({search:d.query.search||"",musicTagIds:d.query.tagids||"",page:1}),g=i([]),y=i(null),h=i(!1),b=i(!1),x=i(!1),w=function(){var n=a(regeneratorRuntime.mark((function n(){var t;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,x.value=!1,n.prev=4,n.next=7,u("/music/sheet/favorite",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:p});case 7:t=n.sent,g.value=[].concat(e(g.value),e(t.data.rows)),y.value=t.data,p.page=t.data.pageNo+1,b.value=t.data.pageNo>=t.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),x.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(){x.value=!1,g.value=[],p.page=1,b.value=!1,w()},FetchList:w}),function(){return l(S,{loading:h.value,finished:b.value,"finished-text":g.value.length?"没有更多了":"",onLoad:w,error:x.value},{default:function(){return[g.value.length?l("div",{class:z.personalSong},[l(C,{showTitleImg:!0,list:g.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)]):!h.value&&l(_,{tips:"暂无收藏单曲",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),H=t({name:"MusicList",setup:function(){var n=v(),t=r(),c=f({search:n.query.search||"",musicTagIds:n.query.tagids||"",page:1}),s=i([]),d=i(null),m=i(!1),p=i(!1),g=i(!1),y=function(){var n=a(regeneratorRuntime.mark((function n(){var t;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,g.value=!1,n.prev=4,n.next=7,u("/music/album/favorite",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:c});case 7:t=n.sent,s.value=[].concat(e(s.value),e(t.data.rows)),d.value=t.data,c.page=t.data.pageNo+1,p.value=t.data.pageNo>=t.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),g.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 function(){return l(S,{loading:m.value,finished:p.value,"finished-text":s.value.length?"没有更多了":"",onLoad:y,error:g.value},{default:function(){return[s.value.length?l("div",{class:z.musicGrid},[l(T,{list:d.value.rows,onGoto:function(e){t.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!m.value&&l(_,{tips:"暂无收藏专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),P=t({name:"MusicList",props:{gift:{type:Number,default:0}},setup:function(n){v();var t=r(),c=f({page:1,gift:n.gift}),s=i([]),d=i(null),m=i(!1),p=i(!1),y=i(!1),h=function(){var n=a(regeneratorRuntime.mark((function n(){var t;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,y.value=!1,n.prev=4,n.next=7,u("/music/album/purchased",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",params:c});case 7:t=n.sent,s.value=[].concat(e(s.value),e(t.data.rows)),d.value=t.data,c.page=t.data.pageNo+1,p.value=t.data.pageNo>=t.data.totalPage,n.next=17;break;case 14:n.prev=14,n.t0=n.catch(4),y.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 g((function(){return n.gift}),(function(e){y.value=!1,s.value=[],c.page=1,p.value=!1,c.gift=e,h()})),function(){return l(S,{loading:m.value,finished:p.value,"finished-text":s.value.length?"没有更多了":"",onLoad:h,error:y.value},{default:function(){return[s.value.length?l("div",{class:z.musicGrid},[l(T,{isHiddenTag:!0,list:d.value.rows,onGoto:function(e){t.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!m.value&&l(_,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}})}}}),q=t({name:"tenant-album",setup:function(){var n=r(),t=f({page:1,rows:20}),c=i([]),s=i(null),d=i(!1),m=i(!1),p=i(!1),v=function(){var n=a(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!d.value){n.next=2;break}return n.abrupt("return");case 2:return d.value=!0,p.value=!1,n.prev=4,n.next=7,u.post("/userTenantAlbumRecord/page",{prefix:"TEACHER"===o.platformType?"/api-teacher":"/api-student",data:t});case 7:a=n.sent,c.value=[].concat(e(c.value),e(a.data.rows)),s.value=a.data,console.log(s.value),t.page=a.data.pageNo+1,m.value=a.data.pageNo>=a.data.totalPage,n.next=18;break;case 15:n.prev=15,n.t0=n.catch(4),p.value=!0;case 18:d.value=!1;case 19:case"end":return n.stop()}}),n,null,[[4,15]])})));return function(){return n.apply(this,arguments)}}();return function(){return l(S,{loading:d.value,finished:m.value,"finished-text":c.value.length?" ":"",onLoad:v,error:p.value},{default:function(){return[c.value.length?c.value.map((function(e){return l(A,{class:z.tennatCellGroup,border:!1,onClick:function(){return function(e){n.push({path:"/train-tool",query:{albumId:e.id,buy:"1"}})}(e)}},{default:function(){return[l(w,{isLink:!0,clickable:!1},{icon:function(){return l("img",{src:e.tenantImg,class:z.tenantLogo},null)},title:function(){return l("div",{class:z.tenantName},[e.tenantName])}}),l(w,null,{icon:function(){return l(R,{src:e.coverImg,class:z.tenantCoverImg},null)},title:function(){return l("div",{class:z.tenantContent},[l("h2",null,[e.name]),l("p",null,[e.describe])])}})]}})})):!d.value&&l(_,{tips:"暂无训练教程",classImgSize:"SMALL",btnStatus:!1},null)]}})}}});n("default",t({name:"MusicPersonal",setup:function(){localStorage.setItem("behaviorId",L());var e=sessionStorage.getItem("music-personal-tab-value");sessionStorage.removeItem("music-personal-tab-value");var n=i(e||"train-course");sessionStorage.setItem("music-personal-tab-value",n.value);var t=i(),a=i(),r=i();return y((function(){j("我的乐谱")})),function(){return l("div",{class:z.personal},[l(E,{position:"top"},{default:function(){return[l(G,{background:"transparent",isFixed:!1,border:!1,color:"#131415"},null)]}}),l("img",{class:z.bgImg,src:I},null),l(N,{ref:r,onFavorite:function(){var e,r;if("personal"===n.value)null===(e=t.value)||void 0===e||null===(r=e.reset)||void 0===r||r.call(e);else if("collection"===n.value){var i,u;null===(i=a.value)||void 0===i||null===(u=i.reset)||void 0===u||u.call(i)}}},null),l(h,{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[l(b,{title:"训练教程",name:"train-course"},null)]}}),"train-course"===n.value&&l(q,null,null),("personal"===n.value||"personal-gift"===n.value)&&l(F,{ref:t,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)&&l(P,{gift:"album-gift"===n.value?1:0},null),"collection"===n.value&&l(M,{ref:a,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&&l(H,null,null)])}}}))}}}))}();
|