|
|
@ -29,7 +29,8 @@ Page({ |
|
|
pIndex: 0, |
|
|
pIndex: 0, |
|
|
flag:null, |
|
|
flag:null, |
|
|
ticket_type:1, |
|
|
ticket_type:1, |
|
|
isCar:'single' |
|
|
isCar:'single', |
|
|
|
|
|
showMask: false |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
@ -71,6 +72,16 @@ Page({ |
|
|
this.couponCom = this.selectAllComponents("#coupon")[0]; |
|
|
this.couponCom = this.selectAllComponents("#coupon")[0]; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
next: function () { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
showMask:true |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
cancel: function () { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
showMask:false |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
changeGroupName: function (e) { |
|
|
changeGroupName: function (e) { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
groupName: e.detail.value |
|
|
groupName: e.detail.value |
|
|
@ -250,7 +261,8 @@ Page({ |
|
|
}], |
|
|
}], |
|
|
originate_order_id: this.data.kjId, |
|
|
originate_order_id: this.data.kjId, |
|
|
gp_id: app.globalData.gp_id, |
|
|
gp_id: app.globalData.gp_id, |
|
|
team_id: app.globalData.team_id |
|
|
team_id: app.globalData.team_id, |
|
|
|
|
|
linkmanList:this.data.linkmanList |
|
|
} |
|
|
} |
|
|
if (app.globalData.from) { |
|
|
if (app.globalData.from) { |
|
|
data.system_name = app.globalData.from; |
|
|
data.system_name = app.globalData.from; |
|
|
@ -276,7 +288,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.list[app.globalData.index].linkmanList = this.data.linkmanList |
|
|
|
|
|
} |
|
|
|
|
|
// app.globalData.linkmanList = this.data.linkmanList
|
|
|
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; |
|
|
console.log(app.globalData); |
|
|
console.log(app.globalData); |
|
|
if(app.globalData.list && app.globalData.list.length > app.globalData.index + 1 &&this.data.type!='museum'){ |
|
|
if(app.globalData.list && app.globalData.list.length > app.globalData.index + 1 &&this.data.type!='museum'){ |
|
|
@ -284,7 +298,7 @@ Page({ |
|
|
app.globalData.createDate.product_list.push(data.product_list[0]) |
|
|
app.globalData.createDate.product_list.push(data.product_list[0]) |
|
|
}else{ |
|
|
}else{ |
|
|
app.globalData.createDate = data |
|
|
app.globalData.createDate = data |
|
|
} |
|
|
} |
|
|
app.globalData.index = app.globalData.index + 1 |
|
|
app.globalData.index = app.globalData.index + 1 |
|
|
app.globalData.product = app.globalData.list[app.globalData.index] |
|
|
app.globalData.product = app.globalData.list[app.globalData.index] |
|
|
wx.redirectTo({ |
|
|
wx.redirectTo({ |
|
|
|