小程序 — 积分商城 (3 新页面): - mall/exchange: 兑换确认 (余额校验/QR码生成) - mall/orders: 我的订单 (状态筛选/分页/QR展示) - mall/detail: 积分明细 (余额卡片/收入支出筛选/流水列表) 小程序 — 上报 Tab 改造: - health/daily-monitoring: 日常监测表单 (血压/体重/血糖/出入量) - health/index: 增加快捷操作/打卡状态/近期监测卡片 - consultation: 替换占位为咨询列表 (会话/状态/未读) - profile: 新增积分余额/打卡天数/我的订单/积分明细入口 小程序 — 新增服务: - services/consultation.ts: 咨询会话 API - services/points.ts: 扩展兑换/订单/流水 API - services/health.ts: 扩展日常监测 API PC 管理端: - StatisticsDashboard: 统计报表仪表盘 (患者/咨询/随访/积分卡片 + Top10排行 + 快速链接) - 侧边栏新增统计报表入口 (健康模块首页)
179 lines
2.5 KiB
SCSS
179 lines
2.5 KiB
SCSS
@import '../../../styles/variables.scss';
|
|
|
|
.orders-page {
|
|
min-height: 100vh;
|
|
background: $bg;
|
|
padding-bottom: 40px;
|
|
}
|
|
|
|
/* ===== 状态筛选标签 ===== */
|
|
.status-tabs {
|
|
display: flex;
|
|
gap: 0;
|
|
padding: 20px 24px 0;
|
|
background: $card;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.status-tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 16px 0;
|
|
position: relative;
|
|
|
|
&.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 48px;
|
|
height: 4px;
|
|
background: $pri;
|
|
border-radius: 2px;
|
|
}
|
|
}
|
|
|
|
.status-tab-text {
|
|
font-size: 28px;
|
|
color: $tx2;
|
|
|
|
&.active {
|
|
color: $pri;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
/* ===== 订单列表 ===== */
|
|
.order-list {
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.order-card {
|
|
background: $card;
|
|
border-radius: $r;
|
|
margin-bottom: 16px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.order-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 24px 24px 16px;
|
|
border-bottom: 1px solid $bd-l;
|
|
}
|
|
|
|
.order-product {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
color: $tx;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.order-status {
|
|
padding: 4px 16px;
|
|
border-radius: 20px;
|
|
margin-left: 12px;
|
|
flex-shrink: 0;
|
|
|
|
&.status-pending {
|
|
background: $wrn-l;
|
|
|
|
.order-status-text {
|
|
color: $wrn;
|
|
}
|
|
}
|
|
|
|
&.status-verified {
|
|
background: $acc-l;
|
|
|
|
.order-status-text {
|
|
color: $acc;
|
|
}
|
|
}
|
|
|
|
&.status-cancelled {
|
|
background: $dan-l;
|
|
|
|
.order-status-text {
|
|
color: $dan;
|
|
}
|
|
}
|
|
|
|
&.status-expired {
|
|
background: $bd-l;
|
|
|
|
.order-status-text {
|
|
color: $tx3;
|
|
}
|
|
}
|
|
}
|
|
|
|
.order-status-text {
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.order-body {
|
|
padding: 16px 24px 20px;
|
|
}
|
|
|
|
.order-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.order-row-label {
|
|
font-size: 26px;
|
|
color: $tx3;
|
|
}
|
|
|
|
.order-row-value {
|
|
font-size: 26px;
|
|
color: $tx;
|
|
|
|
&.cost {
|
|
color: $wrn;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
/* ===== 核销码 ===== */
|
|
.order-qrcode {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 16px;
|
|
margin-top: 12px;
|
|
background: $pri-l;
|
|
border-radius: $r-sm;
|
|
}
|
|
|
|
.qrcode-label {
|
|
font-size: 24px;
|
|
color: $tx3;
|
|
}
|
|
|
|
.qrcode-value {
|
|
font-size: 24px;
|
|
color: $pri;
|
|
font-weight: bold;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.qrcode-tap {
|
|
font-size: 22px;
|
|
color: $pri;
|
|
margin-left: 8px;
|
|
flex-shrink: 0;
|
|
}
|