(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/rank"],{"0ec6":function(t,n,e){"use strict";(function(t){e("856e");i(e("66fd"));var n=i(e("3b52"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},"3b52":function(t,n,e){"use strict";e.r(n);var i=e("fd82"),a=e("8b27");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("edd8");var s,r=e("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"370611d4",null,!1,i["a"],s);n["default"]=c.exports},"8b27":function(t,n,e){"use strict";e.r(n);var i=e("c29d"),a=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},c29d:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("7eca"),a=(e("95b6"),e("26cb")),o={components:{},data:function(){return{navList:["周榜","月榜"],active:0,page:1,limit:10,type:"week",loading:!1,loadend:!1,rankList:[],Two:{},One:{},Three:{}}},computed:(0,a.mapGetters)(["isLogin"]),onLoad:function(){this.getRanklist()},onShow:function(){this.isClone&&app.globalData.isLog&&(this.setData({loadend:!1,page:1,rankList:[]}),this.getRanklist())},methods:{onLoadFun:function(){this.getRanklist()},getRanklist:function(){var t=this;t.loadend||t.loading||(t.loading=!0,(0,i.getRankList)({page:t.page,limit:t.limit,type:t.type}).then((function(n){var e=n.data;t.rankList.push.apply(t.rankList,e),1==t.page&&(t.One=t.rankList.shift()||{},t.Two=t.rankList.shift()||{},t.Three=t.rankList.shift()||{}),t.loadend=e.length<t.limit,t.loading=!1,t.$set(t,"rankList",t.rankList),t.One=t.One,t.Two=t.Two,t.Three=t.Three})).catch((function(n){t.loading=!1})))},switchTap:function(t){this.active=t,console.log(t),this.type=t?"month":"week",this.page=1,this.loadend=!1,this.$set(this,"rankList",[]),this.Two={},this.One={},this.Three={},this.getRanklist()}},onReachBottom:function(){this.getRanklist()}};n.default=o},c637:function(t,n,e){},edd8:function(t,n,e){"use strict";var i=e("c637"),a=e.n(i);a.a},fd82:function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return i}));var a=function(){var t=this,n=t.$createElement;t._self._c},o=[]}},[["0ec6","common/runtime","common/vendor"]]]);