wangguoyu 1 месяц назад
Родитель
Сommit
d8125bba80
2 измененных файлов с 20 добавлено и 18 удалено
  1. 2 1
      pages/Login/AliyunCaptcha.vue
  2. 18 17
      pages/Login/clientIndex.vue

+ 2 - 1
pages/Login/AliyunCaptcha.vue

@@ -27,7 +27,8 @@
 		},
 		methods: {
 			onMessage(e) {
-				console.log('e.detail.data[0]', e.detail.data[0]);
+				console.log('e.detail.data[0]', e.detail);
+				console.log('e.detail.data111', e.detail.data);
 				const captchaVerifyParam = e.detail.data[0];
 				// 通过事件通道,触发在业务页面中定义的 'getCaptchaVerifyParam' 事件,并把验证参数发送至业务页面
 				const eventChannel = this.getOpenerEventChannel();

+ 18 - 17
pages/Login/clientIndex.vue

@@ -144,24 +144,25 @@
 			})
 			console.log('result', result);
 			console.log('result', result);
-			if (result.data.bind) {
-				// 保存用户信息
-				if (result.data.loginVo.type == 4) {
-					cacheManager.set('auth', result.data.loginVo)
-					store.setIsCanBack(false)
-					gotoPage();
-				} else if (result.data.loginVo.type == 6) {
-					cacheManager.set('auth', result.data.loginVo)
-					store.setIsCanBack(false)
-					gotoPage2();
-				} else {
-					toast('登录失败,您的身份有误,请联系管理员。')
-				}
-			} else {
-				//  bind 为 false 未绑定
-
 				phoneBind()
-			}
+			// if (result.data.bind) {
+			// 	// 保存用户信息
+			// 	if (result.data.loginVo.type == 4) {
+			// 		cacheManager.set('auth', result.data.loginVo)
+			// 		store.setIsCanBack(false)
+			// 		gotoPage();
+			// 	} else if (result.data.loginVo.type == 6) {
+			// 		cacheManager.set('auth', result.data.loginVo)
+			// 		store.setIsCanBack(false)
+			// 		gotoPage2();
+			// 	} else {
+			// 		toast('登录失败,您的身份有误,请联系管理员。')
+			// 	}
+			// } else {
+			// 	//  bind 为 false 未绑定
+
+			// 	phoneBind()
+			// }
 		} catch (error) {
 			toast('微信登录失败')
 		} finally {