From 4259caeec7e00e7c1e9fe7484971a1b3ebaa433c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Thu, 24 Mar 2022 14:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E7=B4=A2=E6=9D=A5=E6=BA=90=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?=E4=B8=BA=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/customer/editCard/index.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pages/customer/editCard/index.js b/pages/customer/editCard/index.js index 147fb12..7600701 100644 --- a/pages/customer/editCard/index.js +++ b/pages/customer/editCard/index.js @@ -440,11 +440,16 @@ Page({ // if(that.data.color_id != that.data.baseinfo.color_id.value){ // params['color_id'] = that.data.color_id; // } - params['of_id'] = this.data.of_id; - if(this.data.of2_id != ''){ - params['of2_id'] = this.data.of2_id; + if(that.data.of_id != that.data.baseinfo.of_id.of_id){ + params['of_id'] = that.data.of_id; + } + if(that.data.of2_id != that.data.baseinfo.of_id.of2_id){ + params['of2_id'] = that.data.of2_id; + } + + if(that.data.buy_time != that.data.baseinfo.buy_time.value){ + params['buy_time'] = that.data.buy_time; } - params['buy_time'] = this.data.buy_time; _.apiQuery.putAppCustomerData(params).then(res => { //刷新列表页