ming před 4 roky
rodič
revize
998c6d4823
1 změnil soubory, kde provedl 20 přidání a 5 odebrání
  1. 20 5
      pages/login/login.vue

+ 20 - 5
pages/login/login.vue

@@ -107,21 +107,32 @@
 						return "ok";
 					}
 					var cs = {};
-					var curl = window.location.href;
+					var curl = window.location.href;
+					alert('curl')
+					alert(curl)
 					cs.curl = curl;
 					const res1 = await this.$myRequest({
 						url: 'Login/getLoginAuthorize',
 						data: cs
-					})
-					var turl = res1.data.turl;
+					})
+					alert('turl')
+					alert(turl)
+					var turl = res1.data.turl;
+					
 					window.location.href =
 						'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx4eab2e3b5531d58b&redirect_uri=' + turl +
-						'&response_type=code&scope=snsapi_base&state=abc123#wechat_redirect';
+						'&response_type=code&scope=snsapi_base&state=abc123#wechat_redirect';
+						
+						
+						
 				} else {
 					const res = await this.$myRequest({
 						url: 'Login/getLoginAuthorize',
 						data: params
-					})
+					})
+					alert('初始化')
+					alert(res.data.flag)
+					alert(res.data.msg)
 
 
 				}
@@ -240,6 +251,10 @@
 				const res = await this.$myRequest({
 					url: 'Login/getLoginAuthorize',
 				})
+				alert('初始化')
+				alert(res.data.flag)
+				alert(res.data.msg)
+				
 				if(res.data.flag == true){
 					uni.switchTab({
 						url: '/pages/index/index'