diff --git a/pages/customer/detail/index.js b/pages/customer/detail/index.js
index f402b97..a09f4b9 100644
--- a/pages/customer/detail/index.js
+++ b/pages/customer/detail/index.js
@@ -48,6 +48,8 @@ Page({
comment:'',//评论内容
isShowComment:false,//是否显示用户评论弹窗
+
+ wxgr:0,//是否添加个微
},
onLoad(options) {
for (let key in options) {
@@ -170,6 +172,7 @@ Page({
this.setData({
detailinfo:res.data,
statuskey:res.data.status!=3?res.data.status:-10,
+ wxgr:res.data.wxgr,
})
if(res.data.level){
@@ -405,6 +408,11 @@ Page({
t_num:this.data.t_num == 1?'':1,
})
}
+ if(e.currentTarget.dataset.pointer == 'gewei'){
+ this.setData({
+ wxgr:this.data.wxgr == 1?'0':1,
+ })
+ }
},
//取消变更状态
@@ -489,6 +497,9 @@ Page({
if(this.data.statuskey == 3){
params['invalid_tag'] = this.data.defeatTag;
}
+ if((this.data.statuskey == 0||this.data.statuskey == 1)&&this.data.wxgr==1){
+ params['wxgr'] = this.data.wxgr;
+ }
_.apiQuery.putAppCustomers(params).then(res=>{
this.setData({
isShowNote:false,//新增日志弹窗
diff --git a/pages/customer/detail/index.wxml b/pages/customer/detail/index.wxml
index 28e27bd..6570bfc 100644
--- a/pages/customer/detail/index.wxml
+++ b/pages/customer/detail/index.wxml
@@ -260,12 +260,20 @@
+
+
+ 已添加个微
+
-
+
+
+ 已添加个微
+
+
再次到店
-
+
客户试驾