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,8 +1,11 @@
@import '../../../../styles/variables.scss';
@import '../../../../styles/mixins.scss';
.chat-page {
display: flex;
flex-direction: column;
height: 100vh;
background: #f0f4f8;
background: $bg;
}
.chat-header {
@@ -10,18 +13,19 @@
justify-content: space-between;
align-items: center;
padding: 24px 32px;
background: #fff;
border-bottom: 1px solid #e2e8f0;
background: $card;
border-bottom: 1px solid $bd;
&__title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: 600;
color: #0f172a;
color: $tx;
}
&__close {
font-size: 26px;
color: #ef4444;
color: $dan;
padding: 8px 16px;
}
}
@@ -44,35 +48,36 @@
.msg-bubble {
max-width: 70%;
padding: 20px 24px;
border-radius: 16px;
border-radius: $r-lg;
position: relative;
&--other {
background: #fff;
background: $card;
border-top-left-radius: 4px;
}
&--self {
background: #0891b2;
background: $pri;
border-top-right-radius: 4px;
}
}
.msg-text {
font-size: 28px;
color: #0f172a;
color: $tx;
display: block;
line-height: 1.6;
word-break: break-all;
.msg-bubble--self & {
color: #fff;
color: $card;
}
}
.msg-time {
@include serif-number;
font-size: 20px;
color: #94a3b8;
color: $tx3;
display: block;
margin-top: 8px;
text-align: right;
@@ -88,7 +93,7 @@
&__text {
font-size: 26px;
color: #94a3b8;
color: $tx3;
}
}
@@ -96,23 +101,23 @@
display: flex;
align-items: center;
padding: 16px 24px;
background: #fff;
border-top: 1px solid #e2e8f0;
background: $card;
border-top: 1px solid $bd;
padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.chat-input {
flex: 1;
background: #f1f5f9;
border-radius: 12px;
background: $bd-l;
border-radius: $r;
padding: 16px 20px;
font-size: 28px;
margin-right: 16px;
}
.chat-send-btn {
background: #0891b2;
border-radius: 12px;
background: $pri;
border-radius: $r;
padding: 16px 28px;
flex-shrink: 0;
@@ -122,7 +127,7 @@
&__text {
font-size: 28px;
color: #fff;
color: $card;
font-weight: 500;
}
}
@@ -130,11 +135,11 @@
.chat-closed-bar {
padding: 24px;
text-align: center;
background: #fff;
border-top: 1px solid #e2e8f0;
background: $card;
border-top: 1px solid $bd;
&__text {
font-size: 26px;
color: #94a3b8;
color: $tx3;
}
}

View File

@@ -1,13 +1,16 @@
@import '../../../styles/variables.scss';
@import '../../../styles/mixins.scss';
.consultation-page {
min-height: 100vh;
background: #f0f4f8;
background: $bg;
}
.tabs {
display: flex;
background: #fff;
background: $card;
padding: 0 16px;
border-bottom: 1px solid #e2e8f0;
border-bottom: 1px solid $bd;
}
.tab {
@@ -15,11 +18,11 @@
text-align: center;
padding: 24px 0;
font-size: 28px;
color: #64748b;
color: $tx2;
position: relative;
&--active {
color: #0891b2;
color: $pri;
font-weight: 600;
&::after {
@@ -29,7 +32,7 @@
left: 30%;
right: 30%;
height: 4px;
background: #0891b2;
background: $pri;
border-radius: 2px;
}
}
@@ -43,14 +46,14 @@
}
.session-card {
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
box-shadow: $shadow-sm;
position: relative;
&:active {
background: #f8fafc;
background: $bd-l;
}
&__top {
@@ -63,7 +66,7 @@
&__subject {
font-size: 28px;
font-weight: 600;
color: #0f172a;
color: $tx;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
@@ -72,8 +75,7 @@
}
&__status {
padding: 4px 14px;
border-radius: 12px;
@include tag(transparent, $tx2);
flex-shrink: 0;
}
@@ -90,21 +92,17 @@
}
&__type {
font-size: 24px;
color: #0891b2;
background: #e0f2fe;
padding: 2px 12px;
border-radius: 8px;
@include tag($pri-l, $pri);
}
&__time {
font-size: 24px;
color: #94a3b8;
color: $tx3;
}
&__preview {
font-size: 26px;
color: #64748b;
color: $tx2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -117,17 +115,16 @@
right: 20px;
min-width: 36px;
height: 36px;
background: #ef4444;
border-radius: 18px;
display: flex;
align-items: center;
justify-content: center;
background: $dan;
border-radius: $r-pill;
@include flex-center;
padding: 0 8px;
}
&__badge-text {
@include serif-number;
font-size: 22px;
color: #fff;
color: $card;
font-weight: 600;
}
}
@@ -141,16 +138,16 @@
&__btn {
font-size: 26px;
color: #0891b2;
color: $pri;
padding: 12px 24px;
&.disabled {
color: #cbd5e1;
color: $tx3;
}
}
&__info {
font-size: 24px;
color: #64748b;
color: $tx2;
}
}

