You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
4.7 KiB
10 lines
4.7 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/KeHu/KeHu"],{3962:function(e,t,n){"use strict";n.r(t);var u=n("acb6"),a=n.n(u);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);t["default"]=a.a},"4d72":function(e,t,n){"use strict";n.r(t);var u=n("4d94"),a=n("3962");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("b5d8");var s,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(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return u}));var u={uGap:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-gap/u-gap")]).then(n.bind(null,"5723"))},uTabs:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"2e80"))},uLine:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-line/u-line")]).then(n.bind(null,"4db2"))},uList:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-list/u-list")]).then(n.bind(null,"971c"))},uListItem:function(){return Promise.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(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.getCustomerToShow(),(function(t,n){var u=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){var u=arguments[arguments.length-1].currentTarget.dataset,a=u.eventParams||u["event-params"];n=a.index;return e.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=void 0;var u=a(n("e6d7"));function a(e){return e&&e.__esModule?e:{default:e}}var o=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(){var e=this;console.log("KeHu Created!!!!!"),m.keHuToppic.get(),this.onChangeTabIndex({index:0});var t=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()}));var n=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(){var e=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(){var e=this.currentTabIndex;return e+"_"+this.specialKey},onClickAddNew:function(){var t=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(){var e=this.currentTabIndex,t=this.customermanager.getTargetGroupByIndex(e);return t.customerinfo},onChangeTabIndex:function(e){var t=e.index;this.currentTabIndex=t;var n=this.customermanager.getTargetGroupByIndex(t);0==n.allCount&&n.getNextPage()},getStatusName:function(e){var t=this.statusDefines.length;return e>=t||e<0?{str:"错误",color:"#ff0000"}:this.statusDefines[e]},listScrollToBottom:function(){console.log("end of the custom list");var e=this.customermanager.getTargetGroupByIndex(this.currentTabIndex);e.getNextPage()},onTouchOneItem:function(t){var n=this.getCustomerToShow(),u=n[t],a=u.status;console.log("customer status => ",a),1==a&&(getApp().globalData.editingCustomer=u,e.navigateTo({url:"/pages/AddNewCustomer/AddNewCustomer"}))}}};t.default=d}).call(this,n("543d")["default"])},b5d8:function(e,t,n){"use strict";var u=n("cc56"),a=n.n(u);a.a},cc56:function(e,t,n){}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/KeHu/KeHu-create-component',
|
|
{
|
|
'components/KeHu/KeHu-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('543d')['createComponent'](__webpack_require__("4d72"))
|
|
})
|
|
},
|
|
[['components/KeHu/KeHu-create-component']]
|
|
]);
|
|
|