Showing
1 changed file
with
11 additions
and
8 deletions
| @@ -92,6 +92,7 @@ export struct TopNavigationComponentNew { | @@ -92,6 +92,7 @@ export struct TopNavigationComponentNew { | ||
| 92 | channelId: navItem?.channelId + '', | 92 | channelId: navItem?.channelId + '', |
| 93 | autoRefresh: this.autoRefresh2Page | 93 | autoRefresh: this.autoRefresh2Page |
| 94 | }) | 94 | }) |
| 95 | + .backgroundColor(Color.White) | ||
| 95 | } else { | 96 | } else { |
| 96 | if (!this.isBroadcast(navItem) && !this.isLayout(navItem)) { | 97 | if (!this.isBroadcast(navItem) && !this.isLayout(navItem)) { |
| 97 | if (CompUtils.isNews(this.navItem)) { | 98 | if (CompUtils.isNews(this.navItem)) { |
| @@ -172,7 +173,8 @@ export struct TopNavigationComponentNew { | @@ -172,7 +173,8 @@ export struct TopNavigationComponentNew { | ||
| 172 | channelId: navItem?.channelId + '', | 173 | channelId: navItem?.channelId + '', |
| 173 | autoRefresh: this.autoRefresh2Page, | 174 | autoRefresh: this.autoRefresh2Page, |
| 174 | isMourning: mourningCheckFn(`${navItem.channelId}`), | 175 | isMourning: mourningCheckFn(`${navItem.channelId}`), |
| 175 | - }); | 176 | + }) |
| 177 | + .backgroundColor(CompUtils.isRMH(this.navItem)?Color.White:Color.Transparent) | ||
| 176 | } | 178 | } |
| 177 | 179 | ||
| 178 | /** | 180 | /** |
| @@ -259,10 +261,11 @@ export struct TopNavigationComponentNew { | @@ -259,10 +261,11 @@ export struct TopNavigationComponentNew { | ||
| 259 | @Builder | 261 | @Builder |
| 260 | tabBar() { | 262 | tabBar() { |
| 261 | 263 | ||
| 264 | + // 顶部背景图 | ||
| 265 | + Image(this.navItem.backgroundUrl).width('100%').height('100%') | ||
| 266 | + .grayscale(this.GrayManage.get().isMourning() ? 1 : 0) | ||
| 267 | + | ||
| 262 | if (CompUtils.isNews(this.navItem)) { | 268 | if (CompUtils.isNews(this.navItem)) { |
| 263 | - // 顶部背景图 | ||
| 264 | - Image(this.navItem.backgroundUrl).width('100%') | ||
| 265 | - .grayscale(this.GrayManage.get().isMourning() ? 1 : 0) | ||
| 266 | // 顶部搜索、日报logo、早晚报 | 269 | // 顶部搜索、日报logo、早晚报 |
| 267 | this.topBar() | 270 | this.topBar() |
| 268 | 271 | ||
| @@ -306,10 +309,10 @@ export struct TopNavigationComponentNew { | @@ -306,10 +309,10 @@ export struct TopNavigationComponentNew { | ||
| 306 | }) | 309 | }) |
| 307 | } else { | 310 | } else { |
| 308 | // 顶部背景图 | 311 | // 顶部背景图 |
| 309 | - Image(this.navItem.backgroundUrl) | ||
| 310 | - .width('100%') | ||
| 311 | - .height(this.backgroundImageH) | ||
| 312 | - .grayscale(this.GrayManage.get().isMourning() ? 1 : 0) | 312 | + // Image(this.navItem.backgroundUrl) |
| 313 | + // .width('100%') | ||
| 314 | + // .height(this.backgroundImageH) | ||
| 315 | + // .grayscale(this.GrayManage.get().isMourning() ? 1 : 0) | ||
| 313 | 316 | ||
| 314 | Row() { | 317 | Row() { |
| 315 | Image($r('app.media.icon_search')) | 318 | Image($r('app.media.icon_search')) |
-
Please register or login to post a comment