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 {

View File

@@ -1,9 +1,10 @@
@import '../../../styles/variables.scss';
@import '../../../styles/mixins.scss';
.detail-page {
min-height: 100vh;
background: $bg;
padding-bottom: 140px;
padding-bottom: 160px;
}
/* 顶部导航 */
@@ -13,7 +14,8 @@
justify-content: space-between;
padding: 32px;
padding-top: 48px;
background: linear-gradient(135deg, $pri 0%, $pri-d 100%);
background: $card;
box-shadow: $shadow-sm;
}
.back-btn {
@@ -22,13 +24,15 @@
.back-text {
font-size: 28px;
color: white;
color: $pri;
font-weight: 500;
}
.header-title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 34px;
font-weight: bold;
color: white;
color: $tx;
}
.header-placeholder {
@@ -40,46 +44,48 @@
background: $card;
border-radius: $r-lg;
padding: 40px 32px;
margin: -20px 24px 24px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
margin: 20px 24px 24px;
box-shadow: $shadow-md;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.status-badge {
.status-tag {
@include tag($bd-l, $tx3);
margin-bottom: 8px;
padding: 8px 32px;
border-radius: 24px;
margin-bottom: 12px;
.status-badge-text {
font-size: 28px;
font-weight: bold;
}
border-radius: $r-pill;
&.tag-pending {
background: $wrn-l;
.status-badge-text { color: $wrn; }
.status-tag-text { color: $wrn; }
}
&.tag-confirmed {
background: $acc-l;
.status-badge-text { color: $acc; }
.status-tag-text { color: $acc; }
}
&.tag-cancelled {
background: $bd-l;
.status-badge-text { color: $tx3; }
.status-tag-text { color: $tx3; }
}
&.tag-completed {
background: $pri-l;
.status-badge-text { color: $pri; }
.status-tag-text { color: $pri; }
}
}
.status-tag-text {
font-size: 28px;
font-weight: bold;
}
.status-doctor {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 36px;
font-weight: bold;
color: $tx;
@@ -96,22 +102,19 @@
background: $card;
border-radius: $r;
padding: 28px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
box-shadow: $shadow-sm;
}
.section-title {
font-size: 30px;
font-weight: bold;
color: $tx;
@include section-title;
margin-bottom: 24px;
display: block;
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 0;
padding: 18px 0;
border-bottom: 1px solid $bd-l;
}
@@ -119,6 +122,26 @@
border-bottom: none;
}
.info-label-wrap {
display: flex;
align-items: center;
gap: 10px;
}
.info-icon-serif {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 20px;
color: $pri;
background: $pri-l;
width: 36px;
height: 36px;
border-radius: $r-sm;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}
.info-label {
font-size: 26px;
color: $tx2;
@@ -130,7 +153,16 @@
font-weight: 500;
}
.info-date {
@include serif-number;
}
.info-time {
@include serif-number;
}
.info-id {
@include serif-number;
font-size: 22px;
color: $tx3;
word-break: break-all;
@@ -147,7 +179,8 @@
}
.tips-title {
font-size: 26px;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: bold;
color: $wrn;
margin-bottom: 12px;
@@ -170,7 +203,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;
}
.cancel-btn {
@@ -190,27 +223,3 @@
font-weight: bold;
color: $dan;
}
/* 空状态 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
padding: 120px 0;
}
.empty-icon {
font-size: 80px;
margin-bottom: 20px;
}
.empty-text {
font-size: 30px;
color: $tx2;
margin-bottom: 12px;
}
.empty-hint {
font-size: 24px;
color: $tx3;
}

View File

@@ -1,26 +1,36 @@
@import '../../styles/variables.scss';
@import '../../styles/mixins.scss';
.appointment-page {
min-height: 100vh;
background: $bg;
padding-bottom: 140px;
padding-bottom: 160px;
}
/* 页头 */
.page-header {
background: linear-gradient(135deg, $pri 0%, $pri-d 100%);
padding: 32px;
padding-top: 48px;
background: $card;
padding: 48px 32px 36px;
box-shadow: $shadow-sm;
}
.page-title {
@include section-title;
margin-bottom: 4px;
font-size: 36px;
font-weight: bold;
color: white;
}
.page-subtitle {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 22px;
color: $tx3;
letter-spacing: 1px;
}
/* 预约列表 */
.appointment-list {
padding: 0 24px;
margin-top: -16px;
margin-top: 16px;
}
.appointment-card {
@@ -28,7 +38,7 @@
border-radius: $r;
padding: 28px;
margin-bottom: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
box-shadow: $shadow-sm;
}
.card-top {
@@ -38,84 +48,117 @@
margin-bottom: 20px;
}
.doctor-info {
.doctor-section {
display: flex;
align-items: center;
gap: 12px;
gap: 16px;
flex: 1;
min-width: 0;
}
.dept-initial {
width: 72px;
height: 72px;
border-radius: $r;
background: $pri-l;
@include flex-center;
flex-shrink: 0;
}
.dept-initial-text {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 32px;
font-weight: bold;
color: $pri;
}
.doctor-info {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.doctor-name {
font-size: 32px;
font-size: 30px;
font-weight: bold;
color: $tx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.department {
font-size: 24px;
.dept-tag {
@include tag($pri-l, $pri);
}
.dept-tag-text {
font-size: 20px;
font-weight: 500;
color: $pri;
background: $pri-l;
padding: 4px 16px;
border-radius: 20px;
}
.status-tag {
padding: 6px 20px;
border-radius: 20px;
.status-tag-text {
font-size: 22px;
font-weight: 500;
}
@include tag($bd-l, $tx3);
flex-shrink: 0;
&.tag-pending {
background: $wrn-l;
.status-tag-text {
color: $wrn;
}
.status-tag-text { color: $wrn; }
}
&.tag-confirmed {
background: $acc-l;
.status-tag-text {
color: $acc;
}
.status-tag-text { color: $acc; }
}
&.tag-cancelled {
background: $bd-l;
.status-tag-text {
color: $tx3;
}
.status-tag-text { color: $tx3; }
}
&.tag-completed {
background: $pri-l;
.status-tag-text {
color: $pri;
}
.status-tag-text { color: $pri; }
}
}
.status-tag-text {
font-size: 20px;
font-weight: 500;
}
.card-divider {
height: 1px;
background: $bd-l;
margin-bottom: 20px;
}
.card-bottom {
display: flex;
flex-direction: column;
gap: 12px;
padding-top: 20px;
border-top: 1px solid $bd-l;
gap: 14px;
}
.info-row {
display: flex;
align-items: center;
gap: 8px;
gap: 12px;
}
.info-icon {
font-size: 26px;
.info-icon-wrap {
width: 40px;
height: 40px;
border-radius: $r-sm;
background: $bd-l;
@include flex-center;
flex-shrink: 0;
}
.info-icon-serif {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 22px;
color: $tx2;
}
.info-text {
@@ -123,49 +166,22 @@
color: $tx2;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 120px 0 80px;
}
.empty-icon {
font-size: 80px;
margin-bottom: 20px;
}
.empty-text {
font-size: 30px;
color: $tx2;
margin-bottom: 12px;
}
.empty-hint {
font-size: 24px;
color: $tx3;
}
.loading-tip {
text-align: center;
padding: 24px 0;
}
.loading-text {
font-size: 24px;
color: $tx3;
.info-time {
@include serif-number;
color: $tx;
font-weight: 500;
}
/* 底部悬浮按钮 */
.fab-btn {
position: fixed;
bottom: 60px;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(135deg, $pri 0%, $pri-d 100%);
padding: 24px 64px;
border-radius: 48px;
box-shadow: 0 8px 24px rgba($pri, 0.4);
background: $pri;
padding: 24px 72px;
border-radius: $r-pill;
box-shadow: 0 8px 24px rgba($pri, 0.3);
z-index: 100;
}
@@ -173,4 +189,5 @@
font-size: 30px;
color: white;
font-weight: bold;
letter-spacing: 2px;
}