From eb108bb5620cce9df98bfefe30b90f181ce01ec2 Mon Sep 17 00:00:00 2001 From: shaojing <2901156235@qq.com> Date: Thu, 22 Aug 2024 10:57:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BC=94=E5=87=BA=E7=A5=A8=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6=E4=B8=8B=E5=8D=95=E5=87=BA=E8=A1=8C=E4=BA=BA=E6=8F=90?= =?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 +- subPackages/gwcOrder/index.js | 23 +++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/app.js b/app.js index a36249c..961d2eb 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.isTest143? true : false; + data.isTest = data.isTest144? true : false; this.globalData.configJson = data }).then(() => { // 获取ui配置文件 diff --git a/subPackages/gwcOrder/index.js b/subPackages/gwcOrder/index.js index b8c0da7..0e67cba 100644 --- a/subPackages/gwcOrder/index.js +++ b/subPackages/gwcOrder/index.js @@ -461,13 +461,24 @@ Page({ 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 (this.data.is_need_idcard == 1) { - if (linkmanList.length < productNum && app.globalData.product.isGroup != 1) { - wx.showToast({ - title: '请添加出行人', - icon: "none" - }) - return; + if (this.data.is_real_name == 1) { + if (linkmanList.length < productNum && app.globalData.product.isGroup != 1) { + wx.showToast({ + title: '请添加出行人', + icon: "none" + }) + return; + } + }else { + if (linkmanList.length == 0) { + wx.showToast({ + title: '请添加出行人', + icon: "none" + }) + return; + } } + } if (!date && this.data.ticket_type == 1) { wx.showToast({