This commit is contained in:
SelfRidicule 2024-03-19 15:04:58 +08:00
parent 003bb020b9
commit cf28c9fcf8
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@ Page({
data: { data: {
IMG_NAME: app.IMG_NAME, IMG_NAME: app.IMG_NAME,
couponId: null, couponId: null,
meetingRoomId: null,
dataList: [], dataList: [],
userDetail: {} userDetail: {}
}, },
@ -28,6 +29,7 @@ Page({
console.log('onLoad options', typeof options.couponId); console.log('onLoad options', typeof options.couponId);
_this.setData({ _this.setData({
type: options.type, type: options.type,
meetingRoomId: options.meetingRoomId,
couponId: parseInt(options.couponId), couponId: parseInt(options.couponId),
userDetail: wx.getStorageSync('user') userDetail: wx.getStorageSync('user')
}) })
@ -41,6 +43,7 @@ Page({
getCustomerTicketRq({ getCustomerTicketRq({
"userId": _this.data.userDetail.id, "userId": _this.data.userDetail.id,
"customerId": _this.data.userDetail.icsCustomerId, "customerId": _this.data.userDetail.icsCustomerId,
"meetingId" : _this.data.meetingRoomId,
"type": _this.data.type "type": _this.data.type
}).then(res => { }).then(res => {
let nowTime = new Date().getTime(); let nowTime = new Date().getTime();

View File

@ -124,7 +124,7 @@ Page({
jumpMeetingCoupon() { jumpMeetingCoupon() {
let _this = this; let _this = this;
wx.navigateTo({ wx.navigateTo({
url: "/pages/meeting/meetingRoom/meetingCoupon/meetingCoupon?type=1&couponId=" + _this.data.couponId, url : `/pages/meeting/meetingRoom/meetingCoupon/meetingCoupon?type=1&couponId=${_this.data.couponId}&meetingRoomId=${_this.data.meetingRoomId}`,
}) })
}, },