From b90e7367959bc69a4b73a2881af6a07ce2d294c0 Mon Sep 17 00:00:00 2001 From: shaojing <2901156235@qq.com> Date: Mon, 8 Jul 2024 10:58:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=9F=E7=A5=A8=E4=BB=B7=E6=A0=BC=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- pages/order/scene/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 4194903..5127000 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.isTest126? true : false; + data.isTest = data.isTest127? true : false; this.globalData.configJson = data }).then(() => { // 获取ui配置文件 diff --git a/pages/order/scene/index.js b/pages/order/scene/index.js index 82b8e39..7690c0c 100644 --- a/pages/order/scene/index.js +++ b/pages/order/scene/index.js @@ -97,9 +97,9 @@ Page({ // console.log('productNum',this.data.productNum); console.log('couponInfo',app.globalData.couponInfo); if (this.data.ticket_type != 1) { - this.setData({ - singlePrice:app.globalData.product.product.price - }) + // this.setData({ + // singlePrice:app.globalData.product.product.price + // }) let price = this.data.singlePrice * this.data.productNum - (this.data.coupon?this.data.coupon.activity.money:0) if (price >0) { this.setData({