From 08abbb55e1aba1e8c2f63a947e0eb055461f06dd Mon Sep 17 00:00:00 2001 From: ozh Date: Tue, 8 Sep 2026 18:10:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(tabbar):=20TabBar=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=B8=BA=204=20=E9=A1=B9=EF=BC=8C=E4=BA=8B=E4=BB=B6/=E6=88=91?= =?UTF-8?q?=E7=9A=84=E6=9B=B4=E5=90=8D=E6=B6=88=E6=81=AF=E4=B8=AD=E5=BF=83?= =?UTF-8?q?/=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.config.ts | 15 +++++++++++---- src/pages/event/index.tsx | 2 +- src/pages/mine/index.tsx | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/app.config.ts b/src/app.config.ts index 27831fc..010eb78 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -1,17 +1,18 @@ export default { - // P5 收尾:全部 8 个页面齐备 pages: [ 'pages/index/index', 'pages/login/index', 'pages/mine/index', 'pages/scene/select', + 'pages/device/index', 'pages/device/detail', 'pages/device/add', 'pages/device/config', + 'pages/family/index', 'pages/event/index' ], window: { - navigationStyle: 'custom', // 与现状 pages.json 一致:所有页自绘 Navbar,避免原生导航栏与自研 Navbar 双栏 + navigationStyle: 'custom', // 与现状一致:所有页自绘 Navbar,避免原生导航栏与自研 Navbar 双栏 navigationBarTextStyle: 'black', navigationBarTitleText: '智慧养老', navigationBarBackgroundColor: '#F8F8F8', @@ -29,15 +30,21 @@ export default { iconPath: 'assets/tabbar/home.png', selectedIconPath: 'assets/tabbar/home-active.png' }, + { + pagePath: 'pages/device/index', + text: '智能设备', + iconPath: 'assets/tabbar/device.png', + selectedIconPath: 'assets/tabbar/device-active.png' + }, { pagePath: 'pages/event/index', - text: '事件', + text: '消息中心', iconPath: 'assets/tabbar/event.png', selectedIconPath: 'assets/tabbar/event-active.png' }, { pagePath: 'pages/mine/index', - text: '我的', + text: '个人中心', iconPath: 'assets/tabbar/mine.png', selectedIconPath: 'assets/tabbar/mine-active.png' } diff --git a/src/pages/event/index.tsx b/src/pages/event/index.tsx index 71a63ef..d809de0 100644 --- a/src/pages/event/index.tsx +++ b/src/pages/event/index.tsx @@ -113,7 +113,7 @@ export default function Event() { return ( - + {/* 筛选栏:三格等分 */} diff --git a/src/pages/mine/index.tsx b/src/pages/mine/index.tsx index 0508931..cb3ad6d 100644 --- a/src/pages/mine/index.tsx +++ b/src/pages/mine/index.tsx @@ -27,7 +27,7 @@ export default function Mine() { return ( - + {user?.name?.[0] ?? '?'}