diff --git a/src/components/SmsCodeInput.vue b/src/components/SmsCodeInput.vue index cc75a2c..9442098 100644 --- a/src/components/SmsCodeInput.vue +++ b/src/components/SmsCodeInput.vue @@ -32,42 +32,44 @@ function onGetCode(): void { .sms-code { .flex(row, stretch); gap: @spacing-sm; + width: 100%; &__input { flex: 1; min-width: 0; - height: 40px; - padding: 0 12px; + height: 44px; + padding: 0 @spacing-base; border: 1px solid @border-color; - border-radius: @radius-sm; - background: @white; - font-size: 13px; - color: #1f2937; + border-radius: @radius-base; + background: @bg-color-light; + font-size: @font-size-base; + color: @heading-color; outline: none; - transition: border-color 0.2s; + transition: border-color 0.2s, background 0.2s; + box-sizing: border-box; &:focus { border-color: @primary-strong; + background: @white; } &::placeholder { - color: #1f2937; + color: @text-color-secondary; } } - // 设计稿 #38:「获取验证码」是带蓝色描边的独立按钮(62×16 文字居中), - // 不是纯文字链接。按键宽 88px,与输入框间距 @spacing-sm。 &__btn { flex-shrink: 0; - width: 88px; - height: 40px; - padding: 0; + min-width: 120px; + height: 44px; + padding: 0 @spacing-base; border: 1px solid @primary-strong; - border-radius: @radius-sm; + border-radius: @radius-base; background: @white; color: @primary-strong; - font-size: 12px; - font-weight: 400; + font-size: @font-size-sm; + font-weight: 500; + white-space: nowrap; text-align: center; cursor: pointer; transition: all 0.2s; @@ -78,8 +80,9 @@ function onGetCode(): void { } &:disabled { - border-color: @text-color-disabled; - color: @text-color-disabled; + border-color: @border-color; + background: @bg-color-light; + color: @text-color-secondary; cursor: not-allowed; } } diff --git a/src/styles/common.less b/src/styles/common.less index 6c3fb88..6cdbbe8 100644 --- a/src/styles/common.less +++ b/src/styles/common.less @@ -85,9 +85,8 @@ .flex(column, center, center); flex: 1; min-width: 0; - // 设计稿三页的标题顶分别为 306/287/268,卡片在 1080 视口中居中后 - // 会比标注高 15px,用上内边距把内容整体下移补平。 - padding: 80px 0 40px; + // 底部多留白,整体视觉中心上移,「欢迎登录」不再偏下 + padding: 24px 0 120px; } // 设计稿表单区统一 693px 宽。标题/副标题按自身文字宽度相对表单居中, diff --git a/src/views/login/cpns/LoginForm.vue b/src/views/login/cpns/LoginForm.vue index 8cf454a..34ac4e4 100644 --- a/src/views/login/cpns/LoginForm.vue +++ b/src/views/login/cpns/LoginForm.vue @@ -67,70 +67,58 @@ const localAgree = computed({