(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47d0e48c"],{"02ee":function(i,t,e){"use strict";e.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,e){return s("div",{key:e,staticClass:"item",class:i.active===e?"font-color-red":"",on:{click:function(t){return i.switchTap(e)}}},[i._v("\n        "+i._s(t)+"\n      ")])}),0),s("div",{staticClass:"list"},i._l(i.rankList,function(t,A){return s("div",{key:A,staticClass:"item acea-row row-between-wrapper"},[s("div",{staticClass:"num"},A<=2?[0==A?s("img",{attrs:{src:e("10e7")}}):1==A?s("img",{attrs:{src:e("386e")}}):2==A?s("img",{attrs:{src:e("0aab")}}):i._e()]:[i._v(i._s(A+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)])])},A=[],n=(e("ac6a"),e("7f7f"),e("c24f")),a=e("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())},active:function(){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:0===this.active?"week":"month"}).then(function(t){var e=t.data.rank,s=e.length<i.limit;i.rankList.push.apply(i.rankList,e),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,e){i.userInfo.uid==t.uid&&(i.position=e+1)})}}},M=I,h=(e("0b1e"),e("2877")),l=Object(h["a"])(M,s,A,!1,null,"a0b8569a",null);t["default"]=l.exports},"0aab":function(i,t){i.exports="data:image/png;base64,[encoded data, 4540 characters]"},"0b1e":function(i,t,e){"use strict";var s=e("d9bb"),A=e.n(s);A.a},"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]"},d9bb:function(i,t,e){}}]);
//# sourceMappingURL=chunk-47d0e48c.05d1a42a.js.map