feat(tabbar): TabBar 调整为 4 项,事件/我的更名消息中心/个人中心
This commit is contained in:
parent
727b91fb07
commit
08abbb55e1
|
|
@ -1,17 +1,18 @@
|
||||||
export default {
|
export default {
|
||||||
// P5 收尾:全部 8 个页面齐备
|
|
||||||
pages: [
|
pages: [
|
||||||
'pages/index/index',
|
'pages/index/index',
|
||||||
'pages/login/index',
|
'pages/login/index',
|
||||||
'pages/mine/index',
|
'pages/mine/index',
|
||||||
'pages/scene/select',
|
'pages/scene/select',
|
||||||
|
'pages/device/index',
|
||||||
'pages/device/detail',
|
'pages/device/detail',
|
||||||
'pages/device/add',
|
'pages/device/add',
|
||||||
'pages/device/config',
|
'pages/device/config',
|
||||||
|
'pages/family/index',
|
||||||
'pages/event/index'
|
'pages/event/index'
|
||||||
],
|
],
|
||||||
window: {
|
window: {
|
||||||
navigationStyle: 'custom', // 与现状 pages.json 一致:所有页自绘 Navbar,避免原生导航栏与自研 Navbar 双栏
|
navigationStyle: 'custom', // 与现状一致:所有页自绘 Navbar,避免原生导航栏与自研 Navbar 双栏
|
||||||
navigationBarTextStyle: 'black',
|
navigationBarTextStyle: 'black',
|
||||||
navigationBarTitleText: '智慧养老',
|
navigationBarTitleText: '智慧养老',
|
||||||
navigationBarBackgroundColor: '#F8F8F8',
|
navigationBarBackgroundColor: '#F8F8F8',
|
||||||
|
|
@ -29,15 +30,21 @@ export default {
|
||||||
iconPath: 'assets/tabbar/home.png',
|
iconPath: 'assets/tabbar/home.png',
|
||||||
selectedIconPath: 'assets/tabbar/home-active.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',
|
pagePath: 'pages/event/index',
|
||||||
text: '事件',
|
text: '消息中心',
|
||||||
iconPath: 'assets/tabbar/event.png',
|
iconPath: 'assets/tabbar/event.png',
|
||||||
selectedIconPath: 'assets/tabbar/event-active.png'
|
selectedIconPath: 'assets/tabbar/event-active.png'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
pagePath: 'pages/mine/index',
|
pagePath: 'pages/mine/index',
|
||||||
text: '我的',
|
text: '个人中心',
|
||||||
iconPath: 'assets/tabbar/mine.png',
|
iconPath: 'assets/tabbar/mine.png',
|
||||||
selectedIconPath: 'assets/tabbar/mine-active.png'
|
selectedIconPath: 'assets/tabbar/mine-active.png'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ export default function Event() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View className={styles.page}>
|
<View className={styles.page}>
|
||||||
<Navbar title="事件" autoBack={false} />
|
<Navbar title="消息中心" autoBack={false} />
|
||||||
|
|
||||||
{/* 筛选栏:三格等分 */}
|
{/* 筛选栏:三格等分 */}
|
||||||
<View className={styles.filters}>
|
<View className={styles.filters}>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ export default function Mine() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View className={styles.page}>
|
<View className={styles.page}>
|
||||||
<Navbar title="我的" />
|
<Navbar title="个人中心" autoBack={false} />
|
||||||
<View className={styles.header}>
|
<View className={styles.header}>
|
||||||
<Text className={styles.avatar}>{user?.name?.[0] ?? '?'}</Text>
|
<Text className={styles.avatar}>{user?.name?.[0] ?? '?'}</Text>
|
||||||
<View className={styles.headerInfo}>
|
<View className={styles.headerInfo}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue