From 3875ea632e588e615bd54c2003aa78dd0d4a19f0 Mon Sep 17 00:00:00 2001 From: shaojing <2901156235@qq.com> Date: Thu, 18 Apr 2024 10:10:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=8B=E5=8D=95=E4=B8=8D?= =?UTF-8?q?=E5=AE=9E=E5=90=8D=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- pages/order/scene/index.js | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/app.js b/app.js index e0fd14a..845ff83 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.isTest110? true : false; + data.isTest = data.isTest111? true : false; this.globalData.configJson = data }).then(() => { // 获取ui配置文件 diff --git a/pages/order/scene/index.js b/pages/order/scene/index.js index 6990497..366ba51 100644 --- a/pages/order/scene/index.js +++ b/pages/order/scene/index.js @@ -32,6 +32,7 @@ Page({ isCar:'single', showMask: false, price:0, + is_need_idcard:1, }, /** @@ -48,9 +49,10 @@ Page({ flag:options.flag, date:null, ticket_type:app.globalData.product.sku.ticket_type || 1, - isCar:options.isCar + isCar:options.isCar, + is_need_idcard:app.globalData.product.sku.sku_model.is_need_idcard }) - console.log('-------',app.globalData.product); + console.log('-------',app.globalData.product.sku.sku_model.is_need_idcard); if (!app.globalData.product) { util.back(); @@ -370,12 +372,14 @@ Page({ console.log(this.data) let linkmanList = this.data.linkmanList, productNum = this.data.productNum, date = this.data.date, time = this.data.time, remark = this.data.remark, product = this.data.product; let linkmanIds = []; - if (linkmanList.length < productNum && app.globalData.product.isGroup != 1) { - wx.showToast({ - title: '请添加出行人', - icon: "none" - }) - return; + if (this.data.is_need_idcard == 1) { + if (linkmanList.length < productNum && app.globalData.product.isGroup != 1) { + wx.showToast({ + title: '请添加出行人', + icon: "none" + }) + return; + } } if (!date && this.data.ticket_type == 1) { wx.showToast({