From 3beb630357f5343d625f1653f2bb97122b16243c Mon Sep 17 00:00:00 2001 From: yerz123 Date: Tue, 15 Mar 2022 14:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E7=99=BB=E8=AE=B0=E7=AD=89?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=80=89=E6=8B=A9=E8=BD=A6=E8=BE=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/css/base/margin.wxss | 1 + pages/customer/addCard/index.js | 100 +++++++------- pages/customer/addCard/index.wxml | 7 +- pages/customer/detail/index.js | 206 ++++++++++++++--------------- pages/customer/detail/index.wxml | 12 +- pages/customer/editCard/index.js | 78 +++++------ pages/customer/editCard/index.wxml | 7 +- pages/customer/index.js | 28 ++-- pages/customer/index.wxml | 4 +- 9 files changed, 225 insertions(+), 218 deletions(-) diff --git a/commons/css/base/margin.wxss b/commons/css/base/margin.wxss index 57ffb03..d0eb008 100644 --- a/commons/css/base/margin.wxss +++ b/commons/css/base/margin.wxss @@ -63,6 +63,7 @@ .mr170{margin-right:170rpx;} .mr180{margin-right:180rpx;} .mr190{margin-right:190rpx;} +.mb5{margin-bottom:5rpx;} .mb10{margin-bottom:10rpx;} .mb15{margin-bottom:15rpx;} .mb20{margin-bottom:20rpx;} diff --git a/pages/customer/addCard/index.js b/pages/customer/addCard/index.js index 12b63ec..a40db07 100644 --- a/pages/customer/addCard/index.js +++ b/pages/customer/addCard/index.js @@ -4,19 +4,19 @@ Page({ data: { name:'',//名字 mobile:'',//手机号 - brand_id:'',//品牌 - car_id:'',//车系id - v_id:'',//车辆版本id - color_id:'',//颜色id - b_s_id:'',//备选车型id + // brand_id:'',//品牌 + // car_id:'',//车系id + // v_id:'',//车辆版本id + // color_id:'',//颜色id + // b_s_id:'',//备选车型id buy_time:'',//预计购车时间 - brandIndex:-1,//车辆品牌索引 - modelIndex:-1,//车系车型索引 - spareIndex:-1,//备选车型索引 - colorArray:[],//车身颜色列表 - levelArray:[],//车辆版本列表 - colorIndex:-1,//车身颜色索引 - levelIndex:-1,//车辆版本索引 + // brandIndex:-1,//车辆品牌索引 + // modelIndex:-1,//车系车型索引 + // spareIndex:-1,//备选车型索引 + // colorArray:[],//车身颜色列表 + // levelArray:[],//车辆版本列表 + // colorIndex:-1,//车身颜色索引 + // levelIndex:-1,//车辆版本索引 timeArray:[],//预计购车时间列表 timeIndex:-1,//预计购车时间索引 submitFlag:false, @@ -38,9 +38,13 @@ Page({ [key]: options[key] }) } - this.getAppSeriesBrands() + //获取车型品牌 + // this.getAppSeriesBrands() + //获取列表筛选条件-时间 this.getAppCustomersFilter() + //线索来源 this.getAppCustomersOffline_sources() + //客户标签 this.getAppCustomersTag() }, @@ -258,22 +262,24 @@ Page({ title: '请输入正确的手机号码', icon: 'none' }) - }else if(that.data.car_id == '' ){ - wx.showToast({ - title: '请选择车系车型', - icon: 'none' - }) - }else if(that.data.v_id == '' ){ - wx.showToast({ - title: '请选择车辆版本', - icon: 'none' - }) - }else if(that.data.color_id == '' ){ - wx.showToast({ - title: '请选择车身颜色', - icon: 'none' - }) - } else{ + } + // else if(that.data.car_id == '' ){ + // wx.showToast({ + // title: '请选择车系车型', + // icon: 'none' + // }) + // }else if(that.data.v_id == '' ){ + // wx.showToast({ + // title: '请选择车辆版本', + // icon: 'none' + // }) + // }else if(that.data.color_id == '' ){ + // wx.showToast({ + // title: '请选择车身颜色', + // icon: 'none' + // }) + // } + else{ that.setData({ submitFlag: true, }) @@ -281,13 +287,13 @@ Page({ params['status'] = that.data.status; params['name'] = that.data.name; params['mobile'] = that.data.mobile; - params['car_id'] = that.data.car_id; - params['v_id'] = that.data.v_id; - params['color_id'] = that.data.color_id; + // params['car_id'] = that.data.car_id; + // params['v_id'] = that.data.v_id; + // params['color_id'] = that.data.color_id; params['tag'] = that.data.taglList; - if(this.data.b_s_id != ''){ - params['b_s_id'] = this.data.b_s_id; - } + // 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; } @@ -321,19 +327,19 @@ Page({ that.setData({ name:'',//名字 mobile:'',//手机号 - brand_id:'',//品牌 - car_id:'',//车系id - v_id:'',//车辆版本id - color_id:'',//颜色id - b_s_id:'',//备选车型id + // brand_id:'',//品牌 + // car_id:'',//车系id + // v_id:'',//车辆版本id + // color_id:'',//颜色id + // b_s_id:'',//备选车型id buy_time:'',//预计购车时间 - brandIndex:-1,//车辆品牌索引 - modelIndex:-1,//车系车型索引 - spareIndex:-1,//备选车型索引 - colorArray:[],//车身颜色列表 - levelArray:[],//车辆版本列表 - colorIndex:-1,//车身颜色索引 - levelIndex:-1,//车辆版本索引 + // brandIndex:-1,//车辆品牌索引 + // modelIndex:-1,//车系车型索引 + // spareIndex:-1,//备选车型索引 + // colorArray:[],//车身颜色列表 + // levelArray:[],//车辆版本列表 + // colorIndex:-1,//车身颜色索引 + // levelIndex:-1,//车辆版本索引 timeArray:[],//预计购车时间列表 timeIndex:-1,//预计购车时间索引 submitFlag:false, diff --git a/pages/customer/addCard/index.wxml b/pages/customer/addCard/index.wxml index 39d8245..c2d8fae 100644 --- a/pages/customer/addCard/index.wxml +++ b/pages/customer/addCard/index.wxml @@ -22,7 +22,7 @@ - + + 线索来源 {{baseinfo.of_id.value}} @@ -156,12 +156,12 @@ - + 客户级别 - {{tag}} + {{tag}} 线索来源 @@ -73,7 +73,7 @@ - + 预计购车时间 @@ -84,7 +84,6 @@ - 客户标签 {{list.name}} diff --git a/pages/customer/index.js b/pages/customer/index.js index 13a2116..2e88097 100644 --- a/pages/customer/index.js +++ b/pages/customer/index.js @@ -18,9 +18,9 @@ Page({ e_time:'',//结束时间 if_driver:'',//是否试驾 level:'',//客户顶级 - brand_id:'',//品牌 - s_id:'',//车型id - v_id:'',//车辆版本id + // brand_id:'',//品牌 + // s_id:'',//车型id + // v_id:'',//车辆版本id cfrom:'',//客户来源 o_type:'',//排序类型 isShowfilter:false,//是否显示筛查 @@ -215,15 +215,15 @@ Page({ if(this.data.level != ''){ params['level'] = this.data.level; } - if(this.data.brand_id != ''){ - params['brand_id'] = this.data.brand_id; - } - if(this.data.s_id != ''){ - params['s_id'] = this.data.s_id; - } - if(this.data.v_id != ''){ - params['v_id'] = this.data.v_id; - } + // if(this.data.brand_id != ''){ + // params['brand_id'] = this.data.brand_id; + // } + // if(this.data.s_id != ''){ + // params['s_id'] = this.data.s_id; + // } + // if(this.data.v_id != ''){ + // params['v_id'] = this.data.v_id; + // } if(this.data.cfrom != ''){ params['cfrom'] = this.data.cfrom; } @@ -510,8 +510,8 @@ Page({ e_time:'', if_driver:'', level:'', - brand_id:'', - s_id:'', + // brand_id:'', + // s_id:'', cfrom:'', of_id:'', of2_id:'', diff --git a/pages/customer/index.wxml b/pages/customer/index.wxml index b51675f..794114a 100644 --- a/pages/customer/index.wxml +++ b/pages/customer/index.wxml @@ -165,7 +165,7 @@ - + 客户来源