Showing
1 changed file
with
5 additions
and
3 deletions
| @@ -82,9 +82,11 @@ Page({ | @@ -82,9 +82,11 @@ Page({ | ||
| 82 | App.Reserve.Detail(param).then(res => { | 82 | App.Reserve.Detail(param).then(res => { |
| 83 | console.log(this.enter_params.seller_openid) | 83 | console.log(this.enter_params.seller_openid) |
| 84 | if(this.enter_params){//商户 | 84 | if(this.enter_params){//商户 |
| 85 | - if(res.data.sid==this.enter_params.seller_id && opt.hasSellerShare==1){//不是客户端分享,且是同一个店的 | 85 | + //if(res.data.sid==this.enter_params.seller_id && opt.hasSellerShare==1){//不是客户端分享,且是同一个店的 |
| 86 | + if(res.data.note_openid==this.enter_params.seller_openid && opt.hasSellerShare==1){//不是客户端分享,且是记录人 | ||
| 86 | util.cache('enter_params',this.enter_params) | 87 | util.cache('enter_params',this.enter_params) |
| 87 | - url = '/pages/book/b_detail'; | 88 | + //url = '/pages/book/b_detail'; |
| 89 | + url = '/pages/book/b_invitation'; | ||
| 88 | } | 90 | } |
| 89 | } | 91 | } |
| 90 | if(url!='/pages/book/b_detail'){ | 92 | if(url!='/pages/book/b_detail'){ |
| @@ -112,7 +114,7 @@ Page({ | @@ -112,7 +114,7 @@ Page({ | ||
| 112 | } | 114 | } |
| 113 | } | 115 | } |
| 114 | } | 116 | } |
| 115 | - url+='?id='+res.data.id | 117 | + url+='?id='+res.data.id+'&tplid='+opt.tplid |
| 116 | console.log('wx.redirectTo',url,res); | 118 | console.log('wx.redirectTo',url,res); |
| 117 | this.redirectTo({url: url}); | 119 | this.redirectTo({url: url}); |
| 118 | }).catch(res=>{ | 120 | }).catch(res=>{ |
-
Please register or login to post a comment