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:56:05 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
39b55a41f8f1eb856c269a0fe07ab18b2cfa3b69
39b55a41
2 parents
38520f6f
c336f6f7
Merge remote-tracking branch 'origin/main'
Show 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 @
39b55a4
...
...
@@ -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