wwf
5 天以前 8e1b89c65db438797d2d89c508f3e9883bbd7c20
entry/src/main/ets/pages/MainPage.ets
@@ -1,6 +1,7 @@
import { Home } from './home/Home'
import { MessagePage } from './message/MessagePage'
import { SearchPage } from './search/SearchPage'
import { AccountPage } from  './account/AccountPage'
/**
 * @Description : 底部导航,APP模块
@@ -19,7 +20,7 @@
    { 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){
@@ -47,8 +48,8 @@
              SearchPage()
            } else if (this.selectIndex == 2){
              MessagePage()
            } else if (index === 3){
              // AccountPage()
            } else if (this.selectIndex == 3){
              AccountPage()
            }
          }
        })