访客模式: - 未登录用户可见首页(轮播图+健康资讯+登录引导)和"我的"页面 - 健康和消息 tab 显示 GuestGuard 登录拦截 - 登录页增加"暂不登录,先看看"跳过入口 - 401 拦截器增加 hasToken 检查,避免访客被重定向到登录页 - 退出登录后 reLaunch 到首页而非登录页 长辈模式: - 新增 stores/ui.ts 管理显示模式(标准/长辈) - 长辈模式放大字体 ×1.3、间距 ×1.2、按钮加大 - "我的 → 账号 → 长辈模式"切换页 - 设置持久化到 Storage 修复: - Health/Messages 页面 Hooks 顺序违规(条件 return 在 hooks 之间) 导致访客模式下页面白屏,所有 hooks 移到条件判断之前 工程: - scripts/mpsync.sh/ps1 自动清理残留 DevTools 进程 - project.config.json 默认关闭域名校验
95 lines
3.0 KiB
TypeScript
95 lines
3.0 KiB
TypeScript
export default defineAppConfig({
|
|
pages: [
|
|
'pages/index/index',
|
|
'pages/login/index',
|
|
'pages/health/index',
|
|
'pages/messages/index',
|
|
'pages/consultation/index',
|
|
'pages/consultation/detail/index',
|
|
'pages/mall/index',
|
|
'pages/profile/index',
|
|
'pages/appointment/index',
|
|
'pages/appointment/create/index',
|
|
'pages/appointment/detail/index',
|
|
'pages/legal/user-agreement',
|
|
'pages/legal/privacy-policy',
|
|
],
|
|
subPackages: [
|
|
{
|
|
root: 'pages/pkg-health',
|
|
pages: ['trend/index', 'input/index', 'daily-monitoring/index', 'alerts/index'],
|
|
},
|
|
{
|
|
root: 'pages/doctor',
|
|
pages: [
|
|
'index', 'patients/index', 'patients/detail/index',
|
|
'consultation/index', 'consultation/detail/index',
|
|
'followup/index', 'followup/detail/index',
|
|
'report/index', 'report/detail/index',
|
|
'alerts/index', 'alerts/detail/index',
|
|
'action-inbox/index',
|
|
'dialysis/index', 'dialysis/detail/index', 'dialysis/create/index',
|
|
'prescription/index', 'prescription/detail/index', 'prescription/create/index',
|
|
],
|
|
},
|
|
{
|
|
root: 'pages/pkg-mall',
|
|
pages: ['exchange/index', 'orders/index', 'detail/index'],
|
|
},
|
|
{
|
|
root: 'pages/pkg-profile',
|
|
pages: [
|
|
'family/index', 'family-add/index', 'reports/index',
|
|
'followups/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',
|
|
],
|
|
},
|
|
{
|
|
root: 'pages/ai-report',
|
|
pages: ['list/index', 'detail/index'],
|
|
},
|
|
{
|
|
root: 'pages/article',
|
|
pages: ['index', 'detail/index'],
|
|
},
|
|
{
|
|
root: 'pages/report',
|
|
pages: ['detail/index'],
|
|
},
|
|
{
|
|
root: 'pages/followup',
|
|
pages: ['detail/index'],
|
|
},
|
|
{
|
|
root: 'pages/events',
|
|
pages: ['index'],
|
|
},
|
|
{
|
|
root: 'pages/device-sync',
|
|
pages: ['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' },
|
|
],
|
|
},
|
|
window: {
|
|
backgroundTextStyle: 'dark',
|
|
navigationBarBackgroundColor: '#FFFFFF',
|
|
navigationBarTitleText: '健康管理',
|
|
navigationBarTextStyle: 'black',
|
|
enablePullDownRefresh: true,
|
|
},
|
|
});
|