|
...
|
...
|
@@ -281,7 +281,6 @@ Page({ |
|
|
|
reserveSection:e.detail.section,
|
|
|
|
seletroomlist:e.detail.action=='click' ? [] : this.data.seletroomlist,
|
|
|
|
})
|
|
|
|
this.reserve.selectroom=e.detail.action=='click' ? [] : this.reserve.selectroom;
|
|
|
|
clearTimeout(t);
|
|
|
|
},0)
|
|
|
|
|
|
...
|
...
|
@@ -294,15 +293,14 @@ Page({ |
|
|
|
this.setData({
|
|
|
|
seletroomlist:e.detail.selectroom
|
|
|
|
})
|
|
|
|
this.reserve.selectroom=e.detail.selectroom;
|
|
|
|
},
|
|
|
|
complete(){
|
|
|
|
if(!this.reserve.selectroom || (this.reserve.selectroom && this.reserve.selectroom.length==0)){
|
|
|
|
if(!this.data.seletroomlist || (this.data.seletroomlist && this.data.seletroomlist.length==0)){
|
|
|
|
return util.toast('请选择包间类型','none');
|
|
|
|
}
|
|
|
|
this.reserve.sid=this.options.id
|
|
|
|
this.reserve.ddate=util.timetouUnix(this.reserve.date+' '+this.reserve.time+':00');
|
|
|
|
this.reserve.room_demand=JSON.stringify(this.reserve.selectroom)
|
|
|
|
this.reserve.room_demand=JSON.stringify(this.data.seletroomlist)
|
|
|
|
wx.navigateTo({
|
|
|
|
url:util.http_build_query(this.reserve,'./submit')
|
|
|
|
})
|
|
...
|
...
|
@@ -337,7 +335,6 @@ Page({ |
|
|
|
})
|
|
|
|
}
|
|
|
|
this.reserve.date=e.detail.date;
|
|
|
|
this.reserve.selectroom=e.detail.action=='click' ? [] : this.reserve.selectroom;
|
|
|
|
this.setData({
|
|
|
|
reserveDate:e.detail.date,
|
|
|
|
seletroomlist:e.detail.action=='click' ? [] : this.data.seletroomlist,
|
...
|
...
|
|