|
|
@ -66,7 +66,7 @@ Page({ |
|
|
is_authentication:app.globalData.product.sku.sku_model.is_authentication, |
|
|
is_authentication:app.globalData.product.sku.sku_model.is_authentication, |
|
|
is_real_name:app.globalData.product.sku.sku_model.is_real_name, |
|
|
is_real_name:app.globalData.product.sku.sku_model.is_real_name, |
|
|
date: app.globalData.product.date, |
|
|
date: app.globalData.product.date, |
|
|
time: app.globalData.product.time, |
|
|
time: app.globalData.product.time || {}, |
|
|
showYhq:app.globalData.listName?false:true |
|
|
showYhq:app.globalData.listName?false:true |
|
|
}) |
|
|
}) |
|
|
console.log('-------',this.data.showYhq,this.data.time); |
|
|
console.log('-------',this.data.showYhq,this.data.time); |
|
|
@ -74,11 +74,13 @@ Page({ |
|
|
console.log('-------',app.globalData.product.sku.sku_model.is_need_idcard); |
|
|
console.log('-------',app.globalData.product.sku.sku_model.is_need_idcard); |
|
|
console.log('---是否实名----',app.globalData.product.sku.sku_model.is_authentication); |
|
|
console.log('---是否实名----',app.globalData.product.sku.sku_model.is_authentication); |
|
|
console.log('---一证一票----',app.globalData.product.sku.sku_model.is_real_name); |
|
|
console.log('---一证一票----',app.globalData.product.sku.sku_model.is_real_name); |
|
|
|
|
|
|
|
|
if (!app.globalData.product) { |
|
|
if (!app.globalData.product) { |
|
|
util.back(); |
|
|
util.back(); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
if (!app.globalData.product.time) { |
|
|
|
|
|
app.globalData.product.time = {} |
|
|
|
|
|
} |
|
|
if (app.globalData.product.productNum) { |
|
|
if (app.globalData.product.productNum) { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
productNum: app.globalData.product.productNum < 1 ? 1 : app.globalData.product.productNum |
|
|
productNum: app.globalData.product.productNum < 1 ? 1 : app.globalData.product.productNum |
|
|
@ -421,6 +423,22 @@ Page({ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
// 判断时间日期
|
|
|
|
|
|
if (!date && this.data.ticket_type == 1) { |
|
|
|
|
|
wx.showToast({ |
|
|
|
|
|
title: '请选择使用日期', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (!time && date && date.is_time_stock == true) { |
|
|
|
|
|
wx.showToast({ |
|
|
|
|
|
title: '请选择使用时间', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
let data = { |
|
|
let data = { |
|
|
coupon_id: this.data.coupon ? this.data.coupon.id : null, |
|
|
coupon_id: this.data.coupon ? this.data.coupon.id : null, |
|
|
source: "WECHATXCX", |
|
|
source: "WECHATXCX", |
|
|
|