feat 完善注释
This commit is contained in:
@@ -26,7 +26,6 @@ async function onGetCode(): Promise<void> {
|
||||
await userStore.sendSmsCode(phone.value)
|
||||
}
|
||||
catch {
|
||||
// 失败提示已由 store 统一弹出,此处仅避免未处理的 rejection
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +125,6 @@ onBeforeUnmount(() => {
|
||||
placeholder="请设置6-20位密码"
|
||||
autocomplete="new-password"
|
||||
>
|
||||
<!-- 设计稿:密码框下 15 高密码强度条 + 15 高提示行 -->
|
||||
<PasswordStrength :password="password" />
|
||||
</div>
|
||||
|
||||
@@ -161,11 +159,9 @@ onBeforeUnmount(() => {
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
// 找回密码页:表单块由 .auth-page__main 在右区内居中(设计稿 02)
|
||||
.reset {
|
||||
&__form {
|
||||
.flex(column, flex-start, stretch);
|
||||
// 副标题底 335 → 首个标签 361 = 26(副标题行盒 17 + 外边距 12 → 实际需补 38)
|
||||
margin: 38px 0 0 17px;
|
||||
width: 680px;
|
||||
}
|
||||
@@ -176,13 +172,12 @@ onBeforeUnmount(() => {
|
||||
width: 680px;
|
||||
}
|
||||
|
||||
// 设计稿:手机号框底 425 → 验证码标签 443 = 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;
|
||||
@@ -210,7 +205,6 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿:协议行 @(1040,741)
|
||||
&__agree {
|
||||
.flex(row, flex-start, center);
|
||||
gap: 8px;
|
||||
@@ -235,7 +229,6 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿:确认修改按钮 680×46 @y775、#024FFF 实底、文字 15/500(盒高随字体 ×@auth-font-scale)
|
||||
&__submit {
|
||||
width: 100%;
|
||||
height: 46px * @auth-font-scale;
|
||||
@@ -254,7 +247,6 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
}
|
||||
|
||||
// 设计稿:按钮底 821 → 切换行 838 = 17
|
||||
&__switch {
|
||||
align-self: center;
|
||||
margin: 17px 0 0;
|
||||
@@ -266,7 +258,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