View File

@@ -1,24 +1,23 @@
@import '../../../../styles/variables.scss';
@import '../../../../styles/mixins.scss';
.followup-detail {
min-height: 100vh;
background: #f0f4f8;
background: $bg;
padding: 24px;
padding-bottom: 120px;
}
.section {
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px;
margin-bottom: 20px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
box-shadow: $shadow-sm;
}
.section-title {
font-size: 28px;
font-weight: 600;
color: #0f172a;
display: block;
margin-bottom: 20px;
@include section-title;
}
.task-header {
@@ -28,22 +27,23 @@
margin-bottom: 20px;
&__title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: 700;
color: #0f172a;
color: $tx;
}
&__status {
font-size: 24px;
padding: 6px 16px;
border-radius: 12px;
border-radius: $r;
font-weight: 500;
&--pending { background: #fef3c7; color: #b45309; }
&--in_progress { background: #e0f2fe; color: #0369a1; }
&--completed { background: #dcfce7; color: #16a34a; }
&--overdue { background: #fee2e2; color: #dc2626; }
&--cancelled { background: #f1f5f9; color: #94a3b8; }
&--pending { background: $wrn-l; color: $wrn; }
&--in_progress { background: $pri-l; color: $pri; }
&--completed { background: $acc-l; color: $acc; }
&--overdue { background: $dan-l; color: $dan; }
&--cancelled { background: $bd-l; color: $tx3; }
}
}
@@ -61,38 +61,38 @@
.info-label {
font-size: 22px;
color: #94a3b8;
color: $tx3;
}
.info-value {
font-size: 26px;
color: #0f172a;
color: $tx;
font-weight: 500;
}
.task-template {
margin-top: 16px;
padding: 16px;
background: #f8fafc;
border-radius: 12px;
background: $bd-l;
border-radius: $r;
&__label {
font-size: 22px;
color: #64748b;
color: $tx2;
display: block;
margin-bottom: 8px;
}
&__text {
font-size: 26px;
color: #334155;
color: $tx;
line-height: 1.6;
}
}
.record-item {
padding: 20px 0;
border-bottom: 1px solid #f1f5f9;
border-bottom: 1px solid $bd-l;
&:last-child {
border-bottom: none;
@@ -100,14 +100,14 @@
&__date {
font-size: 22px;
color: #94a3b8;
color: $tx3;
display: block;
margin-bottom: 8px;
}
&__text {
font-size: 26px;
color: #334155;
color: $tx;
display: block;
margin-bottom: 4px;
line-height: 1.5;
@@ -117,10 +117,10 @@
.start-btn {
text-align: center;
padding: 16px;
background: #0891b2;
border-radius: 12px;
background: $pri;
border-radius: $r;
margin-bottom: 24px;
color: #fff;
color: $card;
font-size: 28px;
font-weight: 500;
}
@@ -131,7 +131,7 @@
.form-label {
font-size: 26px;
color: #475569;
color: $tx2;
font-weight: 500;
display: block;
margin-bottom: 12px;
@@ -140,11 +140,11 @@
.form-textarea {
width: 100%;
min-height: 160px;
background: #f8fafc;
border-radius: 12px;
background: $bd-l;
border-radius: $r;
padding: 16px 20px;
font-size: 26px;
color: #0f172a;
color: $tx;
box-sizing: border-box;
line-height: 1.6;
}
@@ -152,16 +152,16 @@
.form-date {
width: 100%;
padding: 16px 20px;
background: #f8fafc;
border-radius: 12px;
background: $bd-l;
border-radius: $r;
font-size: 26px;
color: #0f172a;
color: $tx;
box-sizing: border-box;
}
.submit-btn {
background: #0891b2;
border-radius: 12px;
background: $pri;
border-radius: $r;
padding: 20px;
text-align: center;
margin-top: 16px;
@@ -172,7 +172,7 @@
&__text {
font-size: 28px;
color: #fff;
color: $card;
font-weight: 600;
}
}
@@ -180,6 +180,6 @@
.error-text {
text-align: center;
padding: 80px 32px;
color: #94a3b8;
color: $tx3;
font-size: 28px;
}

View File

@@ -1,13 +1,16 @@
@import '../../../styles/variables.scss';
@import '../../../styles/mixins.scss';
.followup-page {
min-height: 100vh;
background: #f0f4f8;
background: $bg;
}
.tabs {
display: flex;
background: #fff;
background: $card;
padding: 0 12px;
border-bottom: 1px solid #e2e8f0;
border-bottom: 1px solid $bd;
overflow-x: auto;
white-space: nowrap;
}
@@ -16,12 +19,12 @@
display: inline-block;
padding: 24px 16px;
font-size: 26px;
color: #64748b;
color: $tx2;
position: relative;
flex-shrink: 0;
&--active {
color: #0891b2;
color: $pri;
font-weight: 600;
&::after {
@@ -31,7 +34,7 @@
left: 20%;
right: 20%;
height: 4px;
background: #0891b2;
background: $pri;
border-radius: 2px;
}
}
@@ -42,7 +45,7 @@
text {
font-size: 24px;
color: #94a3b8;
color: $tx3;
}
}
@@ -54,13 +57,13 @@
}
.task-card {
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
box-shadow: $shadow-sm;
&:active {
background: #f8fafc;
background: $bd-l;
}
&__header {
@@ -71,21 +74,21 @@
}
&__type {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: 600;
color: #0f172a;
color: $tx;
}
&__status {
padding: 4px 14px;
border-radius: 12px;
@include tag(transparent, $tx2);
font-size: 22px;
font-weight: 500;
}
&__patient {
font-size: 26px;
color: #475569;
color: $tx2;
display: block;
margin-bottom: 8px;
}
@@ -97,6 +100,6 @@
&__date {
font-size: 24px;
color: #94a3b8;
color: $tx3;
}
}

View File

@@ -1,6 +1,9 @@
@import '../../styles/variables.scss';
@import '../../styles/mixins.scss';
.doctor-home {
min-height: 100vh;
background: #f0f4f8;
background: $bg;
padding: 32px;
padding-bottom: 120px;
@@ -9,23 +12,21 @@
}
&__title {
@include section-title;
font-size: 40px;
font-weight: 700;
color: #0f172a;
display: block;
margin-bottom: 12px;
}
&__greeting {
font-size: 28px;
color: #64748b;
color: $tx2;
display: block;
margin-bottom: 8px;
}
&__date {
font-size: 24px;
color: #94a3b8;
color: $tx3;
}
&__section {
@@ -33,11 +34,7 @@
}
&__section-title {
font-size: 30px;
font-weight: 600;
color: #334155;
display: block;
margin-bottom: 24px;
@include section-title;
}
&__grid {
@@ -47,11 +44,11 @@
}
&__card {
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px 24px;
text-align: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
box-shadow: $shadow-md;
transition: transform 0.15s;
&:active {
@@ -59,23 +56,32 @@
}
}
&__card-icon {
font-size: 36px;
display: block;
&__card-initial {
display: inline-flex;
@include flex-center;
width: 56px;
height: 56px;
border-radius: $r;
background: $pri-l;
color: $pri;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: 700;
margin-bottom: 8px;
}
&__card-num {
@include serif-number;
font-size: 48px;
font-weight: 700;
color: #0f172a;
color: $tx;
display: block;
margin-bottom: 8px;
}
&__card-label {
font-size: 24px;
color: #64748b;
color: $tx2;
}
&__quick-actions {
@@ -90,7 +96,7 @@
}
&__logout {
color: #ef4444;
color: $dan;
font-size: 28px;
padding: 16px 48px;
display: inline-block;
@@ -99,24 +105,33 @@
.quick-action {
flex: 1;
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px 20px;
text-align: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
box-shadow: $shadow-md;
&:active {
opacity: 0.8;
}
&__icon {
font-size: 40px;
display: block;
&__initial {
display: inline-flex;
@include flex-center;
width: 56px;
height: 56px;
border-radius: $r;
background: $acc-l;
color: $acc;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: 700;
margin-bottom: 8px;
}
&__label {
font-size: 24px;
color: #475569;
color: $tx2;
display: block;
}
}

View File

@@ -9,22 +9,26 @@ import './index.scss';
interface CardConfig {
key: keyof doctorApi.DoctorDashboard;
label: string;
icon: string;
initial: string;
route: string;
color: string;
}
const CARDS: CardConfig[] = [
{ key: 'total_patients', label: '我的患者', icon: '👥', route: '/pages/doctor/patients/index', color: '#0891b2' },
{ key: 'unread_messages', label: '未读消息', icon: '💬', route: '/pages/doctor/consultation/index', color: '#f59e0b' },
{ key: 'pending_follow_ups', label: '待处理随访', icon: '📋', route: '/pages/doctor/followup/index', color: '#8b5cf6' },
{ key: 'today_consultations', label: '今日咨询', icon: '🩺', route: '/pages/doctor/consultation/index', color: '#10b981' },
{ key: 'total_patients', label: '我的患者', initial: '', route: '/pages/doctor/patients/index' },
{ key: 'unread_messages', label: '未读消息', initial: '', route: '/pages/doctor/consultation/index' },
{ key: 'pending_follow_ups', label: '待处理随访', initial: '', route: '/pages/doctor/followup/index' },
{ key: 'today_consultations', label: '今日咨询', initial: '', route: '/pages/doctor/consultation/index' },
];
const HEALTH_CARDS: CardConfig[] = [
{ key: 'pending_dialysis_review', label: '待审透析', icon: '💧', route: '/pages/doctor/patients/index', color: '#0ea5e9' },
{ key: 'pending_lab_review', label: '待审化验', icon: '🔬', route: '/pages/doctor/report/index', color: '#f43f5e' },
{ key: 'today_appointments', label: '今日预约', icon: '📅', route: '/pages/doctor/patients/index', color: '#14b8a6' },
{ key: 'pending_dialysis_review', label: '待审透析', initial: '', route: '/pages/doctor/patients/index' },
{ key: 'pending_lab_review', label: '待审化验', initial: '', route: '/pages/doctor/report/index' },
{ key: 'today_appointments', label: '今日预约', initial: '', route: '/pages/doctor/patients/index' },
];
const QUICK_ACTIONS = [
{ label: '化验审核', initial: '审', route: '/pages/doctor/report/index' },
{ label: '患者查询', initial: '查', route: '/pages/doctor/patients/index' },
];
export default function DoctorHome() {
@@ -81,10 +85,9 @@ export default function DoctorHome() {
<View
key={card.key}
className='doctor-home__card'
style={`border-left: 6px solid ${card.color}`}
onClick={() => handleCardClick(card)}
>
<Text className='doctor-home__card-icon'>{card.icon}</Text>
<Text className='doctor-home__card-initial'>{card.initial}</Text>
<Text className='doctor-home__card-num'>{getValue(card.key)}</Text>
<Text className='doctor-home__card-label'>{card.label}</Text>
</View>
@@ -99,10 +102,9 @@ export default function DoctorHome() {
<View
key={card.key}
className='doctor-home__card'
style={`border-left: 6px solid ${card.color}`}
onClick={() => handleCardClick(card)}
>
<Text className='doctor-home__card-icon'>{card.icon}</Text>
<Text className='doctor-home__card-initial'>{card.initial}</Text>
<Text className='doctor-home__card-num'>{getValue(card.key)}</Text>
<Text className='doctor-home__card-label'>{card.label}</Text>
</View>
@@ -113,14 +115,16 @@ export default function DoctorHome() {
<View className='doctor-home__section'>
<Text className='doctor-home__section-title'></Text>
<View className='doctor-home__quick-actions'>
<View className='quick-action' onClick={() => Taro.navigateTo({ url: '/pages/doctor/report/index' })}>
<Text className='quick-action__icon'>📊</Text>
<Text className='quick-action__label'></Text>
</View>
<View className='quick-action' onClick={() => Taro.navigateTo({ url: '/pages/doctor/patients/index' })}>
<Text className='quick-action__icon'>🔍</Text>
<Text className='quick-action__label'></Text>
</View>
{QUICK_ACTIONS.map((action) => (
<View
key={action.route}
className='quick-action'
onClick={() => Taro.navigateTo({ url: action.route })}
>
<Text className='quick-action__initial'>{action.initial}</Text>
<Text className='quick-action__label'>{action.label}</Text>
</View>
))}
</View>
</View>

View File

@@ -1,24 +1,23 @@
@import '../../../../styles/variables.scss';
@import '../../../../styles/mixins.scss';
.patient-detail {
min-height: 100vh;
background: #f0f4f8;
background: $bg;
padding: 24px;
padding-bottom: 120px;
}
.section {
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px;
margin-bottom: 20px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
box-shadow: $shadow-sm;
}
.section-title {
font-size: 28px;
font-weight: 600;
color: #0f172a;
display: block;
margin-bottom: 20px;
@include section-title;
}
.info-grid {
@@ -35,25 +34,25 @@
.info-label {
font-size: 22px;
color: #94a3b8;
color: $tx3;
}
.info-value {
font-size: 28px;
color: #0f172a;
color: $tx;
font-weight: 500;
}
.warning-card {
background: #fef3c7;
border-radius: 12px;
background: $wrn-l;
border-radius: $r;
padding: 20px;
margin-bottom: 16px;
}
.warning-label {
font-size: 22px;
color: #b45309;
color: $wrn;
font-weight: 600;
display: block;
margin-bottom: 8px;
@@ -61,7 +60,7 @@
.warning-text {
font-size: 26px;
color: #92400e;
color: $pri-d;
}
.info-block {
@@ -70,14 +69,14 @@
.info-block-label {
font-size: 22px;
color: #94a3b8;
color: $tx3;
display: block;
margin-bottom: 8px;
}
.info-block-text {
font-size: 26px;
color: #334155;
color: $tx;
line-height: 1.6;
}
@@ -89,23 +88,24 @@
}
.vital-item {
background: #f0f9ff;
border-radius: 12px;
background: $pri-l;
border-radius: $r;
padding: 20px;
text-align: center;
}
.vital-value {
@include serif-number;
font-size: 36px;
font-weight: 700;
color: #0891b2;
color: $pri;
display: block;
margin-bottom: 4px;
}
.vital-label {
font-size: 22px;
color: #64748b;
color: $tx2;
}
.stat-row {
@@ -117,29 +117,30 @@
.stat-label {
font-size: 26px;
color: #475569;
color: $tx2;
}
.stat-value {
@include serif-number;
font-size: 26px;
font-weight: 600;
color: #0f172a;
color: $tx;
&--warn {
color: #f59e0b;
color: $wrn;
}
}
.lab-item {
padding: 20px 0;
border-bottom: 1px solid #f1f5f9;
border-bottom: 1px solid $bd-l;
&:last-child {
border-bottom: none;
}
&:active {
background: #f8fafc;
background: $bd-l;
}
&__header {
@@ -152,17 +153,17 @@
&__type {
font-size: 26px;
font-weight: 500;
color: #0f172a;
color: $tx;
}
&__date {
font-size: 24px;
color: #94a3b8;
color: $tx3;
}
&__abnormal {
font-size: 24px;
color: #ef4444;
color: $dan;
font-weight: 500;
}
}
@@ -176,9 +177,9 @@
flex: 1;
text-align: center;
padding: 20px;
border-radius: 12px;
background: #0891b2;
color: #fff;
border-radius: $r;
background: $pri;
color: $card;
font-size: 26px;
font-weight: 500;
@@ -187,13 +188,13 @@
}
text {
color: #fff;
color: $card;
}
}
.error-text {
text-align: center;
padding: 80px 32px;
color: #94a3b8;
color: $tx3;
font-size: 28px;
}

View File

@@ -1,6 +1,9 @@
@import '../../../styles/variables.scss';
@import '../../../styles/mixins.scss';
.patient-list-page {
min-height: 100vh;
background: #f0f4f8;
background: $bg;
padding: 24px;
padding-bottom: 120px;
}
@@ -9,12 +12,13 @@
margin-bottom: 20px;
.search-input {
background: #fff;
border-radius: 12px;
background: $card;
border-radius: $r;
padding: 20px 24px;
font-size: 28px;
width: 100%;
box-sizing: border-box;
box-shadow: $shadow-sm;
}
}
@@ -27,15 +31,15 @@
.tag-chip {
display: inline-block;
padding: 10px 24px;
border-radius: 20px;
background: #e2e8f0;
border-radius: $r-pill;
background: $bd-l;
font-size: 24px;
color: #475569;
color: $tx2;
margin-right: 16px;
&.active {
background: #0891b2;
color: #fff;
background: $pri;
color: $card;
}
}
@@ -44,7 +48,7 @@
text {
font-size: 24px;
color: #94a3b8;
color: $tx3;
}
}
@@ -55,13 +59,13 @@
}
.patient-card {
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
box-shadow: $shadow-sm;
&:active {
background: #f8fafc;
background: $bd-l;
}
&__header {
@@ -73,13 +77,13 @@
&__name {
font-size: 30px;
font-weight: 600;
color: #0f172a;
color: $tx;
margin-right: 16px;
}
&__meta {
font-size: 24px;
color: #64748b;
color: $tx2;
}
&__tags {
@@ -90,26 +94,22 @@
}
&__status {
font-size: 22px;
padding: 4px 12px;
border-radius: 8px;
@include tag($bg, $tx2);
&--active {
background: #dcfce7;
color: #16a34a;
@include tag($acc-l, $acc);
}
&--inactive {
background: #f1f5f9;
color: #94a3b8;
@include tag($bd-l, $tx3);
}
}
}
.patient-tag {
padding: 4px 14px;
border-radius: 12px;
background: #e0f2fe;
border-radius: $r;
background: $pri-l;
&__text {
font-size: 22px;
@@ -125,16 +125,16 @@
&__btn {
font-size: 26px;
color: #0891b2;
color: $pri;
padding: 12px 24px;
&.disabled {
color: #cbd5e1;
color: $tx3;
}
}
&__info {
font-size: 24px;
color: #64748b;
color: $tx2;
}
}

View File

@@ -1,24 +1,23 @@
@import '../../../../styles/variables.scss';
@import '../../../../styles/mixins.scss';
.report-detail {
min-height: 100vh;
background: #f0f4f8;
background: $bg;
padding: 24px;
padding-bottom: 120px;
}
.section {
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px;
margin-bottom: 20px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
box-shadow: $shadow-sm;
}
.section-title {
font-size: 28px;
font-weight: 600;
color: #0f172a;
display: block;
margin-bottom: 20px;
@include section-title;
}
.report-header {
@@ -28,31 +27,32 @@
margin-bottom: 12px;
&__type {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 32px;
font-weight: 700;
color: #0f172a;
color: $tx;
}
&__status {
font-size: 24px;
padding: 6px 16px;
border-radius: 12px;
border-radius: $r;
font-weight: 500;
&--pending { background: #fef3c7; color: #b45309; }
&--reviewed { background: #dcfce7; color: #16a34a; }
&--pending { background: $wrn-l; color: $wrn; }
&--reviewed { background: $acc-l; color: $acc; }
}
}
.report-date {
font-size: 26px;
color: #64748b;
color: $tx2;
display: block;
}
.review-info {
font-size: 24px;
color: #10b981;
color: $acc;
display: block;
margin-top: 8px;
}
@@ -64,19 +64,19 @@
.indicator-row {
display: flex;
padding: 16px 0;
border-bottom: 1px solid #f1f5f9;
border-bottom: 1px solid $bd-l;
align-items: center;
&--header {
border-bottom: 2px solid #e2e8f0;
border-bottom: 2px solid $bd;
padding-bottom: 12px;
}
&--abnormal {
background: #fef2f2;
background: $dan-l;
margin: 0 -12px;
padding: 16px 12px;
border-radius: 8px;
border-radius: $r-sm;
}
}
@@ -85,69 +85,71 @@
&--name {
flex: 2;
color: #334155;
color: $tx;
font-weight: 500;
}
&--value {
@include serif-number;
flex: 2;
color: #0f172a;
color: $tx;
font-weight: 600;
text-align: center;
}
&--ref {
@include serif-number;
flex: 2;
color: #94a3b8;
color: $tx3;
text-align: center;
}
&--flag {
flex: 1;
text-align: right;
color: #10b981;
color: $acc;
}
.indicator-row--abnormal &--flag {
color: #ef4444;
color: $dan;
font-weight: 700;
}
.indicator-row--header & {
font-size: 22px;
color: #94a3b8;
color: $tx3;
font-weight: 400;
}
}
.notes-display {
background: #f0f9ff;
border-radius: 12px;
background: $pri-l;
border-radius: $r;
padding: 20px;
}
.notes-text {
font-size: 26px;
color: #334155;
color: $tx;
line-height: 1.6;
}
.notes-textarea {
width: 100%;
min-height: 200px;
background: #f8fafc;
border-radius: 12px;
background: $bd-l;
border-radius: $r;
padding: 20px;
font-size: 26px;
color: #0f172a;
color: $tx;
box-sizing: border-box;
line-height: 1.6;
margin-bottom: 20px;
}
.review-btn {
background: #0891b2;
border-radius: 12px;
background: $pri;
border-radius: $r;
padding: 20px;
text-align: center;
@@ -157,7 +159,7 @@
&__text {
font-size: 28px;
color: #fff;
color: $card;
font-weight: 600;
}
}
@@ -165,6 +167,6 @@
.error-text {
text-align: center;
padding: 80px 32px;
color: #94a3b8;
color: $tx3;
font-size: 28px;
}

View File

@@ -1,6 +1,9 @@
@import '../../../styles/variables.scss';
@import '../../../styles/mixins.scss';
.report-page {
min-height: 100vh;
background: #f0f4f8;
background: $bg;
padding: 24px;
padding-bottom: 120px;
}
@@ -9,12 +12,13 @@
margin-bottom: 20px;
.search-input {
background: #fff;
border-radius: 12px;
background: $card;
border-radius: $r;
padding: 20px 24px;
font-size: 28px;
width: 100%;
box-sizing: border-box;
box-shadow: $shadow-sm;
}
}
@@ -23,7 +27,7 @@
text {
font-size: 24px;
color: #94a3b8;
color: $tx3;
}
}
@@ -34,13 +38,13 @@
}
.report-card {
background: #fff;
border-radius: 16px;
background: $card;
border-radius: $r-lg;
padding: 28px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
box-shadow: $shadow-sm;
&:active {
background: #f8fafc;
background: $bd-l;
}
&__header {
@@ -51,14 +55,15 @@
}
&__type {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: 600;
color: #0f172a;
color: $tx;
}
&__date {
font-size: 24px;
color: #94a3b8;
color: $tx3;
}
&__indicators {
@@ -69,20 +74,16 @@
&__abnormal {
font-size: 26px;
color: #ef4444;
color: $dan;
font-weight: 600;
}
&__normal {
font-size: 26px;
color: #10b981;
color: $acc;
}
&__reviewed {
font-size: 22px;
color: #0891b2;
background: #e0f2fe;
padding: 2px 12px;
border-radius: 8px;
@include tag($acc-l, $acc);
}
}