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zRUYzMTFFOTgwQkZGQkNGNzI5QkI2NjIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0QyQzk0OEEzRUYzMTFFOTgwQkZGQkNGNzI5QkI2NjIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7sozPSAAAA40lEQVR42mL8//8/Ay0BCzKHkZGRKE0vjZXNgNQpXPJiZ+5gtwAdFBQUOAApByj3x4QJEzqg7A1AHAPE+0jyARYAMrweyv4IxDALuIB4CxD7ELKEiYLg5YRa4kQrC4iyhIkKCQWvJUxUSo04LWGiYpLHagkLFQxeCMQLkPjfqG3BAyA+QMtIZqBlMh14C1jQyh4zaDEAAwpUtQAIeKBJjZMmQQQsLfdBC7DvNIsDaluCNZKpaQnOVEQtS/AmU2pYQjAfIFmCXMaAarZGKD5AcUaDWhKAZkEDFOO1gJHWzRaAAAMA7+k9wa3SSGsAAAAASUVORK5CYII="},"2b58":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"container",staticClass:"promoter-list"},[i("div",{staticClass:"header"},[i("div",{staticClass:"promoterHeader bg-color-red"},[i("div",{staticClass:"headerCon acea-row row-between-wrapper"},[i("div",[i("div",{staticClass:"name"},[t._v("推广人数")]),i("div",[i("span",{staticClass:"num"},[t._v(t._s(t.first+t.second))]),t._v("人\n ")])]),i("div",{staticClass:"iconfont icon-tuandui"})])]),i("div",{staticClass:"nav acea-row row-around"},[i("div",{staticClass:"item",class:0==t.screen.grade?"on":"",on:{click:function(e){return t.checkGrade(0)}}},[t._v("\n 一级("+t._s(t.first)+")\n ")]),i("div",{staticClass:"item",class:1==t.screen.grade?"on":"",on:{click:function(e){return t.checkGrade(1)}}},[t._v("\n 二级("+t._s(t.second)+")\n ")])]),i("div",{staticClass:"search acea-row row-between-wrapper"},[i("form",{on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[i("div",{staticClass:"input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.screen.keyword,expression:"screen.keyword"}],attrs:{placeholder:"点击搜索会员名称"},domProps:{value:t.screen.keyword},on:{input:function(e){e.target.composing||t.$set(t.screen,"keyword",e.target.value)}}}),i("span",{staticClass:"iconfont icon-guanbi"})])]),i("div",{staticClass:"iconfont icon-sousuo2"})])]),i("div",{staticClass:"list"},[i("div",{staticClass:"sortNav acea-row row-middle",class:!0===t.fixedState?"on":""},[i("div",{staticClass:"sortItem",on:{click:function(e){return t.sort("childCount")}}},[t._v("\n 团队排序\n "),1==t.childCount?i("img",{attrs:{src:n("bbfe")}}):t._e(),2==t.childCount?i("img",{attrs:{src:n("3673")}}):t._e(),3==t.childCount?i("img",{attrs:{src:n("07c8")}}):t._e()]),i("div",{staticClass:"sortItem",on:{click:function(e){return t.sort("numberCount")}}},[t._v("\n 金额排序\n "),1==t.numberCount?i("img",{attrs:{src:n("bbfe")}}):t._e(),2==t.numberCount?i("img",{attrs:{src:n("3673")}}):t._e(),3==t.numberCount?i("img",{attrs:{src:n("07c8")}}):t._e()]),i("div",{staticClass:"sortItem",on:{click:function(e){return t.sort("orderCount")}}},[t._v("\n 订单排序\n "),1==t.orderCount?i("img",{attrs:{src:n("bbfe")}}):t._e(),2==t.orderCount?i("img",{attrs:{src:n("3673")}}):t._e(),3==t.orderCount?i("img",{attrs:{src:n("07c8")}}):t._e()])]),i("div",{class:!0===t.fixedState?"sortList":""},t._l(t.spreadList,function(e,n){return i("div",{key:n,staticClass:"item acea-row row-between-wrapper"},[i("div",{staticClass:"picTxt acea-row row-between-wrapper"},[i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:e.avatar}})]),i("div",{staticClass:"text"},[i("div",{staticClass:"name line1"},[t._v(t._s(e.nickname))]),i("div",[t._v("加入时间: "+t._s(e.time))])])]),i("div",{staticClass:"right"},[i("div",[i("span",{staticClass:"font-color-red"},[t._v(t._s(e.childCount))]),t._v(" 人\n ")]),i("div",[t._v(t._s(e.orderCount)+" 单")]),i("div",[t._v(t._s(e.numberCount?e.numberCount:0)+" 元")])])])}),0)]),i("Loading",{attrs:{loaded:t.loaded,loading:t.loading}})],1)},s=[],o=n("c24f"),r=n("3a5e"),c={name:"PromoterList",components:{Loading:r["a"]},props:{},data:function(){return{fixedState:!1,screen:{page:1,limit:15,grade:0,keyword:"",sort:""},childCount:2,numberCount:2,orderCount:2,loaded:!1,loading:!1,spreadList:[],loadTitle:"",first:"",second:""}},mounted:function(){var t=this;this.getSpreadUsers(),this.$scroll(this.$refs.container,function(){!t.loading&&t.getSpreadUsers()})},watch:{"screen.sort":function(){this.screen.page=0,this.loaded=!1,this.loading=!1,this.spreadList=[],this.getSpreadUsers()}},methods:{handleScroll:function(){var t=document.documentElement.scrollTop||document.body.scrollTop,e=document.querySelector(".header").clientHeight;this.fixedState=t>=e},submitForm:function(){this.screen.page=0,this.loaded=!1,this.loading=!1,this.spreadList=[],this.getSpreadUsers()},getSpreadUsers:function(){var t=this,e=t.screen;t.loaded||t.loading||(t.loading=!0,Object(o["C"])(e).then(function(e){t.loading=!1,t.spreadList.push.apply(t.spreadList,e.data.list),t.loaded=e.data.list.length<t.screen.limit,t.loadTitle=t.loaded?"人家是有底线的":"上拉加载更多",t.screen.page=t.screen.page+1,t.first=e.data.total,t.second=e.data.totalLevel},function(e){t.$dialog.message(e.msg)},300))},checkGrade:function(t){t!=this.screen.grade&&(this.screen.page=1,this.screen.grade=t,this.loading=!1,this.loaded=!1,this.spreadList=[],this.getSpreadUsers())},sort:function(t){var e=this;switch(t){case"childCount":2==e.childCount?(e.childCount=1,e.orderCount=2,e.numberCount=2,e.screen.sort="childCount DESC"):1==e.childCount?(e.childCount=3,e.orderCount=2,e.numberCount=2,e.screen.sort="childCount ASC"):3==e.childCount&&(e.childCount=2,e.orderCount=2,e.numberCount=2,e.screen.sort="");break;case"numberCount":2==e.numberCount?(e.numberCount=1,e.orderCount=2,e.childCount=2,e.screen.sort="numberCount DESC"):1==e.numberCount?(e.numberCount=3,e.orderCount=2,e.childCount=2,e.screen.sort="numberCount ASC"):3==e.numberCount&&(e.numberCount=2,e.orderCount=2,e.childCount=2,e.screen.sort="");break;case"orderCount":2==e.orderCount?(e.orderCount=1,e.numberCount=2,e.childCount=2,e.screen.sort="orderCount DESC"):1==e.orderCount?(e.orderCount=3,e.numberCount=2,e.childCount=2,e.screen.sort="orderCount ASC"):3==e.orderCount&&(e.orderCount=2,e.numberCount=2,e.childCount=2,e.screen.sort="");break;default:e.screen.sort=""}}}},a=c,d=n("2877"),l=Object(d["a"])(a,i,s,!1,null,null,null);e["default"]=l.exports},3673:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRv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