Phase 0: 建立 design token 体系 - tokens.scss 新增 --tk-pri/--tk-pri-l/--tk-pri-d/--tk-shadow-btn/--tk-shadow-tab - .doctor-mode 覆盖为靛蓝色系,.elder-mode 非线性放大字号 - variables.scss 新增医生端色彩 + 阴影变量 Phase 1: 组件库 + 页面全局替换 - 75 个页面 SCSS $pri → var(--tk-pri) 全量替换 - 11 个新 UI 组件(PrimaryButton/TabFilter/FormInput/ProgressRing 等) - 8 个现有组件 SCSS 更新 - 18 个医生端页面 useElderClass → useDoctorClass - PageHeader 匹配原型 NavBar 规格 Phase 2: 登录页重写 - Logo: 方形+ → 圆形渐变 H - 登录方式: 纯微信 → 账号密码 + 微信一键登录 - 新增 credentialLogin API + store action - 字号/间距严格匹配原型 mp-01-login.html
65 lines
1.0 KiB
SCSS
65 lines
1.0 KiB
SCSS
@import '../../styles/variables.scss';
|
|
@import '../../styles/mixins.scss';
|
|
|
|
.guard-page {
|
|
min-height: 100vh;
|
|
background: $bg;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 24px;
|
|
}
|
|
|
|
.guard-card {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.guard-icon-wrap {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 40px;
|
|
background: $surface-alt;
|
|
@include flex-center;
|
|
margin: 0 auto 20px;
|
|
}
|
|
|
|
.guard-icon {
|
|
font-size: var(--tk-font-num);
|
|
color: $tx3;
|
|
}
|
|
|
|
.guard-title {
|
|
font-size: var(--tk-font-body-sm);
|
|
font-weight: 600;
|
|
color: $tx;
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.guard-desc {
|
|
font-size: var(--tk-font-cap);
|
|
color: var(--tk-text-secondary);
|
|
display: block;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.guard-btn {
|
|
display: inline-block;
|
|
height: 48px;
|
|
padding: 0 32px;
|
|
background: var(--tk-pri);
|
|
border-radius: $r-pill;
|
|
@include flex-center;
|
|
|
|
&:active {
|
|
opacity: 0.85;
|
|
}
|
|
}
|
|
|
|
.guard-btn-text {
|
|
font-size: var(--tk-font-body-sm);
|
|
font-weight: 600;
|
|
color: $white;
|
|
}
|