|
@@ -151,7 +151,7 @@ Page({
|
|
|
}).then(res => {
|
|
|
console.log("新建客户", res)
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
- title: res.data,
|
|
|
+ title: res.msg,
|
|
|
icon: "none"
|
|
|
})
|
|
|
wx.showToast({
|
|
@@ -161,19 +161,13 @@ Page({
|
|
|
setTimeout(() => {
|
|
|
wx.navigateBack()
|
|
|
getCurrentPages().forEach(v => {
|
|
|
- switch (v.__route__) {
|
|
|
- case 'packageA/project/index':
|
|
|
- v.getList(true);
|
|
|
- break;
|
|
|
- case 'packageA/project/search':
|
|
|
- v.getList(true);
|
|
|
- break;
|
|
|
- }
|
|
|
+ if (v.getList) v.getList(true);
|
|
|
})
|
|
|
- /* let pages = getCurrentPages();
|
|
|
- if (pages[pages.length - 2].__route__ == 'packageA/project/index') wx.navigateTo({
|
|
|
- url: '/packageA/setclient/detail?id=' + res.data.sa_customersid,
|
|
|
- }) */
|
|
|
+ if (this.data.sa_projectid == 0) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/packageA/project/detail?sa_projectid=' + res.data.sa_projectid,
|
|
|
+ })
|
|
|
+ }
|
|
|
}, 300)
|
|
|
})
|
|
|
},
|