1 |
- !function(){function e(e,o,a,n,r,t,i){try{var l=e[t](i),u=l.value}catch(m){return void a(m)}l.done?o(u):Promise.resolve(u).then(n,r)}function o(e,o){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),a.push.apply(a,n)}return a}function a(e){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?o(Object(r),!0).forEach((function(o){n(e,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))}))}return e}function n(e,o,a){return o in e?Object.defineProperty(e,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[o]=a,e}var r=document.createElement("style");r.innerHTML="._songbook_1omyu_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;--favorite-bg: rgba(67, 67, 67, .3);--favorite-color: #63ffe1;--favorite-text-color: white}._sticky_1omyu_11 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._title_1omyu_14{padding-top:.42667rem}._title_1omyu_14 .van-cell__value{font-size:.32rem}._cellTitle_1omyu_20{font-size:.45333rem;color:#333;font-weight:600}._cellValue_1omyu_25{line-height:.53333rem;height:.53333rem;padding:.05333rem .13333rem 0 .18667rem;background:#dfefec;display:inline-block;border-radius:.53333rem;color:var(--van-primary)}._albumContainer_1omyu_34::-webkit-scrollbar{display:none}._albumContainer_1omyu_34{width:100%;overflow:hidden;overflow-x:auto;display:flex;padding:0 .42667rem;box-sizing:border-box;flex-wrap:nowrap}._albumContainer_1omyu_34 ._album_1omyu_34{margin-right:.53333rem;width:2.50667rem;flex-shrink:0}._albumContainer_1omyu_34 ._album_1omyu_34 ._albumType_1omyu_52{position:absolute;left:0;top:0;background:linear-gradient(180deg,#ff8900 0%,#ff5100 100%);box-shadow:0 .02667rem .05333rem rgba(150,13,0,.11);border-radius:.26667rem 0;font-size:.32rem;padding:0 .16rem;line-height:.53333rem;color:#fff;z-index:9}._albumContainer_1omyu_34 ._album_1omyu_34 ._main_1omyu_65{position:relative}._albumContainer_1omyu_34 ._album_1omyu_34 ._main_1omyu_65 ._favorite_1omyu_68{position:absolute;bottom:.21333rem;text-align:center;transform:translate(50%);background-color:var(--favorite-bg);color:var(--favorite-text-color);padding:.05333rem .18667rem;border-radius:.26667rem;font-size:.29333rem}._albumContainer_1omyu_34 ._album_1omyu_34 ._main_1omyu_65 ._favorite_1omyu_68>span{color:var(--favorite-color)}._albumContainer_1omyu_34 ._album_1omyu_34 ._img_1omyu_82{width:2.50667rem;height:2.50667rem;position:relative}._albumContainer_1omyu_34 ._album_1omyu_34 ._img_1omyu_82>img,._albumContainer_1omyu_34 ._album_1omyu_34 ._img_1omyu_82>div{position:absolute;border-radius:.26667rem;overflow:hidden}._albumContainer_1omyu_34 ._album_1omyu_34 ._title_1omyu_14{padding-top:.21333rem;font-size:.37333rem;color:#333;font-weight:400;width:2.50667rem;text-align:center}._albumContainer_1omyu_34 ._album_1omyu_34 ._model_1omyu_101{position:absolute;left:.10667rem;bottom:.10667rem;background:rgba(67,67,67,.6);backdrop-filter:blur(.53333rem);-webkit-backdrop-filter:blur(.53333rem);display:flex;align-items:center;padding:.10667rem .16rem;border-radius:.53333rem;font-size:.32rem;color:#fff;transform:scale(.9)}._albumContainer_1omyu_34 ._album_1omyu_34 ._num_1omyu_116{margin-left:.08rem}._listContainer_1omyu_119{padding:0 .32rem;border-radius:.48rem;background-color:#fff;margin:0 .37333rem .37333rem}\n",document.head.appendChild(r),System.register(["./index-legacy.b903c881.js","./index-legacy.5b93d63d.js","./index-legacy.b7f666cc.js","./index-legacy.8e85fa65.js","./index-legacy.6e10cd37.js","./hooks-legacy.84a774a1.js","./icon-xin-active-legacy.a17aecbf.js","./index-legacy.f52c26b4.js","./index-legacy.1c1000df.js","./music-legacy.7769391f.js","./index-legacy.77670d98.js","./use-tab-status-legacy.a19d344b.js","./icon-xin2-legacy.d521c9ab.js"],(function(o){"use strict";var n,r,t,i,l,u,m,s,c,_,d,f,b,v,y,p,g,h,w,x,j,C,k,S;return{setters:[function(e){n=e.d,r=e.O,t=e.g,i=e.w,l=e.P,u=e.j,m=e.F,s=e.z,c=e.M,_=e.Q,d=e.S,f=e.be,b=e.C},function(e){v=e.I},function(e){y=e.C},function(e){p=e.c},function(e){g=e.c},function(e){h=e.a,w=e.S},function(e){x=e.I,j=e.a},function(e){C=e.L},function(e){k=e.S},function(e){S=e.g},function(){},function(){},function(){}],execute:function(){var O="_songbook_1omyu_1",T="_title_1omyu_14",P="_cellTitle_1omyu_20",z="_cellValue_1omyu_25",E="_albumContainer_1omyu_34",D="_album_1omyu_34",I="_albumType_1omyu_52",A="_main_1omyu_65",L="_img_1omyu_82",N="_model_1omyu_101",R="_num_1omyu_116",H="_listContainer_1omyu_119",U=n({name:"Songbook",setup:function(){r();var e={};t.version&&(e.version=t.version||"",e.platform="STUDENT"===t.platformType?"ios-student":"ios-teacher");var o="STUDENT"===t.platformType?"/api-student":"/api-teacher";e.myself=!1;var n=h(w.SEARCH);n&&(e.subjectIds=n.id);var _=p(i.post("".concat(o,"/music/album/list"),{data:a({},e)}),null),d=(_.isLoading,_.state),f=l();return function(){return u(m,null,[d.value&&d.value.data.rows.length?u(m,null,[u(y,{class:T,titleClass:P,title:"专辑",to:"/music-album",border:!1},{value:function(){return u("span",{class:z},[s("更多"),u(c,{name:"arrow"},null)])}}),u("div",{class:E},[d.value.data.rows.map((function(e){return u("div",{class:D,key:e.id,onClick:function(){return f.push("/music-album-detail/"+e.id)}},[u("div",{class:A},["CHARGE"===e.paymentType&&u("span",{class:I},[s("付费")]),u(v,{class:L,src:e.albumCoverUrl},null),u("div",{class:N},[u(c,{name:e.favorite?x:j},null),u("span",{class:R},[e.albumFavoriteCount,s("人")])])]),u("h4",{class:g(T,"van-ellipsis")},[e.albumName])])}))])]):null])}}}),M=n({name:"Songbook",setup:function(){var o=l(),n={};t.version&&(n.version=t.version||"",n.platform="STUDENT"===t.platformType?"ios-student":"ios-teacher");var r=h(w.SEARCH);r&&(n.subjectIds=r.id);var v=_(a({auditStatus:"PASS",myself:!1,page:1},n)),p=d(null),g=d(!1),x=d(!1),j=d(!1),S=function(){var o,n=(o=regeneratorRuntime.mark((function e(){var o,n,r,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!g.value){e.next=2;break}return e.abrupt("return");case 2:return g.value=!0,j.value=!1,o=a({},v),e.prev=5,e.next=8,i.post("".concat(t.platformApi,"/music/sheet/list"),{data:o});case 8:n=e.sent,p.value&&(l=((null===(r=p.value)||void 0===r?void 0:r.rows)||[]).concat(n.data.rows||[]),p.value.rows=l),p.value=p.value||n.data,v.page=n.data.pageNo+1,x.value=n.data.pageNo>=n.data.totalPage,e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),j.value=!0;case 18:g.value=!1;case 19:case"end":return e.stop()}}),e,null,[[5,15]])})),function(){var a=this,n=arguments;return new Promise((function(r,t){var i=o.apply(a,n);function l(o){e(i,r,t,l,u,"next",o)}function u(o){e(i,r,t,l,u,"throw",o)}l(void 0)}))});return function(){return n.apply(this,arguments)}}();return function(){return u(m,null,[p.value&&p.value.rows.length>0&&u(y,{class:T,titleClass:P,title:"曲谱",to:"/music-list",border:!1},{value:function(){return u("span",{class:z},[s("更多"),u(c,{name:"arrow"},null)])}}),u(C,{loading:g.value,finished:x.value,"finished-text":p.value&&p.value.rows.length?"没有更多了":"",onLoad:S,error:j.value},{default:function(){return[p.value&&p.value.rows.length?u("div",{class:H},[u(k,{list:p.value.rows,onDetail:function(e){var a=location.origin+location.pathname+"#/music-detail?id="+e.id;f(a,(function(){o.push({path:"/music-detail",query:{id:e.id}})}))}},null)]):!g.value&&u(b,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])}}});o("default",n({name:"Songbook",setup:function(){return localStorage.setItem("behaviorId",S()),function(){return u("div",{class:O},[u(U,null,null),u(M,null,null)])}}}))}}}))}();
|