|
@@ -442,6 +442,8 @@
|
|
|
isUpdateMobile: false,//绑定手机号
|
|
isUpdateMobile: false,//绑定手机号
|
|
|
|
|
|
|
|
firstLoad:true,//第一次加载页面
|
|
firstLoad:true,//第一次加载页面
|
|
|
|
|
+
|
|
|
|
|
+ showBindNote:true,//弹出绑定提示
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -626,6 +628,7 @@
|
|
|
}, 2000)
|
|
}, 2000)
|
|
|
// 判断销售员是否离职
|
|
// 判断销售员是否离职
|
|
|
this.getEmploymentState()
|
|
this.getEmploymentState()
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
getEmploymentState(){
|
|
getEmploymentState(){
|
|
@@ -1200,6 +1203,7 @@
|
|
|
|
|
|
|
|
closeUpdate(){
|
|
closeUpdate(){
|
|
|
this.isShowUpdate = false
|
|
this.isShowUpdate = false
|
|
|
|
|
+ this.showBindNoteFn()
|
|
|
},
|
|
},
|
|
|
updateInfo(e){
|
|
updateInfo(e){
|
|
|
this.isUpdateInfo = e;
|
|
this.isUpdateInfo = e;
|
|
@@ -1222,13 +1226,26 @@
|
|
|
this.isUpdateMobile = true
|
|
this.isUpdateMobile = true
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.showBindNoteFn()
|
|
|
return true;
|
|
return true;
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ showBindNoteFn(){
|
|
|
|
|
+ if(this.showBindNote){
|
|
|
|
|
+ if(req.getStorage('userInfo')&&req.getStorage('userInfo').userType!=1&&!req.getStorage('userInfo').manageSaleNo){
|
|
|
|
|
+ this.showBindNote = false
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title:'提示',
|
|
|
|
|
+ content:'检测到您还未绑定专属顾问,为了给您提供更好的服务,您可通过右侧绑定按钮快速绑定当前专属顾问',
|
|
|
|
|
+ showCancel:false,
|
|
|
|
|
+ confirmText:'知道了'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
bindSale(){
|
|
bindSale(){
|
|
|
let userInfo = req.getStorage('userInfo');
|
|
let userInfo = req.getStorage('userInfo');
|
|
|
console.log('updateInfo userInfo.avatar',userInfo.avatar)
|
|
console.log('updateInfo userInfo.avatar',userInfo.avatar)
|
|
|
- if (!userInfo.avatar || userInfo.nickName == '微信用户') {
|
|
|
|
|
|
|
+ if (!userInfo.avatar || !userInfo.nickName || userInfo.avatar.indexOf('thirdwx.qlogo') > -1 || userInfo.nickName.indexOf('用户') > -1) {
|
|
|
this.isShowUpdate = true
|
|
this.isShowUpdate = true
|
|
|
this.isUpdateInfo = true
|
|
this.isUpdateInfo = true
|
|
|
this.isUpdateMobile = false
|
|
this.isUpdateMobile = false
|