Showing
1 changed file
with
4 additions
and
5 deletions
| @@ -140,7 +140,7 @@ export struct CardSourceInfo { | @@ -140,7 +140,7 @@ export struct CardSourceInfo { | ||
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | // 评论数 | 142 | // 评论数 |
| 143 | - if (!this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && | 143 | + if ((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) && !this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && |
| 144 | this.showCommentNum()) { | 144 | this.showCommentNum()) { |
| 145 | Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`) | 145 | Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`) |
| 146 | .fontSize($r("app.float.font_size_11")) | 146 | .fontSize($r("app.float.font_size_11")) |
| @@ -148,7 +148,7 @@ export struct CardSourceInfo { | @@ -148,7 +148,7 @@ export struct CardSourceInfo { | ||
| 148 | .flexShrink(0) | 148 | .flexShrink(0) |
| 149 | } else { | 149 | } else { |
| 150 | 150 | ||
| 151 | - if (this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) { | 151 | + if ((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) && this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) { |
| 152 | Text(`${this.handlerNum(this.contentDTO.interactData?.commentNum.toString())}评`) | 152 | Text(`${this.handlerNum(this.contentDTO.interactData?.commentNum.toString())}评`) |
| 153 | .fontSize($r("app.float.font_size_11")) | 153 | .fontSize($r("app.float.font_size_11")) |
| 154 | .fontColor($r("app.color.color_B0B0B0")) | 154 | .fontColor($r("app.color.color_B0B0B0")) |
| @@ -159,7 +159,6 @@ export struct CardSourceInfo { | @@ -159,7 +159,6 @@ export struct CardSourceInfo { | ||
| 159 | 159 | ||
| 160 | } | 160 | } |
| 161 | .width(CommonConstants.FULL_WIDTH) | 161 | .width(CommonConstants.FULL_WIDTH) |
| 162 | - .height(16) | ||
| 163 | .margin({ top: this.viewShowData ? 8 : 0 }) | 162 | .margin({ top: this.viewShowData ? 8 : 0 }) |
| 164 | } | 163 | } |
| 165 | 164 | ||
| @@ -202,11 +201,11 @@ export struct CardSourceInfo { | @@ -202,11 +201,11 @@ export struct CardSourceInfo { | ||
| 202 | } | 201 | } |
| 203 | 202 | ||
| 204 | // 评论数 | 203 | // 评论数 |
| 205 | - if (!this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && | 204 | + if ((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) && !this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && |
| 206 | this.showCommentNum()) { | 205 | this.showCommentNum()) { |
| 207 | have = true | 206 | have = true |
| 208 | } else { | 207 | } else { |
| 209 | - if (this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) { | 208 | + if ((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) && this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) { |
| 210 | have = true | 209 | have = true |
| 211 | } | 210 | } |
| 212 | } | 211 | } |
-
Please register or login to post a comment