张文飞 3 years ago
parent
commit
3b9698653b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      App.vue

+ 5 - 1
App.vue

@@ -11,7 +11,7 @@
 			 *    bug: 如果之前去掉code,则会进入(一)进入了死循环;
 			 *    想法:先去让他带着code去regist,成功则说明是新的code,失败则去掉code进入(一)
 			 */
-			if(!code&&false){
+			if(!code){
 				let url =  href.split('#')[0];
 				url = encodeURIComponent(url);
 				url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+config.appid+"&redirect_uri="+url+"&response_type=code&scope=snsapi_userinfo&state=123&connect_redirect=1#wechat_redirect"
@@ -70,6 +70,10 @@
 						window.location.href = url;
 					}
 				}
+				
+				uni.showModal({
+					content:"cotent:"+location.origin+location.pathname
+				})
 			},
 		},
 		globalData: {