(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/KeHu/KeHu"],{3962:function(e,t,n){"use strict";n.r(t);varu=n("acb6"),a=n.n(u);for(varoinu)"default"!==o&&function(e){n.d(t,e,(function(){returnu[e]}))}(o);t["default"]=a.a},"4d72":function(e,t,n){"use strict";n.r(t);varu=n("4d94"),a=n("3962");for(varoina)"default"!==o&&function(e){n.d(t,e,(function(){returna[e]}))}(o);n("b5d8");vars,r=n("f0c5"),i=Object(r["a"])(a["default"],u["b"],u["c"],!1,null,"0817d33d",null,!1,u["a"],s);t["default"]=i.exports},"4d94":function(e,t,n){"use strict";n.d(t,"b",(function(){returna})),n.d(t,"c",(function(){returno})),n.d(t,"a",(function(){returnu}));varu={uGap:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-gap/u-gap")]).then(n.bind(null,"5723"))},uTabs:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"2e80"))},uLine:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-line/u-line")]).then(n.bind(null,"4db2"))},uList:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-list/u-list")]).then(n.bind(null,"971c"))},uListItem:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-list-item/u-list-item")]).then(n.bind(null,"fdc8"))}},a=function(){vare=this,t=e.$createElement,n=(e._self._c,e.__map(e.getCustomerToShow(),(function(t,n){varu=e.__get_orig(t),a=t.status>2?e.getStatusName(t.status):null,o=t.status>2||2!=t.status?null:e.getStatusName(t.status),s=t.status>2||2==t.status||1!=t.status?null:e.getStatusName(t.status);return{$orig:u,m0:a,m1:o,m2:s}})));e._isMounted||(e.e0=function(t,n){varu=arguments[arguments.length-1].currentTarget.dataset,a=u.eventParams||u["event-params"];n=a.index;returne.onTouchOneItem(n)}),e.$mp.data=Object.assign({},{$root:{l0:n}})},o=[]},acb6:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void0;varu=a(n("e6d7"));functiona(e){returne&&e.__esModule?e:{default:e}}varo=u.default.tabs,s=0,r=u.default.infoTitles,i=u.default.statusDefines,c=getApp().globalData.customermanager,l=getApp().globalData.Define,m=getApp().globalData.mainPageData,d={name:"KeHu",created:function(){vare=this;console.log("KeHu Created!!!!!"),m.keHuToppic.get(),this.onChangeTabIndex({index:0});vart=l.FireKeys.AddNewCustomerSuccess;this.$fire.on(t,(function(t){e.customermanager.allCustom.clear(),e.customermanager.waitCustom.clear(),e.customermanager.allCustom.getNextPage(),e.customermanager.waitCustom.getNextPage()}));varn=l.FireKeys.WeChatLoginSuccess;this.$fire.on(n,(function(t){e.customermanager.allCustom.clear(),e.customermanager.waitCustom.clear(),e.customermanager.allCustom.getNextPage(),e.customermanager.waitCustom.getNextPage()}))},destroyed:function(){vare=l.FireKeys.AddNewCustomerSuccess;this.$fire.off(e),this.$fire.off(l.FireKeys.WeChatLoginSuccess)},data:function(){return{customermanager:c,tabs:o,currentTabIndex:s,infoTitles:r,statusDefines:i,mainPageData:m}},methods:{getListKey:function(){vare=this.currentTabIndex;returne+"_"+this.specialKey},onClickAddNew:function(){vart=m.partnerstatus,n="";0==t?n="请先申请成为官方合作人员":1==t?n="您的申请已收到,请等待工作人员审核":2==t||(n="您的申请已被拒绝,请重新申请"),""==n?e.navigateTo({url:"/pages/AddNewCustomer/AddNewCustomer"}):e.$u.toast(n)},getCustomerToShow:function(){vare=this.currentTabIndex,t=this.customermanager.getTargetGroupByIndex(e);returnt.customerinfo},onChangeTabIndex:function(e){vart=e.index;this.currentTabIndex=t;varn=this.customermanager.getTargetGroupByIndex(t);0==n.allCount&&n.getNextPage()},getStatusName:function(e){vart=this.statusDefines.length;returne>=t||e<0?{str:"错误",color:"#ff0000"}:this.statusDefines[e]},listScrollToBottom:function(){console.log("end of the custom list");vare=this.customermanager.getTargetGroupByIndex(this.currentTabIndex);e.getNextPage()},onTouchOneItem:function(t){var