Commit e98c9d4aa1cf8cb882c1cce4cc18e1c9a809f201

Authored by wangfan
1 parent 8a9c1461

确认到店 增加 cause

Showing 1 changed file with 12 additions and 1 deletions
... ... @@ -168,10 +168,21 @@ Page({
actionSheetHidden:true
})
},
startDinner(e){
async startDinner(e){
let cause={};
let enter_params=util.cache('enter_params');
let sc=(await App.Reserve.SellerInfo(enter_params)).data
cause={desc:""}
if(enter_params){
cause.uid=enter_params.manager_id;
}
if(sc.seller_user){
cause.uname=(sc.seller_user.nick_name||sc.seller_user.nickname)
}
App.Reserve.SetReserveStatus({
rid:this.data.bookInfo.id,
status:util.attr(e,'status'),
cause:JSON.stringify(cause),
}).then(()=>{
this.getDetail(this.data.bookInfo.id,true);
});
... ...