Commit c3f5d7d89e8ee38f27a5254a603d636a06b7eba5

Authored by wangfan
1 parent d34c842a

seller-Invitation

Showing 1 changed file with 5 additions and 3 deletions
... ... @@ -82,9 +82,11 @@ Page({
App.Reserve.Detail(param).then(res => {
console.log(this.enter_params.seller_openid)
if(this.enter_params){//商户
if(res.data.sid==this.enter_params.seller_id && opt.hasSellerShare==1){//不是客户端分享,且是同一个店的
//if(res.data.sid==this.enter_params.seller_id && opt.hasSellerShare==1){//不是客户端分享,且是同一个店的
if(res.data.note_openid==this.enter_params.seller_openid && opt.hasSellerShare==1){//不是客户端分享,且是记录人
util.cache('enter_params',this.enter_params)
url = '/pages/book/b_detail';
//url = '/pages/book/b_detail';
url = '/pages/book/b_invitation';
}
}
if(url!='/pages/book/b_detail'){
... ... @@ -112,7 +114,7 @@ Page({
}
}
}
url+='?id='+res.data.id
url+='?id='+res.data.id+'&tplid='+opt.tplid
console.log('wx.redirectTo',url,res);
this.redirectTo({url: url});
}).catch(res=>{
... ...