index-legacy.f15c3678.js 8.1 KB

1
  1. !function(){function e(e,o,a,n,t,r,i){try{var u=e[r](i),l=u.value}catch(c){return void a(c)}u.done?o(l):Promise.resolve(l).then(n,t)}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 t=null!=arguments[a]?arguments[a]:{};a%2?o(Object(t),!0).forEach((function(o){n(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 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 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(["./index-legacy.b2528a15.js","./index-legacy.ca42ae97.js","./index-legacy.207dc8c2.js","./index-legacy.44baf7f8.js","./index-legacy.6e10cd37.js","./hooks-legacy.fb8d6c34.js","./icon-xin-active-legacy.a17aecbf.js","./index-legacy.9cbe7ce8.js","./index-legacy.21779c2e.js","./music-legacy.80266f81.js","./use-tab-status-legacy.5c2c2da3.js","./icon_uploader-legacy.db3a8c90.js","./icon-xin-legacy.18ed4a9d.js","./icon_album-legacy.d489a774.js","./icon_album_active-legacy.d2829e23.js","./icon_exquisite-legacy.178b582f.js","./icon_music_active-legacy.cc68af68.js","./icon-play-legacy.50b88257.js","./index-legacy.c610561c.js"],(function(o){"use strict";var n,t,r,i,u,l,c,s,m,_,d,f,b,y,v,p,g,h,w,x,j,C,k,S;return{setters:[function(e){n=e.d,t=e.P,r=e.s,i=e.e,u=e.Q,l=e.i,c=e.F,s=e.A,m=e.N,_=e.S,d=e.U,f=e.bg,b=e.C},function(e){y=e.I},function(e){v=e.C},function(e){p=e.b},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(){},function(){},function(){},function(){},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",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=n({name:"Songbook",setup:function(){t();var e={};r.version&&(e.version=r.version||"",e.platform="STUDENT"===r.platformType?"ios-student":"ios-teacher");var o="STUDENT"===r.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=u();return function(){return l(c,null,[d.value&&d.value.data.rows.length?l(c,null,[l(v,{class:T,titleClass:P,title:"专辑",to:"/music-album",border:!1},{value:function(){return l("span",{class:z},[s("更多"),l(m,{name:"arrow"},null)])}}),l("div",{class:E},[d.value.data.rows.map((function(e){return l("div",{class:D,key:e.id,onClick:function(){return f.push("/music-album-detail/"+e.id)}},[l("div",{class:I},["CHARGE"===e.paymentType&&l("span",{class:A},[s("付费")]),l(y,{class:N,src:e.albumCoverUrl},null),l("div",{class:L},[l(m,{name:e.favorite?x:j},null),l("span",{class:R},[e.albumFavoriteCount,s("人")])])]),l("h4",{class:g(T,"van-ellipsis")},[e.albumName])])}))])]):null])}}}),q=n({name:"Songbook",setup:function(){var o=u(),n={};r.version&&(n.version=r.version||"",n.platform="STUDENT"===r.platformType?"ios-student":"ios-teacher");var t=h(w.SEARCH);t&&(n.subjectIds=t.id);var y=_(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,t,u;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({},y),e.prev=5,e.next=8,i.post("".concat(r.platformApi,"/music/sheet/list"),{data:o});case 8:n=e.sent,p.value&&(u=((null===(t=p.value)||void 0===t?void 0:t.rows)||[]).concat(n.data.rows||[]),p.value.rows=u),p.value=p.value||n.data,y.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(t,r){var i=o.apply(a,n);function u(o){e(i,t,r,u,l,"next",o)}function l(o){e(i,t,r,u,l,"throw",o)}u(void 0)}))});return function(){return n.apply(this,arguments)}}();return function(){return l(c,null,[p.value&&p.value.rows.length>0&&l(v,{class:T,titleClass:P,title:"曲谱",to:"/music-list",border:!1},{value:function(){return l("span",{class:z},[s("更多"),l(m,{name:"arrow"},null)])}}),l(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?l("div",{class:U},[l(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&&l(b,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])}}});o("default",n({name:"Songbook",setup:function(){return localStorage.setItem("behaviorId",S()),function(){return l("div",{class:O},[l(H,null,null),l(q,null,null)])}}}))}}}))}();