Commit bdc67407d491ca6f14a6440ab9eef08558d71aa8

Authored by liuxuqinfhp1220
1 parent 4f3cbc93

no message

... ... @@ -28,9 +28,6 @@ Component({
this.getroomtype();
this.date=newdate;
this.section=newsection;
}else{
this.date=newdate;
this.section=newsection;
}
}else{
this.getroomtype();
... ...
... ... @@ -21,13 +21,16 @@ Component({
console.log('room',newdate,newsection)
if(newdate && newsection){
if(this.date && this.section){
if(newdate!=newdate && this.section!=newsection){
if(newdate!=this.date || this.section!=newsection){
this.setData({
seletroomlist:[]
})
this.date=newdate;
this.section=newsection;
}
}else{
this.date=newdate;
this.section=newsection;
}
}
... ...
... ... @@ -280,6 +280,7 @@ Page({
this.setData({
reserveSection:e.detail.section,
})
this.reserve.selectroom=[];
clearTimeout(t);
},0)
... ... @@ -289,14 +290,15 @@ Page({
//包间类型改变
selectroom(e){
console.log(e)
this.reserve.room_demand=JSON.stringify(e.detail.selectroom);
this.reserve.selectroom=e.detail.selectroom;
},
complete(){
if(!this.reserve.room_demand || (this.reserve.room_demand && this.reserve.room_demand.length==0)){
if(!this.reserve.selectroom || (this.reserve.selectroom && this.reserve.selectroom.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)
wx.navigateTo({
url:util.http_build_query(this.reserve,'./submit')
})
... ... @@ -331,6 +333,7 @@ Page({
})
}
this.reserve.date=e.detail.date;
this.reserve.selectroom=[];
this.setData({
reserveDate:e.detail.date,
hasFullHouse:false,
... ...