Showing
1 changed file
with
7 additions
and
3 deletions
| @@ -48,6 +48,7 @@ export struct VideoChannelPage { | @@ -48,6 +48,7 @@ export struct VideoChannelPage { | ||
| 48 | async aboutToAppear() { | 48 | async aboutToAppear() { |
| 49 | // 背景图高度 | 49 | // 背景图高度 |
| 50 | this.backgroundImageH = px2vp(this.topSafeHeight) + 44 | 50 | this.backgroundImageH = px2vp(this.topSafeHeight) + 44 |
| 51 | + console.info(`cj2024 backgroundImageH = ${this.backgroundImageH} this.topSafeHeight = ${this.topSafeHeight}`) | ||
| 51 | this.setBarBackgroundColor() | 52 | this.setBarBackgroundColor() |
| 52 | } | 53 | } |
| 53 | 54 | ||
| @@ -88,12 +89,12 @@ export struct VideoChannelPage { | @@ -88,12 +89,12 @@ export struct VideoChannelPage { | ||
| 88 | * @returns | 89 | * @returns |
| 89 | */ | 90 | */ |
| 90 | tabSelectedColor(selected: boolean): string { | 91 | tabSelectedColor(selected: boolean): string { |
| 91 | - console.info(`cj2024 selected this.navItem.channelChooseColor=${this.navItem.channelChooseColor}`) | 92 | + console.info(`cj2024 selected this.navItem.channelChooseColor=${this.navItem.channelChooseColor} selected = ${selected}`) |
| 92 | if (selected) { | 93 | if (selected) { |
| 93 | return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222' | 94 | return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222' |
| 94 | } else { | 95 | } else { |
| 95 | - let ccolor = this.navItem.channelChooseCColor.replace('#', '#B3') | ||
| 96 | - return this.navItem.channelChooseCColor ? ccolor : '#666666' | 96 | + let ccolor = this.navItem.channelChooseCColor.replace('#', '#99') |
| 97 | + return this.navItem.channelChooseCColor ? ccolor : '#99FFFFFF' | ||
| 97 | } | 98 | } |
| 98 | 99 | ||
| 99 | } | 100 | } |
| @@ -105,6 +106,7 @@ export struct VideoChannelPage { | @@ -105,6 +106,7 @@ export struct VideoChannelPage { | ||
| 105 | 106 | ||
| 106 | this.topNavView() | 107 | this.topNavView() |
| 107 | } | 108 | } |
| 109 | + .backgroundColor(Color.Black) | ||
| 108 | .width('100%') | 110 | .width('100%') |
| 109 | .height('100%') | 111 | .height('100%') |
| 110 | } | 112 | } |
| @@ -207,6 +209,7 @@ export struct VideoChannelPage { | @@ -207,6 +209,7 @@ export struct VideoChannelPage { | ||
| 207 | top: px2vp(this.topSafeHeight) | 209 | top: px2vp(this.topSafeHeight) |
| 208 | }) | 210 | }) |
| 209 | .visibility(this.displayDirection === DisplayDirection.VERTICAL ? Visibility.Visible : Visibility.None) | 211 | .visibility(this.displayDirection === DisplayDirection.VERTICAL ? Visibility.Visible : Visibility.None) |
| 212 | + // .backgroundColor(Color.Blue) | ||
| 210 | .linearGradient({ | 213 | .linearGradient({ |
| 211 | colors: [ | 214 | colors: [ |
| 212 | ['rgba(18, 18, 18, 0.5)', 0.0], ['rgba(18, 18, 18, 0.0)', 1.0] | 215 | ['rgba(18, 18, 18, 0.5)', 0.0], ['rgba(18, 18, 18, 0.0)', 1.0] |
| @@ -269,6 +272,7 @@ export struct VideoChannelPage { | @@ -269,6 +272,7 @@ export struct VideoChannelPage { | ||
| 269 | } | 272 | } |
| 270 | }, (item: TopNavDTO) => item.channelId + '') | 273 | }, (item: TopNavDTO) => item.channelId + '') |
| 271 | } | 274 | } |
| 275 | + .position({y:3})//顶部遮罩会空出一点,临时解决 | ||
| 272 | .indicator(false) | 276 | .indicator(false) |
| 273 | .loop(false) | 277 | .loop(false) |
| 274 | .width('100%') | 278 | .width('100%') |
-
Please register or login to post a comment