|
...
|
...
|
@@ -148,10 +148,29 @@ Page({ |
|
|
|
url:'./b_addnew?id='+this.data.bookInfo.id
|
|
|
|
})
|
|
|
|
},
|
|
|
|
cancelReserve(){
|
|
|
|
util.toast('不能取消预订','none');return;
|
|
|
|
this.setData({
|
|
|
|
actionSheetHidden:false
|
|
|
|
async cancelReserve(){
|
|
|
|
let enter_params=util.cache('enter_params');
|
|
|
|
let sc=(await App.Reserve.SellerInfo(enter_params)).data
|
|
|
|
let cause='';
|
|
|
|
if(sc.seller_user){
|
|
|
|
cause=(sc.seller_user.nick_name||sc.seller_user.nickname)+'手动取消'
|
|
|
|
}
|
|
|
|
wx.showModal({
|
|
|
|
title: '确认取消',
|
|
|
|
content: '你确认要取消预订吗',
|
|
|
|
success:(res)=>{
|
|
|
|
if (res.confirm) {
|
|
|
|
App.Reserve.SetReserveStatus({
|
|
|
|
rid:this.data.bookInfo.id,
|
|
|
|
status:4,
|
|
|
|
cause:cause,
|
|
|
|
}).then(()=>{
|
|
|
|
this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
})
|
|
|
|
} else if (res.cancel) {
|
|
|
|
console.log('用户点击取消')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
actionSheetChange(e){
|
...
|
...
|
|