|
|
|
@ -58,6 +58,8 @@ Page({ |
|
|
|
noticeIndex: 0, |
|
|
|
skuPriceDate: [], |
|
|
|
|
|
|
|
skuShowIndex: 0, |
|
|
|
skuShowDomId: "", |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
@ -327,17 +329,17 @@ Page({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
showBookingInfo: function (e) { |
|
|
|
this.setData({ |
|
|
|
bookingInfo: e.currentTarget.dataset.item.sku_model, |
|
|
|
bookingInfoTitle: e.currentTarget.dataset.item.sku_name |
|
|
|
}) |
|
|
|
util.pagePoint({ |
|
|
|
event: "scene_notice", |
|
|
|
param: { |
|
|
|
type: this.data.info.type, |
|
|
|
id: this.data.info.id |
|
|
|
} |
|
|
|
}, 1) |
|
|
|
// this.setData({
|
|
|
|
// bookingInfo: e.currentTarget.dataset.item.sku_model,
|
|
|
|
// bookingInfoTitle: e.currentTarget.dataset.item.sku_name
|
|
|
|
// })
|
|
|
|
// util.pagePoint({
|
|
|
|
// event: "scene_notice",
|
|
|
|
// param: {
|
|
|
|
// type: this.data.info.type,
|
|
|
|
// id: this.data.info.id
|
|
|
|
// }
|
|
|
|
// }, 1)
|
|
|
|
}, |
|
|
|
closeMask: function () { |
|
|
|
this.setData({ |
|
|
|
@ -826,6 +828,9 @@ Page({ |
|
|
|
} |
|
|
|
console.log(app.globalData.product); |
|
|
|
console.log(ticket_type); |
|
|
|
|
|
|
|
let showSkuIndex = e.currentTarget.dataset.index || 0 |
|
|
|
|
|
|
|
if (ticket_type != 2) { |
|
|
|
let today = util.formatDate(new Date()), |
|
|
|
end_date = util.formatDate(new Date(new Date().getTime() + 30 * 24 * 60 * 60 * 1000)); |
|
|
|
@ -844,7 +849,9 @@ Page({ |
|
|
|
orderSku: e.currentTarget.dataset.sku, |
|
|
|
orderProduct: e.currentTarget.dataset.product, |
|
|
|
noticeIndex: 0, |
|
|
|
skuPriceDate: res.data |
|
|
|
skuPriceDate: res.data, |
|
|
|
skuShowIndex:showSkuIndex, |
|
|
|
skuShowDomId:"sku-show-"+showSkuIndex, |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
@ -1028,6 +1035,23 @@ Page({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
changeSimpleVal (e) { |
|
|
|
let keyname = e.currentTarget.dataset.keyname; |
|
|
|
let val = e.currentTarget.dataset.val; |
|
|
|
let param = {} |
|
|
|
param[keyname] = val |
|
|
|
|
|
|
|
if (keyname == "skuShowIndex") { |
|
|
|
param.skuShowDomId = "sku-show-0" |
|
|
|
if (val == 1) { |
|
|
|
param.skuShowDomId = "sku-show-1" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.setData(param) |
|
|
|
console.log(this.data) |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面初次渲染完成 |
|
|
|
*/ |
|
|
|
|