Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chenqs
2024-08-07 16:44:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
71a170a021b4922685a0aefb1cf097b8aa218d11
71a170a0
1 parent
86d2a5f9
fix |> 修复人民号tab页头背景换肤与安卓和iOS不一致问题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
View file @
71a170a
...
...
@@ -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() {
if (CompUtils.isNews(this.navItem)) {
// 顶部背景图
Image(this.navItem.backgroundUrl).width
('100%')
Image(this.navItem.backgroundUrl).width('100%').height
('100%')
.grayscale(this.GrayManage.get().isMourning() ? 1 : 0)
if (CompUtils.isNews(this.navItem)) {
// 顶部搜索、日报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'))
...
...
Please
register
or
login
to post a comment