From dce2233be8e661b45127a43c6f8f9fbfa99756bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Fri, 24 Feb 2023 15:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=B7=BB=E5=8A=A0=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E5=BE=AE=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/customer/detail/index.js | 11 +++++++++++ pages/customer/detail/index.wxml | 12 ++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) 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 @@ + + + 已添加个微 + - + + + 已添加个微 + + 再次到店 - + 客户试驾