text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25d56716"],{5013:function(t,i,s){},8192:function(t,i,s){"use strict";s.r(i);var e=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"TopList view-main"},[s("el-skeleton",{attrs:{rows:6,animated:"",loading:t.loading}},[[s("div",{staticClass:"guanfang-list"},[s("h2",{staticClass:"font-bold font-20"},[t._v("官方榜")]),t._l(t.officialList,(function(i){return s("div",{key:i.id,staticClass:"guanfang-item mtop-10"},[s("div",{staticClass:"guanfang"},[s("div",{staticClass:"img-wrap"},[s("img",{staticClass:"img-h img-radius-4 pointer",attrs:{src:i.coverImgUrl},on:{click:function(s){return t.getTo("playlistdetail",i.id)}}})]),s("ul",{staticClass:"mleft-30"},t._l(i.tracks,(function(i,e){return s("li",{key:i.id,on:{click:function(s){return t.getOneSong(i)}}},[s("span",{staticClass:"mleft-12 text-hidden"},[t._v(t._s(e+1))]),s("span",{staticClass:"mleft-12 geming text-hidden"},[t._v(t._s(i.al.name))]),s("span",{staticClass:"zuozhe mright-10 text-hidden"},[t._v(t._s(i.ar[0].name))])])})),0)]),s("div",{staticClass:"mleft-200"},[s("button",{staticClass:"mtop-10 no-btn"},[t._v(" 查看全部 "),s("i",{staticClass:"iconfont icon-youjiantou1"})])])])}))],2),s("div",{staticClass:"global-list"},[s("h2",{staticClass:"font-bold font-20"},[t._v("全球榜")]),s("div",{staticClass:"img-list"},[s("ul",{staticClass:"img-list-ul"},t._l(t.globalList,(function(i){return s("li",{key:i.id,staticClass:"img-item-li"},[s("div",{staticClass:"img-wrap"},[s("img",{staticClass:"img img-radius-8 img-border",attrs:{src:i.coverImgUrl},on:{click:function(s){return t.getTo("playlistdetail",i.id)}}}),s("div",{staticClass:"video-playcount font-12"},[s("i",{staticClass:"iconfont icon-bofang1"}),t._v(" "+t._s(parseInt(i.playCount/1e4)+"万")+" ")]),s("div",{staticClass:"play-btn"},[s("i",{staticClass:"iconfont icon-bofang1"})])]),s("div",{staticClass:"text-hidden"},[t._v(t._s(i.name))])])})),0)])])]],2)],1)},n=[],a=s("799e"),r=(s("e186"),s("fd72"),s("5232"),s("87c5"),s("11e1"),s("3836"),s("25bd"),s("3089")),c=s("b775"),o=function(){return Object(c["a"])({method:"GET",url:"/toplist"})},l=function(t){return Object(c["a"])({method:"GET",url:"/playlist/detail?id=".concat(t)})},u={name:"TopList",data:function(){return{loading:!0,officialList:[],globalList:[]}},methods:{getOneSong:function(t){if(this.$store.state.songDetail.isPlay||this.$store.commit("songDetail/playback"),this.isListenId!==t.id){this.$store.commit("songDetail/songAllMsg",t),this.isListenId=t.id;var i={};i.songName=t.name,i.singer=t.ar[0].name,i.id=t.id,i.picUrl=t.al.picUrl,this.songMsg=i,this.$store.dispatch("songDetail/getoneMusic",i),this.$store.commit("songDetail/setplayListTracks",[t])}},getTo:function(t,i){this.$router.push(t+"/"+i)},topList:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function i(){var s,e,n,a,c;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,o();case 2:if(s=i.sent,e=s.data,n=e.list,a=e.code,c=e.msg,200!==a){i.next=14;break}return i.next=10,t.listDetails(n.slice(0,4));case 10:t.globalList=n.slice(4),t.loading=!1,i.next=15;break;case 14:Object(r["Toast"])(c);case 15:case"end":return i.stop()}}),i)})))()},listDetails:function(t){var i=this;return Object(a["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,t.forEach(function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(s){var e,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l(s.id);case 2:e=t.sent,n=e.data.playlist,a=n.tracks.slice(0,5),i.officialList.push({name:n.name,id:n.id,description:n.description,coverImgUrl:n.coverImgUrl,tracks:a});case 6:case"end":return t.stop()}}),t)})));return function(i){return t.apply(this,arguments)}}());case 2:case"end":return s.stop()}}),s)})))()}},created:function(){this.topList()}},d=u,g=(s("c34c"),s("cba8")),m=Object(g["a"])(d,e,n,!1,null,"7aa36292",null);i["default"]=m.exports},c34c:function(t,i,s){"use strict";s("5013")}}]);
  //# sourceMappingURL=chunk-25d56716.d2536f42.js.map