|
...
|
...
|
@@ -81,15 +81,28 @@ Component({ |
|
|
|
if(sc.seller_user){
|
|
|
|
cause.uname=(sc.seller_user.nick_name||sc.seller_user.nickname)
|
|
|
|
}
|
|
|
|
App.Reserve.SetReserveStatus({
|
|
|
|
rid:this.data.bookInfo.id,
|
|
|
|
status:4,
|
|
|
|
cause:JSON.stringify(cause),
|
|
|
|
}).then(()=>{
|
|
|
|
this.hide()
|
|
|
|
this.triggerEvent('reserveCancel',{hasCancel:true});
|
|
|
|
//this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
})
|
|
|
|
if(1==this.data.bookInfo.type){
|
|
|
|
App.Customer.SetReserveStatus({
|
|
|
|
rid:this.data.bookInfo.id,
|
|
|
|
status:4,
|
|
|
|
cause:JSON.stringify(cause),
|
|
|
|
}).then(()=>{
|
|
|
|
this.hide()
|
|
|
|
this.triggerEvent('reserveCancel',{hasCancel:true});
|
|
|
|
//this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
App.Reserve.SetReserveStatus({
|
|
|
|
rid:this.data.bookInfo.id,
|
|
|
|
status:4,
|
|
|
|
cause:JSON.stringify(cause),
|
|
|
|
}).then(()=>{
|
|
|
|
this.hide()
|
|
|
|
this.triggerEvent('reserveCancel',{hasCancel:true});
|
|
|
|
//this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}) |
...
|
...
|
|