Showing
1 changed file
with
23 additions
and
0 deletions
| @@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
| 5 | import { BottomNavDTO, TopNavDTO } from 'wdBean/Index' | 5 | import { BottomNavDTO, TopNavDTO } from 'wdBean/Index' |
| 6 | import { VideoChannelDetail } from 'wdDetailPlayShortVideo/Index'; | 6 | import { VideoChannelDetail } from 'wdDetailPlayShortVideo/Index'; |
| 7 | import { PageComponent } from './PageComponent'; | 7 | import { PageComponent } from './PageComponent'; |
| 8 | +import { WDRouterPage, WDRouterRule } from 'wdRouter'; | ||
| 8 | 9 | ||
| 9 | const TAG = 'VideoChannelPage' | 10 | const TAG = 'VideoChannelPage' |
| 10 | 11 | ||
| @@ -67,6 +68,7 @@ export struct VideoChannelPage { | @@ -67,6 +68,7 @@ export struct VideoChannelPage { | ||
| 67 | 68 | ||
| 68 | @Builder | 69 | @Builder |
| 69 | topNavView() { | 70 | topNavView() { |
| 71 | + Stack({alignContent: Alignment.TopEnd}) { | ||
| 70 | Row() { | 72 | Row() { |
| 71 | ForEach(this.topNavList, (item: TopNavDTO, index: number) => { | 73 | ForEach(this.topNavList, (item: TopNavDTO, index: number) => { |
| 72 | Column() { | 74 | Column() { |
| @@ -105,6 +107,27 @@ export struct VideoChannelPage { | @@ -105,6 +107,27 @@ export struct VideoChannelPage { | ||
| 105 | .width('100%') | 107 | .width('100%') |
| 106 | .justifyContent(FlexAlign.Center) | 108 | .justifyContent(FlexAlign.Center) |
| 107 | .backgroundColor(this.currentTopNavSelectedIndex === 0 ? Color.Transparent : Color.White) | 109 | .backgroundColor(this.currentTopNavSelectedIndex === 0 ? Color.Transparent : Color.White) |
| 110 | + | ||
| 111 | + // 搜索按钮 | ||
| 112 | + Row() { | ||
| 113 | + Image($r('app.media.icon_search')) | ||
| 114 | + .width('24vp') | ||
| 115 | + .height('24vp') | ||
| 116 | + } | ||
| 117 | + .width('40vp') | ||
| 118 | + .margin({ | ||
| 119 | + right: '10vp', | ||
| 120 | + top: '3vp', | ||
| 121 | + }) | ||
| 122 | + .alignItems(VerticalAlign.Center) | ||
| 123 | + .justifyContent(FlexAlign.Center) | ||
| 124 | + .onClick(() => { | ||
| 125 | + WDRouterRule.jumpWithPage(WDRouterPage.searchPage) | ||
| 126 | + }) | ||
| 127 | + .backgroundColor(Color.Transparent) | ||
| 128 | + | ||
| 129 | + } | ||
| 130 | + | ||
| 108 | } | 131 | } |
| 109 | 132 | ||
| 110 | @Builder | 133 | @Builder |
-
Please register or login to post a comment