(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f6145c4"],{"02ee":function(i,t,A){"use strict";A.r(t);var s=function(){var i=this,t=i.$createElement,s=i._self._c||t;return s("div",{ref:"container",staticClass:"commission-rank"},[s("div",{staticClass:"header"},[i.position?s("div",{staticClass:"rank"},[i._v("\n      您目前的排名为：第"),s("span",{staticClass:"num"},[i._v(i._s(i.position))]),i._v("名\n    ")]):s("div",{staticClass:"rank"},[i._v("\n      您暂未上榜\n    ")])]),s("div",{staticClass:"wrapper"},[s("div",{staticClass:"nav acea-row row-around"},i._l(i.navList,(function(t,A){return s("div",{key:A,staticClass:"item",class:i.active===A?"font-color-red":"",on:{click:function(t){return i.switchTap(A)}}},[i._v("\n        "+i._s(t)+"\n      ")])})),0),s("div",{staticClass:"list"},i._l(i.rankList,(function(t,e){return s("div",{key:e,staticClass:"item acea-row row-between-wrapper"},[s("div",{staticClass:"num"},e<=2?[0==e?s("img",{attrs:{src:A("10e7")}}):1==e?s("img",{attrs:{src:A("386e")}}):2==e?s("img",{attrs:{src:A("0aab")}}):i._e()]:[i._v(i._s(e+1))]),s("div",{staticClass:"picTxt acea-row row-between-wrapper"},[s("div",{staticClass:"pictrue"},[s("img",{attrs:{src:t.avatar}})]),s("div",{staticClass:"text line1"},[i._v(i._s(t.nickname))])]),s("div",{staticClass:"people font-color-red"},[i._v("￥"+i._s(t.brokerage_price))])])})),0)])])},e=[],n=(A("ac6a"),A("7f7f"),A("c24f")),a=A("2f62"),c="CommissionRank",I={name:c,props:{},data:function(){return{navList:["周排行","月排行"],active:0,rankList:[],page:1,limit:10,type:"week",position:0,loading:!1,loadend:!1}},computed:Object(a["b"])(["userInfo"]),watch:{$route:function(i){i.name===c&&(this.loaded=!1,this.page=1,this.$set(this,"rankList",[]),this.getBrokerageRankList())}},mounted:function(){var i=this;this.getBrokerageRankList(),this.$scroll(this.$refs.container,(function(){!i.loading&&i.getBrokerageRankList()}))},methods:{switchTap:function(i){this.active=i},getBrokerageRankList:function(){var i=this;this.loading||this.loaded||(this.loading=!0,Object(n["j"])({page:this.page,limit:this.limit,type:this.type}).then((function(t){var A=t.data.rank,s=A.length<i.limit;i.rankList.push.apply(i.rankList,A),i.loading=!1,i.loaded=s,i.page++,i.position=t.data.position,i.$set(i,"rankList",i.rankList),i.getUserRank()})).catch((function(){i.loading=!1})))},getUserRank:function(){var i=this;this.rankList.forEach((function(t,A){i.userInfo.uid==t.uid?i.position=A+1:i.position=0}))}}},M=I,l=(A("ae3c5"),A("2877")),Z=Object(l["a"])(M,s,e,!1,null,"37a04a1d",null);t["default"]=Z.exports},"0aab":function(i,t){i.exports="data:image/png;base64,[encoded data, 4540 characters]"},"10e7":function(i,t){i.exports="data:image/png;base64,[encoded data, 4188 characters]"},"386e":function(i,t){i.exports="data:image/png;base64,[encoded data, 4148 characters]"},"65e4":function(i,t,A){},ae3c5:function(i,t,A){"use strict";var s=A("65e4"),e=A.n(s);e.a}}]);
//# sourceMappingURL=chunk-3f6145c4.1e3263c0.js.map