|
|
@ -28,6 +28,7 @@ Page({ |
|
|
allowance_price: 0, |
|
|
allowance_price: 0, |
|
|
pIndex: 0, |
|
|
pIndex: 0, |
|
|
flag:null, |
|
|
flag:null, |
|
|
|
|
|
ticket_type:1 |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
@ -39,7 +40,8 @@ Page({ |
|
|
kjId: app.globalData.kjId, |
|
|
kjId: app.globalData.kjId, |
|
|
gp_id: app.globalData.gp_id || app.globalData.team_id, |
|
|
gp_id: app.globalData.gp_id || app.globalData.team_id, |
|
|
prizeId: wx.getStorageSync('prizeId'), |
|
|
prizeId: wx.getStorageSync('prizeId'), |
|
|
flag:options.flag |
|
|
flag:options.flag, |
|
|
|
|
|
ticket_type:app.globalData.product.sku.ticket_type || 1 |
|
|
}) |
|
|
}) |
|
|
if (!app.globalData.product) { |
|
|
if (!app.globalData.product) { |
|
|
util.back(); |
|
|
util.back(); |
|
|
@ -198,7 +200,7 @@ Page({ |
|
|
// })
|
|
|
// })
|
|
|
// return;
|
|
|
// return;
|
|
|
// }
|
|
|
// }
|
|
|
if (!date) { |
|
|
if (!date && this.data.ticket_type == 1) { |
|
|
wx.showToast({ |
|
|
wx.showToast({ |
|
|
title: '请选择使用日期', |
|
|
title: '请选择使用日期', |
|
|
icon: 'none' |
|
|
icon: 'none' |
|
|
@ -265,8 +267,9 @@ Page({ |
|
|
if(app.globalData.list){ |
|
|
if(app.globalData.list){ |
|
|
app.globalData.list[app.globalData.index] = this.data.product |
|
|
app.globalData.list[app.globalData.index] = this.data.product |
|
|
} |
|
|
} |
|
|
app.globalData.ticketPrice += (this.data.singlePrice * this.data.productNum - (this.data.coupon?this.data.coupon.activity.money:0))/100; |
|
|
app.globalData.ticketPrice += (this.data.singlePrice * this.data.productNum - (this.data.coupon?this.data.coupon.activity.money:0))/100; |
|
|
if(app.globalData.list && app.globalData.list.length > app.globalData.index + 1){ |
|
|
console.log(app.globalData); |
|
|
|
|
|
if(app.globalData.list.list && app.globalData.list.length > app.globalData.index + 1){ |
|
|
if(app.globalData.createDate){ |
|
|
if(app.globalData.createDate){ |
|
|
app.globalData.createDate.product_list.push(data.product_list[0]) |
|
|
app.globalData.createDate.product_list.push(data.product_list[0]) |
|
|
}else{ |
|
|
}else{ |
|
|
|