1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/commission_rank/index"],{2802: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,n=t.$createElement,e=(t._self._c,t.position?t.$t("您目前的排名"):null),i=t.position?null:t.$t("您目前暂无排名"),a=t.__map(t.navList,(function(n,e){var i=t.__get_orig(n),a=t.$t(n);return{$orig:i,m2:a}})),o=t.$t("¥"),s=t.__map(t.rankList,(function(n,e){var i=t.__get_orig(n),a=t.$t(n.nickname);return{$orig:i,m3:a}})),r=t.rankList.length,u=0!=r||t.loading?null:t.$t("暂无排名~");t.$mp.data=Object.assign({},{$root:{m0:e,m1:i,l0:a,m4:o,l1:s,g0:r,m5:u}})},a=[]},"352c":function(t,n,e){},"35ae":function(t,n,e){"use strict";var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("d1ea"),o=e("86eb"),s=e("26cb"),r=i(e("19b6")),u={components:{authorize:function(){e.e("components/Authorize").then(function(){return resolve(e("ad23"))}.bind(null,e)).catch(e.oe)},emptyPage:function(){e.e("components/emptyPage").then(function(){return resolve(e("42ff"))}.bind(null,e)).catch(e.oe)}},mixins:[r.default],data:function(){return{navList:[this.$t("周排行"),this.$t("月排行")],active:0,rankList:[],page:1,limit:20,loadend:!1,loading:!1,loadTitle:this.$t("加载更多"),type:"week",position:0,isAuto:!1,isShowAuth:!1}},computed:(0,s.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){t&&this.getBrokerageRankList()},deep:!0}},onLoad:function(){this.isLogin?this.getBrokerageRankList():(0,o.toLogin)()},methods:{onLoadFun:function(){this.getBrokerageRankList()},authColse:function(t){this.isShowAuth=t},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.rankList.push.apply(t.rankList,e),t.loading=!1,t.loadend=i,t.loadTitle=i?t.$t("我也是有底线的"):t.$t("加载更多"),t.$set(t,"rankList",t.rankList),t.position=n.data.position,t.page+=1})).catch((function(n){t.loading=!1,t.loadTitle=t.$t("加载更多")})))}},onReachBottom:function(){this.getBrokerageRankList()}};n.default=u},4276:function(t,n,e){"use strict";e.r(n);var i=e("35ae"),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},5199:function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("4789");i(e("66fd"));var a=i(e("5810"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},5810:function(t,n,e){"use strict";e.r(n);var i=e("2802"),a=e("4276");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("ce4e");var s=e("f0c5"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"02026354",null,!1,i["a"],void 0);n["default"]=r.exports},ce4e:function(t,n,e){"use strict";var i=e("352c"),a=e.n(i);a.a}},[["5199","common/runtime","common/vendor"]]]);
|