|
...
|
...
|
@@ -34,6 +34,16 @@ Page({ |
|
|
|
this.setData({
|
|
|
|
reserveDate: options.date ? options.date : util.unixtoTime(new Date() / 1000, 'YYYY-MM-DD'),
|
|
|
|
})
|
|
|
|
if(options.act=='update'){//修改预订
|
|
|
|
//act=update§ion=night&time=16:00&date=2020-12-27&sid=1&ddate=1609056000&room_demand=[{"id":"30","name":"6人间"},{"id":"31","name":"10人间"},{"id":"32","name":"12人间"}]
|
|
|
|
this.setData({
|
|
|
|
reserveDate: options.date,
|
|
|
|
seletroomlist:JSON.parse(options.room_demand),
|
|
|
|
reserveSection:options.section
|
|
|
|
})
|
|
|
|
this.reserve.section=options.section;
|
|
|
|
this.reserve.time=options.time;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
GetSellerDetail(){
|
|
|
|
let options=this.options
|
|
...
|
...
|
@@ -182,7 +192,7 @@ Page({ |
|
|
|
if(this.options.pnum){
|
|
|
|
this.reserve.pnum = this.options.pnum;
|
|
|
|
}
|
|
|
|
wx.navigateTo({
|
|
|
|
wx.redirectTo({
|
|
|
|
url:util.http_build_query(this.reserve,'./submit')
|
|
|
|
})
|
|
|
|
},
|
...
|
...
|
|