|
...
|
...
|
@@ -140,7 +140,7 @@ Page({ |
|
|
|
path:path,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
reserve(){
|
|
|
|
reserveEvent(){
|
|
|
|
if(this.data.hasOnlineReserve){
|
|
|
|
return this.setData({
|
|
|
|
activeTab:'reserve'
|
|
...
|
...
|
@@ -292,16 +292,21 @@ Page({ |
|
|
|
}
|
|
|
|
},
|
|
|
|
selectdate(e){//日期改变
|
|
|
|
console.log(e);
|
|
|
|
if(e.detail.action==401){//无可用桌位
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
console.log('selectdate',e);
|
|
|
|
if(e.detail.overdate==1){//今天之前
|
|
|
|
return this.setData({
|
|
|
|
hasFullHouse:true,
|
|
|
|
fullHouseMsg:'请选择今天之后的日期',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
this.reserve.date=e.detail.date;
|
|
|
|
this.setData({
|
|
|
|
reserveDate:e.detail.date,
|
|
|
|
hasFullHouse:false,
|
|
|
|
fullHouseMsg:'今日所有包间已订满',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|