require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/promoter-list/index"],{"121e":function(t,e,i){"use strict";var s=i("45ba"),o=i.n(s);o.a},2898:function(t,e,i){"use strict";i.r(e);var s=i("65e6"),o=i.n(s);for(var n in s)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(n);e["default"]=o.a},3889:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var s=function(){var t=this,e=t.$createElement,i=(t._self._c,t.recordList.length),s=t.__map(t.recordList,(function(e,i){var s=t.__get_orig(e),o=e.time?e.time.split(" "):null;return{$orig:s,g1:o}})),o=0==t.recordList.length&&t.isShow&&!t.loadingList;t.$mp.data=Object.assign({},{$root:{g0:i,l0:s,g2:o}})},o=[]},"3b94":function(t,e,i){"use strict";(function(t,e){var s=i("47a9");i("1d3c");s(i("3240"));var o=s(i("8f6e"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"45ba":function(t,e,i){},"65e6":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i("51a2"),o=i("cef1"),n=i("8f59"),r=i("d5b1"),a=getApp(),u={components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("a342"))}.bind(null,i)).catch(i.oe)}},data:function(){return{urlDomain:this.$Cache.get("imgHost"),page:1,limit:20,keywords:"",sort:"",isAsc:"",sortKey:"",grade:0,status:!1,loadingList:!1,recordList:[],peopleData:{},isShow:!1,theme:a.globalData.theme,bgColor:"#e93323"}},computed:(0,n.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin?(this.userSpreadNewList(),this.spreadPeoCount()):(0,o.toLogin)();this.bgColor=(0,r.setThemeColor)(),t.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.bgColor})},onShow:function(){this.is_show&&this.userSpreadNewList()},onHide:function(){this.is_show=!0},methods:{setSort:function(t,e){this.isAsc=e,this.sort=t+e,this.sortKey=t,this.page=1,this.limit=20,this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList()},submitForm:function(){this.page=1,this.limit=20,this.status=!1,this.$set(this,"recordList",[]),this.userSpreadNewList()},setType:function(t){this.grade!=t&&(this.grade=t,this.page=1,this.limit=20,this.keywords="",this.sort="",this.isAsc="",this.status=!1,this.loadingList=!1,this.$set(this,"recordList",[]),this.userSpreadNewList())},spreadPeoCount:function(){var t=this;(0,s.spreadPeoCount)().then((function(e){t.peopleData=e.data}))},userSpreadNewList:function(){var t=this,e=t.page,i=t.limit,o=t.status,n=encodeURIComponent(t.keywords),r=t.isAsc,a=t.sortKey,u=t.grade,c=t.recordList,d=[];t.loadingList||1!=o&&(this.loadingList=!0,(0,s.spreadPeople)({page:e,limit:i,keyword:n,grade:u,sortKey:a,isAsc:r}).then((function(s){var o=s.data?s.data:[],n=o.length;d=c.concat(o),t.status=i>n,t.page=e+1,t.$set(t,"recordList",d||[]),t.loadingList=!1,t.isShow=!0})))}},onReachBottom:function(){this.userSpreadNewList()}};e.default=u}).call(this,i("df3c")["default"])},"8f6e":function(t,e,i){"use strict";i.r(e);var s=i("3889"),o=i("2898");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("121e");var r=i("828b"),a=Object(r["a"])(o["default"],s["b"],s["c"],!1,null,"797b142a",null,!1,s["a"],void 0);e["default"]=a.exports}},[["3b94","common/runtime","common/vendor"]]]);