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

@@ -6,13 +6,13 @@ import { usePointsStore } from '../../stores/points';
import './index.scss';
const MENU_ITEMS = [
{ label: '我的订单', char: '单', path: '/pages/mall/orders/index' },
{ label: '积分明细', char: '明', path: '/pages/mall/detail/index' },
{ label: '就诊人管理', char: '人', path: '/pages/profile/family/index' },
{ label: '我的报告', char: '报', path: '/pages/profile/reports/index' },
{ label: '我的随访', char: '随', path: '/pages/profile/followups/index' },
{ label: '用药提醒', char: '药', path: '/pages/profile/medication/index' },
{ label: '设置', char: '设', path: '/pages/profile/settings/index' },
{ label: '我的订单', char: '单', path: '/pages/pkg-mall/orders/index' },
{ label: '积分明细', char: '明', path: '/pages/pkg-mall/detail/index' },
{ label: '就诊人管理', char: '人', path: '/pages/pkg-profile/family/index' },
{ label: '我的报告', char: '报', path: '/pages/pkg-profile/reports/index' },
{ label: '我的随访', char: '随', path: '/pages/pkg-profile/followups/index' },
{ label: '用药提醒', char: '药', path: '/pages/pkg-profile/medication/index' },
{ label: '设置', char: '设', path: '/pages/pkg-profile/settings/index' },
];
export default function Profile() {
@@ -53,7 +53,7 @@ export default function Profile() {
{/* 积分余额 */}
<View
className='profile-stats'
onClick={() => Taro.navigateTo({ url: '/pages/mall/detail/index' })}
onClick={() => Taro.navigateTo({ url: '/pages/pkg-mall/detail/index' })}
>
<View className='stat-item'>
<Text className='stat-value'>{(pointsAccount?.balance ?? 0).toLocaleString()}</Text>