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
陈剑华
2024-06-26 15:05:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f84105538260af69461007630432f319f8e77a93
f8410553
1 parent
ac11b204
fix: 19210 UI还原问题-【生产】进入财经频道,视频卡,多显示了25评文案
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardSourceInfo.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardSourceInfo.ets
View file @
f841055
...
...
@@ -140,7 +140,7 @@ export struct CardSourceInfo {
}
// 评论数
if (!this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 &&
if (
(this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) &&
!this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 &&
this.showCommentNum()) {
Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`)
.fontSize($r("app.float.font_size_11"))
...
...
@@ -148,7 +148,7 @@ export struct CardSourceInfo {
.flexShrink(0)
} else {
if (this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) {
if (
(this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) &&
this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) {
Text(`${this.handlerNum(this.contentDTO.interactData?.commentNum.toString())}评`)
.fontSize($r("app.float.font_size_11"))
.fontColor($r("app.color.color_B0B0B0"))
...
...
@@ -159,7 +159,6 @@ export struct CardSourceInfo {
}
.width(CommonConstants.FULL_WIDTH)
.height(16)
.margin({ top: this.viewShowData ? 8 : 0 })
}
...
...
@@ -202,11 +201,11 @@ export struct CardSourceInfo {
}
// 评论数
if (!this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 &&
if (
(this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) &&
!this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 &&
this.showCommentNum()) {
have = true
} else {
if (this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) {
if (
(this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) &&
this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) {
have = true
}
}
...
...
Please
register
or
login
to post a comment