feat 登录页面

This commit is contained in:
Ironsp
2026-10-01 14:02:50 +08:00
parent eda0bc2200
commit b99b2a0a88
13 changed files with 481 additions and 289 deletions

View File

@@ -21,12 +21,8 @@ function onGetCode(): void {
class="sms-code__input"
type="text"
placeholder="请输入验证码"
>
<button
class="sms-code__btn"
:disabled="isCounting"
@click="onGetCode"
>
/>
<button class="sms-code__btn" :disabled="isCounting" @click="onGetCode">
{{ isCounting ? `${seconds}秒后重新获取` : '获取验证码' }}
</button>
</div>
@@ -38,15 +34,16 @@ function onGetCode(): void {
gap: @spacing-sm;
// 设计稿(02/54/55):验证码输入框 590×39(整行 680,右侧留 90 给「获取验证码」)
// ⚠️ 盒高/字号随登录页 @auth-font-scale 放大,与各表单页输入框保持同高
&__input {
flex: 1;
min-width: 0;
height: 39px;
padding: 0 12px;
height: 39px * @auth-font-scale;
padding: 0 12px * @auth-font-scale;
border: 1px solid #dde1e7;
border-radius: @radius-sm;
background: @white;
font-size: 13px;
font-size: 13px * @auth-font-scale;
color: #1f2937;
outline: none;
transition: border-color 0.2s;
@@ -63,13 +60,13 @@ function onGetCode(): void {
// 设计稿:「获取验证码」为蓝字纯文本(无边框),12/400 #024FFF
&__btn {
flex-shrink: 0;
min-width: 74px;
height: 39px;
min-width: 74px * @auth-font-scale;
height: 39px * @auth-font-scale;
padding: 0;
border: none;
background: transparent;
color: @primary-strong;
font-size: 12px;
font-size: 12px * @auth-font-scale;
font-weight: 400;
text-align: right;
cursor: pointer;