(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/rank"],{1028:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement,n=(this._self._c,this.rankList.length);this.$mp.data=Object.assign({},{$root:{g0:n}})},a=[]},4962:function(t,n,e){},"4d0d":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("12d5");i(e("66fd"));var a=i(e("68e5"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"68e5":function(t,n,e){"use strict";e.r(n);var i=e("1028"),a=e("8767");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("cc87");var s=e("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"119ce482",null,!1,i["a"],void 0);n["default"]=c.exports},8767:function(t,n,e){"use strict";e.r(n);var i=e("9643"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},9643:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("36af"),a=(e("6f08"),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},cc87:function(t,n,e){"use strict";var i=e("4962"),a=e.n(i);a.a}},[["4d0d","common/runtime","common/vendor"]]]);