Showing
1 changed file
with
15 additions
and
0 deletions
| @@ -7,6 +7,7 @@ import { FirstTabTopSearchComponent } from '../search/FirstTabTopSearchComponent | @@ -7,6 +7,7 @@ import { FirstTabTopSearchComponent } from '../search/FirstTabTopSearchComponent | ||
| 7 | import { VideoChannelDetail } from 'wdDetailPlayShortVideo/Index'; | 7 | import { VideoChannelDetail } from 'wdDetailPlayShortVideo/Index'; |
| 8 | import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils'; | 8 | import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils'; |
| 9 | import { PeopleShipMainComponent } from '../peopleShip/PeopleShipMainComponent'; | 9 | import { PeopleShipMainComponent } from '../peopleShip/PeopleShipMainComponent'; |
| 10 | +import { WDRouterPage, WDRouterRule } from 'wdRouter' | ||
| 10 | 11 | ||
| 11 | 12 | ||
| 12 | const TAG = 'TopNavigationComponent'; | 13 | const TAG = 'TopNavigationComponent'; |
| @@ -326,6 +327,20 @@ export struct TopNavigationComponent { | @@ -326,6 +327,20 @@ export struct TopNavigationComponent { | ||
| 326 | this.tabsController.changeIndex(index) | 327 | this.tabsController.changeIndex(index) |
| 327 | } | 328 | } |
| 328 | }) | 329 | }) |
| 330 | + }else { | ||
| 331 | + Row() { | ||
| 332 | + Image($r('app.media.icon_search')) | ||
| 333 | + .width(18) | ||
| 334 | + .height(18) | ||
| 335 | + } | ||
| 336 | + .height('40vp') | ||
| 337 | + .width('40vp') | ||
| 338 | + .margin({ right: 10 }) | ||
| 339 | + .alignItems(VerticalAlign.Center) | ||
| 340 | + .justifyContent(FlexAlign.Center) | ||
| 341 | + .onClick(() => { | ||
| 342 | + WDRouterRule.jumpWithPage(WDRouterPage.searchPage) | ||
| 343 | + }) | ||
| 329 | } | 344 | } |
| 330 | } | 345 | } |
| 331 | } | 346 | } |
-
Please register or login to post a comment