feat(tabbar): TabBar 调整为 4 项,事件/我的更名消息中心/个人中心
This commit is contained in:
parent
727b91fb07
commit
08abbb55e1
|
|
@ -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'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ export default function Event() {
|
|||
|
||||
return (
|
||||
<View className={styles.page}>
|
||||
<Navbar title="事件" autoBack={false} />
|
||||
<Navbar title="消息中心" autoBack={false} />
|
||||
|
||||
{/* 筛选栏:三格等分 */}
|
||||
<View className={styles.filters}>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export default function Mine() {
|
|||
|
||||
return (
|
||||
<View className={styles.page}>
|
||||
<Navbar title="我的" />
|
||||
<Navbar title="个人中心" autoBack={false} />
|
||||
<View className={styles.header}>
|
||||
<Text className={styles.avatar}>{user?.name?.[0] ?? '?'}</Text>
|
||||
<View className={styles.headerInfo}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue