require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/commission_rank/index"],{3685:function(t,n,e){"use strict";e.r(n);var i=e("9315"),a=e("f5f4");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("60e7");var r=e("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"5e8c6100",null,!1,i["a"],void 0);n["default"]=s.exports},"60e7":function(t,n,e){"use strict";var i=e("6307"),a=e.n(i);a.a},6307:function(t,n,e){},9315: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),e=this.rankList.length;this.$mp.data=Object.assign({},{$root:{g0:n,g1:e}})},a=[]},b820:function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("92f9"),o=e("5088"),r=e("8f59"),s=i(e("89cc")),c=e("4d38"),u={components:{emptyPage:function(){e.e("components/emptyPage").then(function(){return resolve(e("398a"))}.bind(null,e)).catch(e.oe)}},mixins:[s.default],data:function(){return{imgHost:c.HTTP_REQUEST_URL,getHeight:this.$util.getWXStatusHeight(),navList:["周排行","月排行"],active:0,rankInfo:{position:0,avatar:"",brokerage_price:"",nickname:""},rankList:[],page:1,limit:20,loadend:!1,loading:!1,loadTitle:"加载更多",type:"week",isAuto:!1,isShowAuth:!1}},computed:(0,r.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){},deep:!0}},onLoad:function(){this.isLogin?this.getBrokerageRankList():(0,o.toLogin)()},onShow:function(){t.removeStorageSync("form_type_cart")},methods:{onLoadFun:function(){this.getBrokerageRankList(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},goarrow:function(){t.navigateBack()},switchTap:function(t){this.active=t,this.type=t?"month":"week",this.page=1,this.loadend=!1,this.$set(this,"rankList",[]),this.getBrokerageRankList()},getBrokerageRankList:function(){var t=this;this.loadend||this.loading||(this.loading=!0,this.loadTitle="",(0,a.getBrokerageRank)({page:this.page,limit:this.limit,type:this.type}).then((function(n){var e=n.data.rank,i=e.length<t.limit;t.rankInfo.avatar=n.data.avatar,t.rankInfo.brokerage_price=n.data.brokerage_price,t.rankInfo.nickname=n.data.nickname,t.rankInfo.position=n.data.position,t.rankList.push.apply(t.rankList,e),t.loading=!1,t.loadend=i,t.loadTitle=i?"没有更多内容啦~":"加载更多",t.$set(t,"rankList",t.rankList),t.page+=1})).catch((function(n){t.loading=!1,t.loadTitle="加载更多"})))}},onReachBottom:function(){this.getBrokerageRankList()}};n.default=u}).call(this,e("df3c")["default"])},cbef:function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("f076");i(e("3240"));var a=i(e("3685"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},f5f4:function(t,n,e){"use strict";e.r(n);var i=e("b820"),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}},[["cbef","common/runtime","common/vendor"]]]);