12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-738f6d32"],{"02ee":function(t,i,a){"use strict";a.r(i);var s=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{ref:"container",staticClass:"commission-rank"},[a("div",{staticClass:"header"},[a("div",{staticClass:"rank"},[t._v("\n 您目前的排名"),a("span",{staticClass:"num"},[t._v(t._s(t.position))]),t._v("名\n ")])]),a("div",{staticClass:"wrapper"},[a("div",{staticClass:"nav acea-row row-around"},t._l(t.navList,function(i,s){return a("div",{key:s,staticClass:"item",class:t.active===s?"font-color-red":"",on:{click:function(i){return t.switchTap(s)}}},[t._v("\n "+t._s(i)+"\n ")])}),0),a("div",{staticClass:"list"},t._l(t.rankList,function(i,s){return a("div",{key:s,staticClass:"item acea-row row-between-wrapper"},[a("div",{staticClass:"num"},s<=2?[a("img",{attrs:{src:"@assets/images/medal0"+(s+1)+".png"}})]:[t._v(t._s(s+1))]),a("div",{staticClass:"picTxt acea-row row-between-wrapper"},[a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:i.avatar}})]),a("div",{staticClass:"text line1"},[t._v(t._s(i.nickname))])]),a("div",{staticClass:"people font-color-red"},[t._v("¥"+t._s(i.brokerage_price))])])}),0)])])},n=[],e=(a("7f7f"),a("c24f")),r="CommissionRank",o={name:r,props:{},data:function(){return{navList:["周排行","月排行"],active:0,rankList:[],page:1,limit:10,type:"week",position:0,loading:!1,loadend:!1}},watch:{$route:function(t){t.name===r&&(this.loaded=!1,this.page=1,this.$set(this,"rankList",[]),this.getBrokerageRankList())}},mounted:function(){var t=this;this.getBrokerageRankList(),this.$scroll(this.$refs.container,function(){!t.loading&&t.getBrokerageRankList()})},methods:{switchTap:function(t){this.active=t},getBrokerageRankList:function(){var t=this;this.loading||this.loaded||(this.loading=!0,Object(e["j"])({page:this.page,limit:this.limit,type:this.type}).then(function(i){var a=i.data.rank,s=a.length<t.limit;t.rankList.push.apply(t.rankList,a),t.loading=!1,t.loaded=s,t.page++,t.position=i.data.position,t.$set(t,"rankList",t.rankList)}).catch(function(){t.loading=!1}))}}},c=o,l=(a("cd12"),a("2877")),d=Object(l["a"])(c,s,n,!1,null,"21d9d17e",null);i["default"]=d.exports},a69f:function(t,i,a){},cd12:function(t,i,a){"use strict";var s=a("a69f"),n=a.n(s);n.a}}]);
- //# sourceMappingURL=chunk-738f6d32.3544ff5e.js.map
|