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;