require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/commission_rank/index"],{5490:function(t,n,e){},"5d60":function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("1d3c");i(e("3240"));var o=i(e("a890"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"627b":function(t,n,e){"use strict";var i=e("5490"),o=e.n(i);o.a},"8fe5":function(t,n,e){"use strict";e.r(n);var i=e("a0c5"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},a0c5:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("51a2"),o=e("cef1"),a=e("8f59"),r=e("d5b1"),s=getApp(),c={components:{rankingList:function(){Promise.all([e.e("pages/users/common/vendor"),e.e("pages/users/components/rankingList/index")]).then(function(){return resolve(e("0686"))}.bind(null,e)).catch(e.oe)},navBar:function(){e.e("components/navBar").then(function(){return resolve(e("820c"))}.bind(null,e)).catch(e.oe)}},data:function(){return{getHeight:this.$util.getWXStatusHeight(),urlDomain:this.$Cache.get("imgHost"),navList:["周排行","月排行"],active:0,rankList:[],loadend:!1,loading:!1,loadTitle:"加载更多",type:"week",ranking:0,isShow:!1,theme:s.globalData.theme,bgColor:"#e93323"}},computed:(0,a.mapGetters)(["isLogin","uid"]),watch:{isLogin:{handler:function(t,n){t&&this.getBrokerageRankList()},deep:!0}},onLoad:function(){this.isLogin?this.getBrokerageRankList():(0,o.toLogin)();this.bgColor=(0,r.setThemeColor)(),t.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.bgColor})},methods:{getChangeTab:function(t){this.type=t?"month":"week",this.loadend=!1,this.$set(this,"rankList",[]),this.getBrokerageRankList()},getBrokerageRankList:function(){var t=this;this.loadend||this.loading||(this.loading=!0,this.loadTitle="",this.loading=!0,this.isShow=!1,(0,i.getBrokerageRank)({type:this.type}).then((function(n){var e=n.data||[];t.$set(t,"rankList",e),e.length>0&&(t.ranking=e.findIndex((function(n){return n.id===t.uid}))+1),t.loading=!1,t.isShow=!0})).catch((function(n){t.loading=!1,t.loadTitle="加载更多"})))}},onReachBottom:function(){this.getBrokerageRankList()}};n.default=c}).call(this,e("df3c")["default"])},a890:function(t,n,e){"use strict";e.r(n);var i=e("fff3"),o=e("8fe5");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("627b");var r=e("828b"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"5f6bdf50",null,!1,i["a"],void 0);n["default"]=s.exports},fff3:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},o=[]}},[["5d60","common/runtime","common/vendor"]]]);