From e38eba359c22ee4608deb8ad0dd575ab48e9c89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Thu, 24 Mar 2022 14:23:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E7=B4=A2=E6=9D=A5=E6=BA=90=20=20?= =?UTF-8?q?=E9=A2=84=E8=AE=A1=E8=B4=AD=E8=BD=A6=E6=97=B6=E9=97=B4=E6=94=B9?= =?UTF-8?q?=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/customer/addCard/index.js | 26 ++++++++++++++++++++------ pages/customer/editCard/index.js | 18 ++++++++++++++++++ 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/pages/customer/addCard/index.js b/pages/customer/addCard/index.js index 92cf2a0..8a1f296 100644 --- a/pages/customer/addCard/index.js +++ b/pages/customer/addCard/index.js @@ -263,6 +263,24 @@ Page({ icon: 'none' }) } + else if (that.data.of_id == '' ) { + wx.showToast({ + title: '请选择线索来源', + icon: 'none' + }) + } + else if (that.data.sources[that.data.of1Index].list.length>0&&that.data.of2_id == '' ) { + wx.showToast({ + title: '请选择'+that.data.sources[that.data.of1Index].name+'类型', + icon: 'none' + }) + } + else if (that.data.buy_time == '' ) { + wx.showToast({ + title: '请选择预计购车时间', + icon: 'none' + }) + } // else if(that.data.car_id == '' ){ // wx.showToast({ // title: '请选择车系车型', @@ -294,15 +312,11 @@ Page({ // if(this.data.b_s_id != ''){ // params['b_s_id'] = this.data.b_s_id; // } - if(this.data.of_id != ''){ - params['of_id'] = this.data.of_id; - } + params['of_id'] = this.data.of_id; if(this.data.of2_id != ''){ params['of2_id'] = this.data.of2_id; } - if(this.data.buy_time != ''){ - params['buy_time'] = this.data.buy_time; - } + params['buy_time'] = this.data.buy_time; _.apiQuery.postAppCustomers(params).then(res => { //刷新列表页 diff --git a/pages/customer/editCard/index.js b/pages/customer/editCard/index.js index 61e31d0..e8d98dd 100644 --- a/pages/customer/editCard/index.js +++ b/pages/customer/editCard/index.js @@ -377,6 +377,24 @@ Page({ icon: 'none' }) } + else if (that.data.of_id == '' ) { + wx.showToast({ + title: '请选择线索来源', + icon: 'none' + }) + } + else if (that.data.sources[that.data.of1Index].list.length>0&&that.data.of2_id == '' ) { + wx.showToast({ + title: '请选择'+that.data.sources[that.data.of1Index].name+'类型', + icon: 'none' + }) + } + else if (that.data.buy_time == '' ) { + wx.showToast({ + title: '请选择预计购车时间', + icon: 'none' + }) + } // else if(that.data.car_id == '' ){ // wx.showToast({ // title: '请选择车系车型',