require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/behalf/user_list/index"],{1008:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("6af6"),i={name:"userList",data:function(){return{params:{page:1,limit:10,nickname:"",keyword:""},userList:[],status:!1,loadTit:"正在加载",pageScrollStatus:!1,tabActive:0}},components:{emptyPage:function(){a.e("components/emptyPage").then(function(){return resolve(a("398a"))}.bind(null,a)).catch(a.oe)},NavBar:function(){a.e("components/NavBar").then(function(){return resolve(a("a7d8"))}.bind(null,a)).catch(a.oe)}},onLoad:function(){this.checkKefuAuth("kefu-behalf")&&this.getList()},onPageScroll:function(e){e.scrollTop>30?this.pageScrollStatus=!0:e.scrollTop<30&&(this.pageScrollStatus=!1),t.$emit("scroll")},methods:{checkTab:function(t){this.tabActive=t,this.userList=[],this.status=!1,this.params.page=1,this.getList()},getList:function(){var t=this;if(this.checkKefuAuth("kefu-behalf")){var e=this;if(!e.status){e.loadTit="加载更多";var a=this.tabActive?n.adminChannelListApi:n.adminUserList;a(this.params).then((function(a){var n=a.data.list.length;t.userList=t.userList.concat(a.data.list),e.params.page++,e.status=t.params.limit>n,e.params.page=e.params.page,e.loadTit=e.status?"没有更多内容啦~":"加载更多"})).catch((function(a){return e.loadTit="加载更多",t.$util.Tips({title:a})}))}}},searchSubmit:function(){this.params.page=1,this.status=!1,this.userList=[],this.getList()},clearWord:function(){this.params.nickname=""},goPage:function(e){(0!==e.indexOf("/pages/behalf/")||this.checkKefuAuth("kefu-behalf"))&&t.navigateTo({url:e})}},onReachBottom:function(t){this.getList()}};e.default=i}).call(this,a("df3c")["default"])},"2eac":function(t,e,a){"use strict";var n=a("ae72"),i=a.n(n);i.a},"88d1":function(t,e,a){"use strict";a.r(e);var n=a("fc60"),i=a("aca9");for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);a("2eac");var u=a("828b"),r=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=r.exports},aca9:function(t,e,a){"use strict";a.r(e);var n=a("1008"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},ae72:function(t,e,a){},ba9d:function(t,e,a){"use strict";(function(t,e){var n=a("47a9");a("f076");n(a("3240"));var i=n(a("88d1"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(i.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])},fc60:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n}));var n={easyLoadimage:function(){return a.e("components/easy-loadimage/easy-loadimage").then(a.bind(null,"94dd"))}},i=function(){var t=this,e=t.$createElement,a=(t._self._c,t.hasKefuAuth("kefu-behalf")),n=!t.tabActive&&t.hasKefuAuth("kefu-behalf"),i=t.userList.length&&0==t.tabActive,s=i?t.__map(t.userList,(function(e,a){var n=t.__get_orig(e),i=t.hasKefuAuth("kefu-behalf");return{$orig:n,m2:i}})):null,u=i?t.userList.length:null,r=i?null:t.userList.length&&1==t.tabActive,c=!i&&r?t.__map(t.userList,(function(e,a){var n=t.__get_orig(e),i=t.hasKefuAuth("kefu-behalf");return{$orig:n,m3:i}})):null,o=!i&&r?t.userList.length:null;t.$mp.data=Object.assign({},{$root:{m0:a,m1:n,g0:i,l0:s,g1:u,g2:r,l1:c,g3:o}})},s=[]}},[["ba9d","common/runtime","common/vendor"]]]);