feat(mp+health): 小程序分包迁移 + 积分商城后台列表 API
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- 小程序页面迁移到 pkg-health/pkg-mall/pkg-profile 分包目录
- 删除旧 pages/health/input、pages/mall/detail 等旧路径
- 导航路径更新为分包路径(/pages/pkg-mall/exchange/index 等)
- TrendChart 组件优化
- 后台添加 admin_list_products API(支持查看已下架商品)
- config/index.ts 添加 defineConstants 环境变量
- mp e2e check-readiness 路径修正
This commit is contained in:
iven
2026-04-29 07:29:49 +08:00
parent 9015a2b85e
commit cb6f5cc651
32 changed files with 229 additions and 516 deletions

View File

@@ -0,0 +1,182 @@
@import '../../../styles/variables.scss';
@mixin serif-number {
font-family: 'Georgia', 'Times New Roman', serif;
font-variant-numeric: tabular-nums;
}
@mixin section-title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: bold;
color: $tx;
margin-bottom: 20px;
display: block;
}
@mixin tag($bg, $color) {
display: inline-block;
padding: 4px 12px;
border-radius: 8px;
font-size: 20px;
font-weight: 500;
background: $bg;
color: $color;
}
@mixin flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.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;
border-radius: 0 0 $r-lg $r-lg;
}
.status-tab {
flex: 1;
@include flex-center;
padding: 16px 0;
position: relative;
&.active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 40px;
height: 4px;
background: $pri;
border-radius: 2px;
}
}
.status-tab-text {
font-size: 28px;
color: $tx3;
.status-tab.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: $shadow-sm;
}
.order-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px 24px 16px;
border-bottom: 1px solid $bd-l;
}
.order-product {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: bold;
color: $tx;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.order-status-tag {
@include tag(transparent, $tx3);
padding: 4px 16px;
border-radius: $r-pill;
margin-left: 12px;
flex-shrink: 0;
}
.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 {
@include serif-number;
font-size: 26px;
color: $tx;
&.order-cost {
color: $pri;
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;
margin-right: 8px;
}
.qrcode-value {
@include serif-number;
font-size: 24px;
color: $pri-d;
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;
}