1 |
- !function(){function e(e,o,a,r,t,n,i){try{var l=e[n](i),u=l.value}catch(m){return void a(m)}l.done?o(u):Promise.resolve(u).then(r,t)}function o(e,o){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),a.push.apply(a,r)}return a}function a(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?o(Object(t),!0).forEach((function(o){r(e,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))}))}return e}function r(e,o,a){return o in e?Object.defineProperty(e,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[o]=a,e}var t=document.createElement("style");t.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(t),System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.4be048cf.js","./index-legacy.c8c5bc4e.js","./index-legacy.4bad5b90.js","./index-legacy.6e10cd37.js","./hooks-legacy.5cc9e329.js","./icon-xin-active-legacy.a17aecbf.js","./index-legacy.43e69380.js","./index-legacy.531fc114.js","./music-legacy.a18c664a.js","./use-tab-status-legacy.d7434e0b.js","./icon-xin2-legacy.d521c9ab.js"],(function(o){"use strict";var r,t,n,i,l,u,m,s,c,_,d,f,b,v,y,p,g,h,w,x,j,C,k,S;return{setters:[function(e){r=e.d,t=e.P,n=e.g,i=e.y,l=e.Q,u=e.j,m=e.F,s=e.A,c=e.N,_=e.S,d=e.U,f=e.bd,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(){}],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",A="_albumType_1omyu_52",I="_main_1omyu_65",N="_img_1omyu_82",L="_model_1omyu_101",R="_num_1omyu_116",U="_listContainer_1omyu_119",H=r({name:"Songbook",setup:function(){t();var e={};n.version&&(e.version=n.version||"",e.platform="STUDENT"===n.platformType?"ios-student":"ios-teacher");var o="STUDENT"===n.platformType?"/api-student":"/api-teacher";e.myself=!1;var r=h(w.SEARCH);r&&(e.subjectIds=r.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:I},["CHARGE"===e.paymentType&&u("span",{class:A},[s("付费")]),u(v,{class:N,src:e.albumCoverUrl},null),u("div",{class:L},[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])}}}),F=r({name:"Songbook",setup:function(){var o=l(),r={};n.version&&(r.version=n.version||"",r.platform="STUDENT"===n.platformType?"ios-student":"ios-teacher");var t=h(w.SEARCH);t&&(r.subjectIds=t.id);var v=_(a({auditStatus:"PASS",myself:!1,page:1},r)),p=d(null),g=d(!1),x=d(!1),j=d(!1),S=function(){var o,r=(o=regeneratorRuntime.mark((function e(){var o,r,t,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(n.platformApi,"/music/sheet/list"),{data:o});case 8:r=e.sent,p.value&&(l=((null===(t=p.value)||void 0===t?void 0:t.rows)||[]).concat(r.data.rows||[]),p.value.rows=l),p.value=p.value||r.data,v.page=r.data.pageNo+1,x.value=r.data.pageNo>=r.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,r=arguments;return new Promise((function(t,n){var i=o.apply(a,r);function l(o){e(i,t,n,l,u,"next",o)}function u(o){e(i,t,n,l,u,"throw",o)}l(void 0)}))});return function(){return r.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:U},[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",r({name:"Songbook",setup:function(){return localStorage.setItem("behaviorId",S()),function(){return u("div",{class:O},[u(H,null,null),u(F,null,null)])}}}))}}}))}();
|