安全修复: - 移除硬编码管理员凭据 admin/Admin@2026,改用环境变量注入 - 移除 forceSetAuth 全局 bridge 方法,减少攻击面 - sanitizeHtml 从黑名单正则升级为白名单方式 - secure-storage 实现 XOR+Base64 加密存储,不再明文 - 添加旧数据迁移逻辑 migrateLegacyStorage 功能修复: - 新增咨询创建页(consultation/create),修复"发起咨询"按钮导航失败 - 修复咨询详情页长轮询可能永远不启动(dataLoadedRef → useState) - 新增 createSession service API - 预约页面从主包移至分包,配置 commonChunks 优化主包体积 UX 修复: - 65 处硬编码字号 → var(--tk-font-*) token 替换 - AI 聊天页 13 处、咨询详情页 14 处、医生端核心页 38 处 - StatusTag 色值对齐设计系统色板 - Loading 文字从 --tk-font-h1(28px) 修正为 --tk-font-body-sm - EmptyState 文字从 --tk-font-num(30px)/--tk-font-h2(22px) 修正 - 医生端 5 处硬编码颜色 → SCSS 变量
103 lines
3.4 KiB
TypeScript
103 lines
3.4 KiB
TypeScript
export default defineAppConfig({
|
|
pages: [
|
|
'pages/index/index',
|
|
'pages/login/index',
|
|
'pages/health/index',
|
|
'pages/messages/index',
|
|
'pages/consultation/index',
|
|
'pages/consultation/create/index',
|
|
'pages/mall/index',
|
|
'pages/profile/index',
|
|
'pages/legal/user-agreement',
|
|
'pages/legal/privacy-policy',
|
|
],
|
|
subPackages: [
|
|
{
|
|
root: 'pages/pkg-health',
|
|
pages: ['trend/index', 'input/index', 'daily-monitoring/index', 'alerts/index', 'device-sync/index'],
|
|
},
|
|
{
|
|
root: 'pages/pkg-doctor-core',
|
|
pages: [
|
|
'index', 'patients/index', 'patients/detail/index',
|
|
'consultation/index', 'consultation/detail/index',
|
|
'followup/index', 'followup/detail/index',
|
|
'action-inbox/index',
|
|
],
|
|
},
|
|
{
|
|
root: 'pages/pkg-doctor-clinical',
|
|
pages: [
|
|
'dialysis/index', 'dialysis/detail/index', 'dialysis/create/index',
|
|
'prescription/index', 'prescription/detail/index', 'prescription/create/index',
|
|
'report/index', 'report/detail/index',
|
|
'alerts/index', 'alerts/detail/index',
|
|
],
|
|
},
|
|
{
|
|
root: 'pages/pkg-mall',
|
|
pages: ['exchange/index', 'orders/index', 'detail/index', 'product/index'],
|
|
},
|
|
{
|
|
root: 'pages/pkg-profile',
|
|
pages: [
|
|
'family/index', 'family-add/index', 'reports/index', 'reports/detail/index',
|
|
'followups/index', 'followups/detail/index', 'medication/index', 'settings/index',
|
|
'dialysis-records/index', 'dialysis-records/detail/index',
|
|
'dialysis-prescriptions/index', 'dialysis-prescriptions/detail/index',
|
|
'consents/index', 'health-records/index', 'diagnoses/index',
|
|
'elder-mode/index', 'events/index', 'notifications/index',
|
|
],
|
|
},
|
|
{
|
|
root: 'pages/ai-report',
|
|
pages: ['list/index', 'detail/index'],
|
|
},
|
|
{
|
|
root: 'pages/article',
|
|
pages: ['index', 'detail/index'],
|
|
},
|
|
{
|
|
root: 'pages/appointment',
|
|
pages: ['index', 'create/index', 'detail/index'],
|
|
},
|
|
{
|
|
root: 'pages/pkg-consultation',
|
|
pages: ['detail/index'],
|
|
},
|
|
],
|
|
tabBar: {
|
|
color: '#A8A29E',
|
|
selectedColor: '#C4623A',
|
|
backgroundColor: '#FFFFFF',
|
|
borderStyle: 'white',
|
|
list: [
|
|
{ pagePath: 'pages/index/index', text: '首页', iconPath: 'assets/tabbar/home.png', selectedIconPath: 'assets/tabbar/home-active.png' },
|
|
{ pagePath: 'pages/health/index', text: '健康', iconPath: 'assets/tabbar/health.png', selectedIconPath: 'assets/tabbar/health-active.png' },
|
|
{ pagePath: 'pages/messages/index', text: '消息', iconPath: 'assets/tabbar/message.png', selectedIconPath: 'assets/tabbar/message-active.png' },
|
|
{ pagePath: 'pages/profile/index', text: '我的', iconPath: 'assets/tabbar/profile.png', selectedIconPath: 'assets/tabbar/profile-active.png' },
|
|
],
|
|
},
|
|
preloadRule: {
|
|
'pages/index/index': {
|
|
network: 'all',
|
|
packages: ['pages/pkg-health', 'pages/pkg-doctor-core', 'pages/article'],
|
|
},
|
|
'pages/health/index': {
|
|
network: 'all',
|
|
packages: ['pages/pkg-health'],
|
|
},
|
|
'pages/consultation/index': {
|
|
network: 'all',
|
|
packages: ['pages/pkg-consultation'],
|
|
},
|
|
},
|
|
window: {
|
|
backgroundTextStyle: 'dark',
|
|
navigationBarBackgroundColor: '#FFFFFF',
|
|
navigationBarTitleText: '健康管理',
|
|
navigationBarTextStyle: 'black',
|
|
enablePullDownRefresh: true,
|
|
},
|
|
});
|