xhj 2 лет назад
Родитель
Сommit
360b677466
1 измененных файлов с 19 добавлено и 2 удалено
  1. 19 2
      pages/index/index.vue

+ 19 - 2
pages/index/index.vue

@@ -442,6 +442,8 @@
 				isUpdateMobile: false,//绑定手机号
 				
 				firstLoad:true,//第一次加载页面
+				
+				showBindNote:true,//弹出绑定提示
 			};
 		},
 
@@ -626,6 +628,7 @@
 					}, 2000)
 					// 判断销售员是否离职
 					this.getEmploymentState()
+					
 				})
 			},
 			getEmploymentState(){
@@ -1200,6 +1203,7 @@
 			
 			closeUpdate(){
 				this.isShowUpdate = false
+				this.showBindNoteFn()
 			},
 			updateInfo(e){
 				this.isUpdateInfo = e;
@@ -1222,13 +1226,26 @@
 					this.isUpdateMobile = true
 					return false;
 				}
+				this.showBindNoteFn()
 				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(){
 				let userInfo = req.getStorage('userInfo');
 				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.isUpdateInfo = true
 					this.isUpdateMobile = false