| | |
| | | import { Home } from './home/Home' |
| | | import { MessagePage } from './message/MessagePage' |
| | | import { SearchPage } from './search/SearchPage' |
| | | import { AccountPage } from './account/AccountPage' |
| | | |
| | | /** |
| | | * @Description : 底部导航,APP模块 |
| | |
| | | { icon: 'tabs_message_icon', title: '消息' }, |
| | | { icon: 'tabs_account_icon', title: '我的' } |
| | | ] |
| | | @State selectIndex: number = 2 |
| | | @State selectIndex: number = 3 |
| | | private tabController: TabsController = new TabsController() |
| | | |
| | | @Builder tabItem(icon: ResourceStr,title: string,index: number){ |
| | |
| | | SearchPage() |
| | | } else if (this.selectIndex == 2){ |
| | | MessagePage() |
| | | } else if (index === 3){ |
| | | // AccountPage() |
| | | } else if (this.selectIndex == 3){ |
| | | AccountPage() |
| | | } |
| | | } |
| | | }) |