12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5da892aa"],{4036:function(t,s,a){},"688b":function(t,s,a){"use strict";var i=a("4036"),e=a.n(i);e.a},e436:function(t,s,a){"use strict";a.r(s);var i=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"PromoterRank"},[a("div",{staticClass:"redBg bg-color-red"},[a("div",{staticClass:"header"},[a("div",{staticClass:"nav acea-row row-center-wrapper"},t._l(t.navList,function(s,i){return a("div",{key:i,staticClass:"item",class:t.active===i?"font-color-red":"",on:{click:function(s){t.active=i}}},[t._v("\n "+t._s(s)+"\n ")])}),0),a("div",{staticClass:"rank acea-row row-bottom row-around"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.Two.uid,expression:"Two.uid"}],staticClass:"item"},[a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.Two.avatar}})]),a("div",{staticClass:"name line1"},[t._v(t._s(t.Two.nickname)+"}")]),a("div",{staticClass:"num"},[t._v(t._s(t.Two.count)+"人")])]),t.One.uid?a("div",{staticClass:"item"},[a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.One.avatar}})]),a("div",{staticClass:"name line1"},[t._v(t._s(t.One.nickname))]),a("div",{staticClass:"num"},[t._v(t._s(t.One.count)+"人")])]):t._e(),t.Three.uid?a("div",{staticClass:"item"},[a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:t.Three.avatar}})]),a("div",{staticClass:"name line1"},[t._v(t._s(t.Three.nickname))]),a("div",{staticClass:"num"},[t._v(t._s(t.Three.count)+"人")])]):t._e()])])]),t.rankList.length?a("div",{staticClass:"list"},t._l(t.rankList,function(s,i){return a("div",{key:i,staticClass:"item acea-row row-between-wrapper"},[a("div",{staticClass:"num"},[t._v(t._s(i+3))]),a("div",{staticClass:"picTxt acea-row row-between-wrapper"},[a("div",{staticClass:"pictrue"},[a("img",{attrs:{src:s.avatar}})]),a("div",{staticClass:"text line1"},[t._v(t._s(s.nickname))])]),a("div",{staticClass:"people font-color-red"},[t._v(t._s(s.count)+"人")])])}),0):t._e()])},e=[],n=(a("7f7f"),a("c24f")),r="PromoterRank",c={name:r,props:{},data:function(){return{navList:["周榜","月榜"],active:0,page:1,limit:10,loading:!1,loadend:!1,rankList:[],One:{},Two:{},Three:{},type:"week"}},watch:{$route:function(t){t.name===r&&(this.loaded=!1,this.page=1,this.$set(this,"rankList",[]),this.getRankList())},active:function(t){this.type=t?"month":"week",this.page=1,this.loaded=!1,this.$set(this,"rankList",[]),this.getRankList()}},mounted:function(){var t=this;this.getRankList(),this.$scroll(this.$refs.container,function(){!t.loading&&t.getRankList()})},methods:{getRankList:function(){var t=this;Object(n["v"])({page:this.page,limit:this.limit,type:this.type}).then(function(s){var a=s.data;t.rankList.push.apply(t.rankList,a),1==t.page&&(t.One=t.rankList.shift()||{},t.Two=t.rankList.shift()||{},t.Three=t.rankList.shift()||{}),t.page++,t.loading=!1,t.loaded=a.length<t.limit,t.$set(t,"rankList",t.rankList)}).catch(function(){t.loading=!1})}}},o=c,l=(a("688b"),a("2877")),d=Object(l["a"])(o,i,e,!1,null,"5f2bdae3",null);s["default"]=d.exports}}]);
- //# sourceMappingURL=chunk-5da892aa.8003ba3a.js.map
|