Commit 6f1d75f82c0a56a9bd9e48ab7998140307f82cad

Authored by vking
1 parent ce3ee73d

fix desk bug

... ... @@ -40,9 +40,13 @@ Page({
PubSub.on('arrangeDesk',(desk)=>{
this.arrangeDesk(desk)
})
PubSub.on('reflush',(desk)=>{
this.getDetail(opt.id);
})
},
onUnload(){
PubSub.off('arrangeDesk')
PubSub.off('reflush')
},
onShow: function () {
this.notice = this.selectComponent('#notice');
... ... @@ -211,13 +215,19 @@ Page({
})
},
gotoModify() {
let url='./b_addnew'
let url
if(this.detailData.type==1){
url='./online_update'
wx.navigateTo({
url: url+'?id=' + this.data.bookInfo.id
})
}else{
url='./b_addnew'
wx.redirectTo({
url: url+'?id=' + this.data.bookInfo.id
})
}
wx.redirectTo({
url: url+'?id=' + this.data.bookInfo.id
})
},
cancelReserve() {
this.selectComponent('#cancel').show();
... ...
... ... @@ -171,8 +171,12 @@ Page({
});
},
gotoDetail(){
wx.redirectTo({
url: '/pack-book/pages/book/b_detail?id=' + this.detail.id
});
if(this.detail.type==1){//在线预订
wx.navigateBack();
}else{
wx.redirectTo({
url: '/pack-book/pages/book/b_detail?id=' + this.detail.id
});
}
}
})
\ No newline at end of file
... ...
... ... @@ -429,7 +429,8 @@ Page({
})
this.checkedTables={};
App.Reserve.Detail({rid: _id, openid: ''}, 'clear')
wx.navigateTo({
PubSub.emit('reflush')
wx.redirectTo({
url: util.http_build_query({id:_id,tplid:1},'b_invitation'),
});
} else {
... ...