wzh 4 kuukautta sitten
vanhempi
commit
fdfa217338

+ 0 - 3
template/uni-app/pages/index/index.vue

@@ -337,9 +337,6 @@ export default {
 		this.diyData();
 		// #ifdef H5
 		this.setOpenShare();
-    if(!this.isLogin){
-      this.$wechat.oAuth('snsapi_userinfo', location.href)
-    }
 		// #endif
 		// #ifdef MP
 		this.getTempIds();

+ 3 - 2
template/uni-app/pages/users/wechat_login/index.vue

@@ -114,7 +114,7 @@
 				statusBarHeight: statusBarHeight,
 				isHome: false,
 				isPhoneBox: false,
-				protocol: false,
+				protocol: true,
 				isShow: false,
 				isLogin: false,
 				logoUrl: '',
@@ -160,6 +160,7 @@
 				let spread = this.$Cache.get("spread") || '';
 				let agent_id = this.$Cache.get("agent_id") || '';
 				let backUrl = state ? decodeURIComponent(state) : ''
+        backUrl = "/pages/index/index";
 				this.wechatAuthLogin({
 					code,
 					spread,
@@ -289,7 +290,7 @@
 					url: `/pages/users/binding_phone/index?authKey=${this.authKey}&pageType=0`
 				})
 			},
-			
+
 			closeEdit() {
 				this.isShow = false
 				this.$util.Tips({