diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue index db8cb66..3dbbc48 100644 --- a/pages_order/auth/wxLogin.vue +++ b/pages_order/auth/wxLogin.vue @@ -67,13 +67,10 @@ if(query.path){ this.config = query } + // #ifdef H5 + this.checkWechatAuthCallback(); + // #endif }, - // #ifdef H5 - mounted() { - // H5环境下检查URL参数,处理微信授权回调 - this.checkWechatAuthCallback(); - }, - // #endif methods: { // 微信登录统一入口 handleLogin() { @@ -194,6 +191,10 @@ }); return; } else { + // #ifdef H5 + window.location = 'https://h5.budingxiaoshuo.com' + return + // #endif uni.showToast({ title: '登录成功', icon: 'success'