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,9 +1,10 @@
@import '../../../styles/variables.scss';
@import '../../../styles/mixins.scss';
.create-page {
min-height: 100vh;
background: $bg;
padding-bottom: 140px;
padding-bottom: 160px;
}
/* 步骤内容 */
@@ -11,6 +12,10 @@
padding: 32px 24px;
}
.step-title {
@include section-title;
}
/* 科室宫格 */
.dept-grid {
display: grid;
@@ -21,33 +26,62 @@
.dept-card {
background: $card;
border-radius: $r;
padding: 24px 12px;
padding: 28px 12px;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
gap: 12px;
border: 2px solid transparent;
transition: border-color 0.2s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
box-shadow: $shadow-sm;
&.dept-selected {
border-color: $pri;
background: $pri-l;
}
}
.dept-card.dept-selected {
border-color: $pri;
background: $pri-surface;
.dept-initial-circle {
width: 64px;
height: 64px;
border-radius: $r;
background: $pri-l;
@include flex-center;
.dept-selected & {
background: $pri;
}
}
.dept-icon {
font-size: 40px;
.dept-initial-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: bold;
color: $pri;
.dept-selected & {
color: white;
}
}
.dept-label {
font-size: 26px;
font-size: 24px;
color: $tx;
font-weight: 500;
}
/* 时段卡片 */
/* 时段 */
.slot-section {
margin-top: 24px;
margin-top: 32px;
}
.slot-section-title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: bold;
color: $tx;
margin-bottom: 16px;
display: block;
}
.slot-grid {
@@ -59,16 +93,26 @@
.slot-card {
background: $card;
border-radius: $r-sm;
padding: 16px 20px;
padding: 20px 24px;
border: 2px solid transparent;
transition: all 0.2s;
box-shadow: $shadow-sm;
&.slot-few { border-color: $wrn; }
&.slot-full { opacity: 0.5; background: $bd-l; }
&.slot-selected { border-color: $pri; background: $pri-surface; }
&.slot-few {
border-color: $wrn;
}
&.slot-full {
opacity: 0.5;
background: $bd-l;
}
&.slot-selected {
border-color: $pri;
background: $pri-l;
}
}
.slot-time {
@include serif-number;
font-size: 28px;
font-weight: bold;
color: $tx;
@@ -79,43 +123,70 @@
font-size: 22px;
color: $tx3;
display: block;
margin-top: 4px;
margin-top: 6px;
}
.slot-few .slot-count { color: $wrn; }
.slot-full .slot-count { color: $dan; }
.step-title {
font-size: 32px;
font-weight: bold;
color: $tx;
margin-bottom: 28px;
display: block;
}
/* 选择器卡片 */
.picker-card {
/* 确认卡片 (step 3 医生信息) */
.confirm-card {
background: $card;
border-radius: $r;
padding: 24px 28px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
margin-bottom: 24px;
box-shadow: $shadow-sm;
}
.picker-value {
.confirm-row {
display: flex;
align-items: center;
gap: 16px;
}
.confirm-icon-wrap {
width: 56px;
height: 56px;
border-radius: $r-sm;
background: $pri-l;
@include flex-center;
flex-shrink: 0;
}
.confirm-icon-serif {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 24px;
font-weight: bold;
color: $pri;
}
.confirm-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
}
.confirm-label {
font-size: 22px;
color: $tx3;
}
.confirm-value {
font-size: 28px;
font-weight: bold;
color: $tx;
}
.picker-value.placeholder {
color: $tx3;
.confirm-dept-tag {
@include tag($pri-l, $pri);
flex-shrink: 0;
}
.picker-arrow {
font-size: 24px;
color: $tx3;
.confirm-dept-text {
font-size: 20px;
font-weight: 500;
color: $pri;
}
/* 医生列表 */
@@ -132,28 +203,27 @@
display: flex;
align-items: center;
gap: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
box-shadow: $shadow-sm;
border: 2px solid transparent;
transition: border-color 0.2s;
}
.doctor-card.doctor-selected {
border-color: $pri;
background: $pri-surface;
&.doctor-selected {
border-color: $pri;
background: $pri-l;
}
}
.doctor-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
border-radius: $r;
background: $pri-l;
display: flex;
align-items: center;
justify-content: center;
@include flex-center;
flex-shrink: 0;
}
.doctor-avatar-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 32px;
color: $pri;
font-weight: bold;
@@ -183,14 +253,23 @@
}
.doctor-check {
font-size: 32px;
color: $pri;
width: 44px;
height: 44px;
border-radius: $r-pill;
background: $pri;
@include flex-center;
flex-shrink: 0;
}
.doctor-check-text {
font-size: 24px;
color: white;
font-weight: bold;
}
/* 表单 */
.form-group {
margin-bottom: 28px;
margin-top: 32px;
}
.form-label {
@@ -200,17 +279,6 @@
display: block;
}
.form-static {
background: $card;
border-radius: $r-sm;
padding: 24px 28px;
}
.form-static-text {
font-size: 28px;
color: $tx;
}
.form-input {
background: $card;
border-radius: $r-sm;
@@ -219,10 +287,11 @@
color: $tx;
width: 100%;
box-sizing: border-box;
box-shadow: $shadow-sm;
}
/* 空状态 */
.empty-state {
.empty-hint {
padding: 80px 0;
text-align: center;
}
@@ -244,7 +313,7 @@
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
background: $card;
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
box-shadow: $shadow-md;
}
.btn {
@@ -261,7 +330,7 @@
.btn-next,
.btn-submit {
background: linear-gradient(135deg, $pri 0%, $pri-d 100%);
background: $pri;
}
.btn-disabled {