|
...
|
...
|
@@ -277,7 +277,10 @@ Page({ |
|
|
|
rid: this.data.bookInfo.id,
|
|
|
|
status: util.attr(e, 'status'),
|
|
|
|
cause: await this.getCause(),
|
|
|
|
}).then(() => {
|
|
|
|
}).then((res) => {
|
|
|
|
if(res.ret!=200){
|
|
|
|
util.toast(res.msg);
|
|
|
|
}
|
|
|
|
this.getDetail(this.data.bookInfo.id, true);
|
|
|
|
});
|
|
|
|
}else{
|
|
...
|
...
|
@@ -285,7 +288,10 @@ Page({ |
|
|
|
rid: this.data.bookInfo.id,
|
|
|
|
status: util.attr(e, 'status'),
|
|
|
|
cause: await this.getCause(),
|
|
|
|
}).then(() => {
|
|
|
|
}).then((res) => {
|
|
|
|
if(res.ret!=200){
|
|
|
|
util.toast(res.msg);
|
|
|
|
}
|
|
|
|
this.getDetail(this.data.bookInfo.id, true);
|
|
|
|
});
|
|
|
|
}
|
|
...
|
...
|
@@ -317,7 +323,10 @@ Page({ |
|
|
|
cause:await this.getCause('包间已订满'),
|
|
|
|
ac:param.auto||"0",
|
|
|
|
}
|
|
|
|
App.Customer.SetReserveStatus(params).then(()=>{
|
|
|
|
App.Customer.SetReserveStatus(params).then((res)=>{
|
|
|
|
if(res.ret!=200){
|
|
|
|
util.toast(res.msg);
|
|
|
|
}
|
|
|
|
this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
PubSub.emit('fulshReseveList')
|
|
|
|
})
|
|
...
|
...
|
@@ -349,7 +358,10 @@ Page({ |
|
|
|
this.setData({
|
|
|
|
loaded:false,
|
|
|
|
})
|
|
|
|
App.Customer.SetReserveStatus(params).then(()=>{
|
|
|
|
App.Customer.SetReserveStatus(params).then((res)=>{
|
|
|
|
if(res.ret!=200){
|
|
|
|
util.toast(res.msg);
|
|
|
|
}
|
|
|
|
this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
PubSub.emit('fulshReseveList')
|
|
|
|
})
|
...
|
...
|
|