require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/promoter_rank/index"],{"04ab":function(t,n,i){"use strict";i.d(n,"b",(function(){return e})),i.d(n,"c",(function(){return a})),i.d(n,"a",(function(){}));var e=function(){var t=this.$createElement,n=(this._self._c,this.rankList.length),i=this.rankList.length;this.$mp.data=Object.assign({},{$root:{g0:n,g1:i}})},a=[]},1940:function(t,n,i){"use strict";var e=i("fd2f"),a=i.n(e);a.a},2006:function(t,n,i){"use strict";i.r(n);var e=i("f3bc"),a=i.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(o);n["default"]=a.a},7759:function(t,n,i){"use strict";i.r(n);var e=i("04ab"),a=i("2006");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(o);i("1940");var s=i("828b"),c=Object(s["a"])(a["default"],e["b"],e["c"],!1,null,"6bba3452",null,!1,e["a"],void 0);n["default"]=c.exports},a3bc:function(t,n,i){"use strict";(function(t,n){var e=i("47a9");i("f076");e(i("3240"));var a=e(i("7759"));t.__webpack_require_UNI_MP_PLUGIN__=i,n(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},f3bc:function(t,n,i){"use strict";(function(t){var e=i("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i("92f9"),o=i("5088"),s=i("8f59"),c=e(i("89cc")),r=i("4d38"),u={components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)}},mixins:[c.default],data:function(){return{imgHost:r.HTTP_REQUEST_URL,getHeight:this.$util.getWXStatusHeight(),navList:["周排行","月排行"],active:0,page:1,limit:20,type:"week",loading:!1,loadend:!1,rankInfo:{position:0,avatar:"",brokerage_price:"",nickname:""},rankList:[],isShowAuth:!1}},computed:(0,s.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){t&&this.getRanklist()},deep:!0}},onLoad:function(){this.isLogin?this.getRanklist():(0,o.toLogin)()},onShow:function(){t.removeStorageSync("form_type_cart")},methods:{onLoadFun:function(){this.getRanklist(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},goarrow:function(){t.navigateBack()},getRanklist:function(){var t=this;t.loadend||t.loading||(t.loading=!0,(0,a.getRankList)({page:t.page,limit:t.limit,type:t.type}).then((function(n){var i=n.data.list;t.rankInfo=n.data,t.rankList.push.apply(t.rankList,i),t.loadend=i.length<t.limit,t.loading=!1,t.$set(t,"rankList",t.rankList),t.page=t.page+1})).catch((function(n){t.loading=!1})))},switchTap:function(t){this.active!==t&&(this.active=t,this.type=t?"month":"week",this.page=1,this.loadend=!1,this.$set(this,"rankList",[]),this.getRanklist())}},onReachBottom:function(){this.getRanklist()},onPageScroll:function(n){t.$emit("scroll")}};n.default=u}).call(this,i("df3c")["default"])},fd2f:function(t,n,i){}},[["a3bc","common/runtime","common/vendor"]]]);