index-legacy.f5330157.js 3.9 KB

1
  1. !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t,r,n,i,_,o){try{var c=e[_](o),a=c.value}catch(s){return void r(s)}c.done?t(a):Promise.resolve(a).then(n,i)}var i=document.createElement("style");i.innerHTML='._container_1rete_1{min-height:100vh;display:flex;flex-direction:column}._container_1rete_1 ._content_1rete_6{flex:1;background-color:#f5f5f5;padding:.32rem}._container_1rete_1 ._content_1rete_6 ._title_1rete_11{color:#333;font-size:.48rem;font-weight:500;display:flex;align-items:center}._container_1rete_1 ._content_1rete_6 ._title_1rete_11:before{content:"";display:block;width:.10667rem;height:.48rem;border-radius:.05333rem;background-color:#01c1b5;margin-right:.16rem}._container_1rete_1 ._content_1rete_6 ._items_1rete_27{display:flex;align-items:center;flex-wrap:wrap}._container_1rete_1 ._content_1rete_6 ._items_1rete_27>div{margin-top:.53333rem;width:33.333%;text-align:center}._container_1rete_1 ._content_1rete_6 ._items_1rete_27>div ._inner_1rete_37{width:2.8rem;margin:0 auto}._container_1rete_1 ._content_1rete_6 ._items_1rete_27>div ._img_1rete_41{margin-top:0}._container_1rete_1 ._content_1rete_6 ._items_1rete_27>div .van-image,._container_1rete_1 ._content_1rete_6 ._items_1rete_27>div .van-image__error,._container_1rete_1 ._content_1rete_6 ._items_1rete_27>div .van-image__loading{width:2.8rem;min-height:3.57333rem}._container_1rete_1 ._content_1rete_6 ._items_1rete_27>div>div{margin-top:.18667rem;font-size:.37333rem;font-weight:500;color:#1a1a1a;line-height:.53333rem}\n',document.head.appendChild(i),System.register(["./App-legacy.705693f7.js","./index-legacy.e59faf1e.js"],(function(e){"use strict";var r,i,_,o,c,a,s,u,l;return{setters:[function(e){r=e.d,i=e.ak,_=e.s,o=e.l,c=e.H,a=e.a,s=e.g,u=e.b},function(e){l=e.I}],execute:function(){var m="_container_1rete_1",d="_content_1rete_6",f="_title_1rete_11",p="_items_1rete_27",v="_inner_1rete_37",g="_img_1rete_41",h=u();e("default",r({name:"classify",data:function(){return{list:[]}},mounted:function(){var e=sessionStorage.getItem("musicScoreList");if(e){var t=JSON.parse(e);this.list=t}else this.$router.replace("/");i(["_trackEvent","云练习","切换页面","分类页面"]),_.subjectId=_.origanSubjectId},methods:{FetchList:function(){var e,t=this;return(e=regeneratorRuntime.mark((function e(){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=t.$route.query.parentId,e.next=4,o.get("/sysMusicScoreCategories/queryTree",{params:{parentId:r||0}});case 4:n=e.sent,t.list=n.data,e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})),function(){var t=this,r=arguments;return new Promise((function(i,_){var o=e.apply(t,r);function c(e){n(o,i,_,c,a,"next",e)}function a(e){n(o,i,_,c,a,"throw",e)}c(void 0)}))})()},onClickLeft:function(){h.isApp&&c({api:"back"})},toDetail:function(e){this.$router.push({path:"/list/"+e.id,query:t({},this.$route.query)})}},render:function(){var e=this;return a("div",{class:m},[a("div",{class:d},[a("div",{class:f},[s("教材")]),a("div",{class:p},[this.list.map((function(t){return a("div",{key:t.id,onClick:function(){return e.toDetail(t)}},[a("div",{class:v},[a(l,{src:t.coverImg,class:g},null),a("div",{class:"van-ellipsis"},[t.name])])])}))])])])}}))}}}))}();