Commit 03fd0dbb5ef2838b3cfc64b4189f65303d13c5bf

Authored by wangfan
1 parent d604607b

manager-invitation

... ... @@ -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) {
... ...
... ... @@ -33,10 +33,10 @@ Page({
}).then(res=>{
if(res.ret==200){
if(res.data.identity==1){
// wx.reLaunch({
// url:'/pages/customer/index'
// })
// return;
wx.reLaunch({
url:'/pages/customer/index'
})
return;
}
if(res.data.identity==2){
wx.redirectTo({
... ...
... ... @@ -140,6 +140,13 @@ Page({
fromid:openid,
hasSellerShare:1,
},'/pages/manager-invitation/display')
if(!this.data.options.rid){
return {
title: '一键订,客户经理专用的拓客工具',
path: '/pages/manager-invitation/index',
imageUrl:'http://qn.colorcun.com/custom/lite-yd-cook/image/share-anpai2.jpg',
}
}
return {
title: '点击查看详情,发邀请函',
path: path,
... ...