Showing
1 changed file
with
4 additions
and
4 deletions
| @@ -147,7 +147,7 @@ export struct CardSourceInfo { | @@ -147,7 +147,7 @@ export struct CardSourceInfo { | ||
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | // 评论数 | 149 | // 评论数 |
| 150 | - if ((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) && !this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && | 150 | + if (this.contentDTO.objectType !=='2' && !this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && |
| 151 | this.showCommentNum()) { | 151 | this.showCommentNum()) { |
| 152 | Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`) | 152 | Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`) |
| 153 | .fontSize($r("app.float.font_size_11")) | 153 | .fontSize($r("app.float.font_size_11")) |
| @@ -155,7 +155,7 @@ export struct CardSourceInfo { | @@ -155,7 +155,7 @@ export struct CardSourceInfo { | ||
| 155 | .flexShrink(0) | 155 | .flexShrink(0) |
| 156 | } else { | 156 | } else { |
| 157 | 157 | ||
| 158 | - if ((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) && this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) { | 158 | + if (this.contentDTO.objectType !=='2' && this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) { |
| 159 | Text(`${this.handlerNum(this.contentDTO.interactData?.commentNum.toString())}评`) | 159 | Text(`${this.handlerNum(this.contentDTO.interactData?.commentNum.toString())}评`) |
| 160 | .fontSize($r("app.float.font_size_11")) | 160 | .fontSize($r("app.float.font_size_11")) |
| 161 | .fontColor($r("app.color.color_B0B0B0")) | 161 | .fontColor($r("app.color.color_B0B0B0")) |
| @@ -208,11 +208,11 @@ export struct CardSourceInfo { | @@ -208,11 +208,11 @@ export struct CardSourceInfo { | ||
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | // 评论数 | 210 | // 评论数 |
| 211 | - if ((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) && !this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && | 211 | + if (this.contentDTO.objectType !=='2' && !this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && |
| 212 | this.showCommentNum()) { | 212 | this.showCommentNum()) { |
| 213 | have = true | 213 | have = true |
| 214 | } else { | 214 | } else { |
| 215 | - if ((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) && this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) { | 215 | + if (this.contentDTO.objectType !=='2' && this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) { |
| 216 | have = true | 216 | have = true |
| 217 | } | 217 | } |
| 218 | } | 218 | } |
-
Please register or login to post a comment