|
|
@ -14,14 +14,14 @@ Page({ |
|
|
product:null, |
|
|
product:null, |
|
|
price:0, |
|
|
price:0, |
|
|
coupon:null, |
|
|
coupon:null, |
|
|
prizeId:null |
|
|
prizeId:null, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 生命周期函数--监听页面加载 |
|
|
* 生命周期函数--监听页面加载 |
|
|
*/ |
|
|
*/ |
|
|
onLoad: function (options) { |
|
|
onLoad: function (options) { |
|
|
console.log(options.selectSeatInfo); |
|
|
console.log(options); |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
prizeId:wx.getStorageSync('prizeId') |
|
|
prizeId:wx.getStorageSync('prizeId') |
|
|
}) |
|
|
}) |
|
|
@ -29,7 +29,8 @@ Page({ |
|
|
product.info.selectSeatInfo = JSON.parse(options.selectSeatInfo) |
|
|
product.info.selectSeatInfo = JSON.parse(options.selectSeatInfo) |
|
|
product.info.selectSeatInfo.seatPriceInfo.map(item=>{ |
|
|
product.info.selectSeatInfo.seatPriceInfo.map(item=>{ |
|
|
price =price +Math.ceil(Number(item.split('-')[1])*1.006 * 100) / 100 |
|
|
price =price +Math.ceil(Number(item.split('-')[1])*1.006 * 100) / 100 |
|
|
}) |
|
|
}) |
|
|
|
|
|
console.log(product); |
|
|
console.log(price); |
|
|
console.log(price); |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
product:product, |
|
|
product:product, |
|
|
@ -76,7 +77,7 @@ Page({ |
|
|
"product_num": product.info.selectSeatInfo.seatInfo.length,//也就是锁定的座位数,必填
|
|
|
"product_num": product.info.selectSeatInfo.seatInfo.length,//也就是锁定的座位数,必填
|
|
|
"reserve_mobile": this.data.tel, |
|
|
"reserve_mobile": this.data.tel, |
|
|
"use_date": product.info.show_date,//使用日期,Y-m-d日期格式字符串,必填
|
|
|
"use_date": product.info.show_date,//使用日期,Y-m-d日期格式字符串,必填
|
|
|
"use_time": product.info.start_end_time,//场次时间,直接传字符串,必填
|
|
|
"use_time": product.info.show_time+'-'+product.info.close_time,//场次时间,直接传字符串,必填
|
|
|
"show_version": product.info.show_version,//场次版本,必填
|
|
|
"show_version": product.info.show_version,//场次版本,必填
|
|
|
"scene_id": product.product.scene_id,//场景id,我方系统的场景id,必填
|
|
|
"scene_id": product.product.scene_id,//场景id,我方系统的场景id,必填
|
|
|
"schedules_name": product.info.hallName,//放映厅名称,必填
|
|
|
"schedules_name": product.info.hallName,//放映厅名称,必填
|
|
|
|