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: '请选择车系车型',