From c5928de8152b2b041751a878f534537e2fac10ad Mon Sep 17 00:00:00 2001 From: shaojing <2901156235@qq.com> Date: Thu, 1 Aug 2024 17:38:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8E=E8=B0=8A=E4=BB=B7=E6=A0=BC=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- pages/info/sceneProductInfo/index.js | 4 +++- pages/order/scene/index.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 3bc4f3a..ae5b71b 100644 --- a/app.js +++ b/app.js @@ -21,7 +21,7 @@ App({ unique_key: "wechatxcx" }).then(res => { let data = JSON.parse(res.data); - data.isTest = data.isTest136? true : false; + data.isTest = data.isTest137? true : false; this.globalData.configJson = data }).then(() => { // 获取ui配置文件 diff --git a/pages/info/sceneProductInfo/index.js b/pages/info/sceneProductInfo/index.js index 047dcba..058a4f4 100644 --- a/pages/info/sceneProductInfo/index.js +++ b/pages/info/sceneProductInfo/index.js @@ -225,8 +225,10 @@ Page({ }, // 获取日期 changeDate: function (e) { + console.log(e); this.setData({ - date: e.detail + date: e.detail, + showPrice:e.detail.price }) console.log(this.data.date); }, diff --git a/pages/order/scene/index.js b/pages/order/scene/index.js index d5f0efc..86b2b38 100644 --- a/pages/order/scene/index.js +++ b/pages/order/scene/index.js @@ -87,7 +87,8 @@ Page({ } this.setData({ product: app.globalData.product, - singlePrice: this.data.gp_id ? app.globalData.product.sku.event_price : app.globalData.product.sku.price + singlePrice: app.globalData.product?app.globalData.product.date.price :(this.data.gp_id ? app.globalData.product.sku.event_price : app.globalData.product.sku.price) + // singlePrice: this.data.gp_id ? app.globalData.product.sku.event_price : app.globalData.product.sku.price }) console.log(this.data.singlePrice); this.showAllPrice()