feat 完善注释
This commit is contained in:
@@ -26,7 +26,6 @@ async function onGetCode(): Promise<void> {
|
||||
await userStore.sendSmsCode(phone.value)
|
||||
}
|
||||
catch {
|
||||
// 失败提示已由 store 统一弹出,此处仅避免未处理的 rejection
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,7 +123,6 @@ onBeforeUnmount(() => {
|
||||
placeholder="请设置6-20位密码"
|
||||
autocomplete="new-password"
|
||||
>
|
||||
<!-- 设计稿:密码框下 15 高密码强度条 + 15 高提示行 -->
|
||||
<PasswordStrength :password="password" />
|
||||
</div>
|
||||
|
||||
@@ -159,11 +157,9 @@ onBeforeUnmount(() => {
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 注册账号页:表单块由 .auth-page__main 在右区内居中(设计稿 02)
|
||||
.register {
|
||||
&__form {
|
||||
.flex(column, flex-start, stretch);
|
||||
// 副标题底 342 → 首个标签 368 = 26(副标题行盒 17 + 外边距 12 → 实际需补 38)
|
||||
margin: 38px 0 0 17px;
|
||||
width: 680px;
|
||||
}
|
||||
@@ -174,13 +170,12 @@ onBeforeUnmount(() => {
|
||||
width: 680px;
|
||||
}
|
||||
|
||||
// 设计稿:手机号框底 430 → 验证码标签 450 = 20;验证码框底 514 → 设置密码标签 532 = 18
|
||||
&__field + &__field {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
&__label {
|
||||
font-size: 13px * @auth-font-scale; // 设计稿 13/500 #1F2937,×@auth-font-scale
|
||||
font-size: 13px * @auth-font-scale;
|
||||
font-weight: 500;
|
||||
line-height: 17px * @auth-font-scale;
|
||||
color: #1f2937;
|
||||
@@ -208,7 +203,6 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿:协议行 @(999,748)
|
||||
&__agree {
|
||||
.flex(row, flex-start, center);
|
||||
gap: 8px;
|
||||
@@ -233,7 +227,6 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿:注册按钮 680×46 @y782、#024FFF 实底、文字 15/500(盒高随字体 ×@auth-font-scale)
|
||||
&__submit {
|
||||
width: 100%;
|
||||
height: 46px * @auth-font-scale;
|
||||
@@ -252,7 +245,6 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿:按钮底 828 → 切换行 844 = 16
|
||||
&__switch {
|
||||
align-self: center;
|
||||
margin: 16px 0 0;
|
||||
@@ -264,7 +256,7 @@ onBeforeUnmount(() => {
|
||||
|
||||
&__subtitle {
|
||||
margin: 12px 0 0;
|
||||
font-size: 13px * @auth-font-scale; // 设计稿 13/400 #6B7280,×@auth-font-scale
|
||||
font-size: 13px * @auth-font-scale;
|
||||
font-weight: 400;
|
||||
line-height: 17px * @auth-font-scale;
|
||||
color: #6b7280;
|
||||
|
||||
Reference in New Issue
Block a user