Browse Source

演出票购物车下单出行人提示问题

master
shaojing 2 years ago
parent
commit
eb108bb562
  1. 2
      app.js
  2. 23
      subPackages/gwcOrder/index.js

2
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配置文件

23
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({

Loading…
Cancel
Save