|
...
|
...
|
@@ -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=>{
|
...
|
...
|
|