卡片来源显示规则调整未实现,单图卡,小视频卡,来源需要控制16个字,大图卡,三图卡,来源可以展示一行的就不需要控制16个字
Showing
1 changed file
with
13 additions
and
11 deletions
| @@ -147,21 +147,23 @@ export struct CardSourceInfo { | @@ -147,21 +147,23 @@ export struct CardSourceInfo { | ||
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | // 评论数 | 149 | // 评论数 |
| 150 | - if (this.contentDTO.objectType !=='2' && !this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && | ||
| 151 | - this.showCommentNum()) { | ||
| 152 | - Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`) | ||
| 153 | - .fontSize($r("app.float.font_size_11")) | ||
| 154 | - .fontColor($r("app.color.color_B0B0B0")) | ||
| 155 | - .flexShrink(0) | ||
| 156 | - } else { | ||
| 157 | - | ||
| 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())}评`) | 150 | + if (!this.contentDTO.cornerMark && !this.contentDTO.corner) { |
| 151 | + if (this.contentDTO.objectType !=='2' && !this.isCompInnerSource && Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && | ||
| 152 | + this.showCommentNum()) { | ||
| 153 | + Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`) | ||
| 160 | .fontSize($r("app.float.font_size_11")) | 154 | .fontSize($r("app.float.font_size_11")) |
| 161 | .fontColor($r("app.color.color_B0B0B0")) | 155 | .fontColor($r("app.color.color_B0B0B0")) |
| 162 | .flexShrink(0) | 156 | .flexShrink(0) |
| 163 | - } | 157 | + } else { |
| 164 | 158 | ||
| 159 | + if (this.contentDTO.objectType !=='2' && this.isCompInnerSource && this.contentDTO.interactData && this.contentDTO.interactData?.commentNum > 0) { | ||
| 160 | + Text(`${this.handlerNum(this.contentDTO.interactData?.commentNum.toString())}评`) | ||
| 161 | + .fontSize($r("app.float.font_size_11")) | ||
| 162 | + .fontColor($r("app.color.color_B0B0B0")) | ||
| 163 | + .flexShrink(0) | ||
| 164 | + } | ||
| 165 | + | ||
| 166 | + } | ||
| 165 | } | 167 | } |
| 166 | 168 | ||
| 167 | } | 169 | } |
-
Please register or login to post a comment