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
yangchenggong1_wd
2024-09-25 10:47:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
525c131882be75fca595c769e1c3ec9f93132006
525c1318
1 parent
a7c589ed
fix |> 20541 搜索环球时报,搜索结果中采集的动态数据详情页不应展示人民日报logo
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
View file @
525c131
...
...
@@ -229,7 +229,7 @@ export struct DynamicDetailComponent {
.margin({ right: $r('app.float.margin_6') })
Blank()
if (!StringUtils.isEmpty(this.followStatus)) {
if (
(this.contentDetailData.rmhPlatform == 1 && this.contentDetailData?.rmhInfo?.userType != "5") &&
!StringUtils.isEmpty(this.followStatus)) {
if (this.followStatus == '0') {
Row() {
Blank().layoutWeight(1)
...
...
@@ -685,10 +685,24 @@ export struct DynamicDetailComponent {
@Builder topNav() {
//logo、日期
Row() {
Image($r('app.media.ic_article_rmh'))
.width($r('app.float.margin_80'))
.height($r('app.float.margin_28'))
.margin({ left: $r('app.float.margin_16') })
if (this.contentDetailData.rmhPlatform == 1) { // 人民号
if (this.contentDetailData?.rmhInfo?.userType == "5") { // 内容源账号
Blank().height(1)
} else {
Image($r('app.media.ic_article_rmh'))
.width($r('app.float.margin_80'))
.height($r('app.float.margin_28'))
.margin({ left: $r('app.float.margin_16') })
}
} else if (this.contentDetailData.rmhPlatform == 2) { // 普通用户
Blank().height(1)
} else {
Image($r('app.media.logo_rmrb'))
.width($r('app.float.margin_80'))
.height($r('app.float.margin_28'))
.margin({ left: $r('app.float.margin_16') })
}
Blank()
Text(this.publishTime)
.fontColor($r('app.color.color_B0B0B0'))
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
View file @
525c131
...
...
@@ -211,7 +211,7 @@ export struct RmhTitle {
.width('100%')
Blank()
if (this.rmhInfo?.cnIsAttention) {
if (this.rmhInfo?.cnIsAttention
&& this.rmhInfo?.userType != "5"
) {
Column() {
Row(){
if (Number(this.followStatus) === 0) {
...
...
Please
register
or
login
to post a comment