feat(miniprogram): 温润东方风全面 UI 重设计

73 文件变更,覆盖全部 40 个页面 SCSS + TabBar 图标 + 组件样式。
统一赤陶主色 #C4623A + 暖米背景 + 衬线标题字体 + 12px 圆角体系。
This commit is contained in:
iven
2026-04-28 00:19:52 +08:00
parent fbb28e655d
commit 50eae8b809
97 changed files with 7633 additions and 2373 deletions

View File

@@ -1,10 +1,35 @@
@import '../../../styles/variables.scss';
@mixin section-title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: bold;
color: $tx;
margin-bottom: 20px;
display: block;
}
@mixin serif-number {
font-family: 'Georgia', 'Times New Roman', serif;
font-variant-numeric: tabular-nums;
}
@mixin flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.medication-page {
min-height: 100vh;
background: $bg;
padding: 24px;
padding-bottom: 140px;
padding: 32px 24px;
padding-bottom: 160px;
}
.page-title {
@include section-title;
padding-left: 4px;
}
.reminder-list {
@@ -16,19 +41,42 @@
.reminder-card {
display: flex;
align-items: center;
justify-content: space-between;
background: $card;
border-radius: $r;
padding: 28px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
padding: 24px;
box-shadow: $shadow-sm;
&.disabled {
opacity: 0.55;
}
}
.reminder-left {
.reminder-avatar {
@include flex-center;
width: 72px;
height: 72px;
border-radius: $r;
background: $acc-l;
flex-shrink: 0;
margin-right: 20px;
}
.reminder-avatar-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 32px;
font-weight: bold;
color: $acc;
}
.reminder-info {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
.reminder-name {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: bold;
color: $tx;
@@ -36,6 +84,7 @@
}
.reminder-dosage {
@include serif-number;
font-size: 24px;
color: $tx2;
}
@@ -44,12 +93,14 @@
display: flex;
align-items: center;
gap: 16px;
flex-shrink: 0;
margin-left: 12px;
}
.toggle {
width: 80px;
height: 44px;
border-radius: 22px;
border-radius: $r-pill;
padding: 4px;
position: relative;
transition: background 0.3s;
@@ -67,7 +118,7 @@
width: 36px;
height: 36px;
border-radius: 50%;
background: white;
background: #fff;
position: absolute;
top: 4px;
transition: left 0.3s;
@@ -87,31 +138,28 @@
padding: 4px 12px;
}
.empty-state {
display: flex;
justify-content: center;
align-items: center;
padding: 120px 0;
}
.empty-text {
font-size: 28px;
color: $tx3;
}
.form-card {
background: $card;
border-radius: $r;
padding: 28px;
margin-top: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
margin-top: 24px;
box-shadow: $shadow-sm;
}
.form-card-title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: bold;
color: $tx;
margin-bottom: 20px;
display: block;
}
.form-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 0;
padding: 24px 0;
border-bottom: 1px solid $bd-l;
&:last-of-type {
@@ -123,7 +171,7 @@
font-size: 28px;
color: $tx;
flex-shrink: 0;
width: 140px;
width: 160px;
}
.form-input {
@@ -136,20 +184,33 @@
outline: none;
}
.form-placeholder {
color: $tx3;
}
.time-picker-wrap {
flex: 1;
text-align: right;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
}
.time-value {
@include serif-number;
font-size: 28px;
color: $tx;
}
.time-modify {
font-size: 24px;
color: $pri;
}
.form-actions {
display: flex;
gap: 16px;
margin-top: 20px;
margin-top: 24px;
}
.form-cancel {
@@ -175,7 +236,7 @@
.form-confirm-text {
font-size: 28px;
color: white;
color: #fff;
font-weight: bold;
}
@@ -187,10 +248,13 @@
background: $pri;
padding: 28px;
text-align: center;
box-shadow: 0 -2px 12px rgba(196, 98, 58, 0.15);
}
.add-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 32px;
color: white;
color: #fff;
font-weight: bold;
letter-spacing: 2px;
}