chenqs

fix |> 修复人民号tab页头背景换肤与安卓和iOS不一致问题

... ... @@ -92,6 +92,7 @@ export struct TopNavigationComponentNew {
channelId: navItem?.channelId + '',
autoRefresh: this.autoRefresh2Page
})
.backgroundColor(Color.White)
} else {
if (!this.isBroadcast(navItem) && !this.isLayout(navItem)) {
if (CompUtils.isNews(this.navItem)) {
... ... @@ -172,7 +173,8 @@ export struct TopNavigationComponentNew {
channelId: navItem?.channelId + '',
autoRefresh: this.autoRefresh2Page,
isMourning: mourningCheckFn(`${navItem.channelId}`),
});
})
.backgroundColor(CompUtils.isRMH(this.navItem)?Color.White:Color.Transparent)
}
/**
... ... @@ -259,10 +261,11 @@ export struct TopNavigationComponentNew {
@Builder
tabBar() {
// 顶部背景图
Image(this.navItem.backgroundUrl).width('100%').height('100%')
.grayscale(this.GrayManage.get().isMourning() ? 1 : 0)
if (CompUtils.isNews(this.navItem)) {
// 顶部背景图
Image(this.navItem.backgroundUrl).width('100%')
.grayscale(this.GrayManage.get().isMourning() ? 1 : 0)
// 顶部搜索、日报logo、早晚报
this.topBar()
... ... @@ -306,10 +309,10 @@ export struct TopNavigationComponentNew {
})
} else {
// 顶部背景图
Image(this.navItem.backgroundUrl)
.width('100%')
.height(this.backgroundImageH)
.grayscale(this.GrayManage.get().isMourning() ? 1 : 0)
// Image(this.navItem.backgroundUrl)
// .width('100%')
// .height(this.backgroundImageH)
// .grayscale(this.GrayManage.get().isMourning() ? 1 : 0)
Row() {
Image($r('app.media.icon_search'))
... ...