|
...
|
...
|
@@ -49,9 +49,19 @@ Page({ |
|
|
|
}else{
|
|
|
|
this.islove=await util.cache('islove')
|
|
|
|
}
|
|
|
|
|
|
|
|
//获得商户数据
|
|
|
|
this.enter_params=await this.SellerForOpenid(opt.openid);
|
|
|
|
let usi=await App.Invitation.UserIdentity({openid:opt.openid});
|
|
|
|
if(usi.data.identity==1){//商户
|
|
|
|
//获得商户数据
|
|
|
|
//this.enter_params=await this.SellerForOpenid(opt.openid);
|
|
|
|
this.enter_params=usi.data.data;
|
|
|
|
}else if(usi.data.identity==2){//客户经理
|
|
|
|
if(this.islove!='customer'){
|
|
|
|
wx.redirectTo({
|
|
|
|
url:'/pages/manager-invitation/review'
|
|
|
|
})
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//console.log('this.enter_params',this.enter_params)
|
|
|
|
let url = '/pages/customer/list';
|
|
|
|
if (opt.id > 0 || opt.sms_code) {
|
...
|
...
|
|