fix: 登录占位英文、缩短提示并消除横向滚动条

This commit is contained in:
2026-11-02 15:53:30 +08:00
parent 0b510d8794
commit 43b42e6d1a
5 changed files with 21 additions and 15 deletions
+5 -6
View File
@@ -35,7 +35,6 @@ const countdown = ref(0);
const busy = ref(false);
const noticeVisible = ref(false);
const noticePinned = ref(false);
const accountHint = computed(() => (mode.value === "nqi" ? "大数据平台账号" : "管理员账号"));
let countdownTimer = 0;
let noticeTimer = 0;
@@ -57,7 +56,7 @@ function beginNoticeCountdown() {
noticeTimer = window.setTimeout(() => {
noticeTimer = 0;
if (!noticePinned.value) noticeVisible.value = false;
}, 8000);
}, 5000);
}
function pinNotice() {
@@ -316,7 +315,7 @@ async function finishNqi() {
</form>
</section>
<div v-else class="gate lv-tower">
<ThemeButton />
<ThemeButton placement="left" />
<div class="lv-mast" aria-hidden="true"><span /></div>
<section class="lv-side">
<div class="lv-brand">
@@ -325,13 +324,13 @@ async function finishNqi() {
<p v-if="noticeVisible" class="lv-notice">请使用大数据平台账号登录</p>
<form class="lv-fields" @submit.prevent="submitLogin">
<label for="login-account">账号</label>
<input id="login-account" v-model="username" :placeholder="accountHint" autocomplete="username" @keyup.enter="submitLogin" />
<input id="login-account" v-model="username" placeholder="account" autocomplete="username" @keyup.enter="submitLogin" />
<label for="login-password">密码</label>
<input id="login-password" v-model="password" type="password" placeholder="密码" autocomplete="current-password" @keyup.enter="submitLogin" />
<input id="login-password" v-model="password" type="password" placeholder="password" autocomplete="current-password" @keyup.enter="submitLogin" />
<template v-if="mode === 'nqi'">
<label for="login-captcha">验证码</label>
<div class="lv-captcha">
<input id="login-captcha" v-model="captcha" placeholder="验证码" autocomplete="off" @keyup.enter="submitLogin" />
<input id="login-captcha" v-model="captcha" placeholder="captcha" autocomplete="off" @keyup.enter="submitLogin" />
<button type="button" class="lv-captcha-box" title="点击刷新" @click="refreshCaptcha">
<n-spin v-if="captchaLoading" size="small" />
<img v-else :src="captchaSrc" alt="验证码" @error="markCaptchaBroken" />