登录页文字修改

This commit is contained in:
2025-04-16 14:13:32 +08:00
parent 60ed4f5ff7
commit 6adad52d1a
8 changed files with 2489 additions and 14 deletions

View File

@@ -21,7 +21,7 @@
</div>
</div>
</div>
<div class="center-line" style="margin-top: 15vh;">
<div class="center-line" style="margin-top: 40px;">
<!-- logo -->
<div class="logo">
<div class="center-justify" style="height: 80px; width: 300px;">
@@ -83,17 +83,22 @@ const onSubmit = () => {
text: 'Loading',
background: 'rgba(0, 0, 0, 0.7)',
});
console.log('submit!');
setUserPass(formData.value);
login({
userId: formData.value.userId,
password: formData.value.password,
}).then((res) => {
loading.close();
console.log(res)
if (res) {
setToken(res.currcode);
setUser(res);
router.push('/nav');
if (res.activeYn == 'Y') {
setToken(res.currcode);
setUser(res);
router.push('/nav');
} else {
alert('账号未启用');
}
} else {
alert('账号或密码错误');
}