From f260fdfbc3013ffc62025f5d50af8f1713521aa7 Mon Sep 17 00:00:00 2001 From: dftre <3066417822@qq.com> Date: Wed, 10 Sep 2025 17:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/pages/login.vue b/src/pages/login.vue index ef93b31..89b0f1a 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -11,6 +11,9 @@ const userStore = useUserStore() const codeUrl = ref(""); const captchaEnabled = ref(true); // 是否开启验证码 const useWxLogin = ref(false); // 是否使用微信登录 +// #if MP-WEIXIN +useWxLogin.value = true +// #endif const globalConfig = ref(config); const loginForm = ref({ username: "admin", @@ -19,7 +22,7 @@ const loginForm = ref({ uuid: '' }); -if (useWxLogin.value) { +function handleLoginByWx() { getWxCode().then(res => { console.log(res); wxLogin('miniapp', res).then(res => { @@ -119,6 +122,8 @@ getCode(); + @@ -180,11 +185,19 @@ page { } - .login-btn { + .action-btn { margin-top: 40px; - height: 45px; + + .login-btn { + height: 45px; + + &+.login-btn { + margin-top: 20px; + } + } } + .xieyi { color: #333; margin-top: 20px;