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