更新配置: 支付和邮件登录模块配置优化, 删除临时文档
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
<!-- 登录标题 -->
|
||||
<div class="login-title">
|
||||
<h2>邮箱验证码登录</h2>
|
||||
<p class="login-subtitle">请输入邮箱地址,获取验证码后登录</p>
|
||||
</div>
|
||||
|
||||
<!-- 登录表单 -->
|
||||
@@ -227,6 +228,12 @@ const handleLogin = async () => {
|
||||
return
|
||||
}
|
||||
|
||||
// 验证码格式检查(6位数字)
|
||||
if (!/^\d{6}$/.test(loginForm.code)) {
|
||||
ElMessage.warning('验证码格式不正确,请输入6位数字')
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
console.log('开始登录...')
|
||||
|
||||
@@ -389,7 +396,14 @@ const handleLogin = async () => {
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.login-subtitle {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user