Showing
1 changed file
with
5 additions
and
2 deletions
| @@ -156,7 +156,8 @@ export struct CardSourceInfo { | @@ -156,7 +156,8 @@ export struct CardSourceInfo { | ||
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | // 点 | 158 | // 点 |
| 159 | - if ((this.showTime()&&(this.contentDTO.rmhPlatform === 1 || this.contentDTO.source)) || ((this.contentDTO.rmhPlatform === 1 && this.contentDTO.rmhInfo?.rmhName && | 159 | + if (this.showTime()) { |
| 160 | + if (((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source)) || ((this.contentDTO.rmhPlatform === 1 && this.contentDTO.rmhInfo?.rmhName && | ||
| 160 | this.contentDTO.rmhInfo?.rmhName != '') || (this.contentDTO.source && this.contentDTO.source != '')) && | 161 | this.contentDTO.rmhInfo?.rmhName != '') || (this.contentDTO.source && this.contentDTO.source != '')) && |
| 161 | (this.getContentDtoBean()?.interactData?.commentNum | 162 | (this.getContentDtoBean()?.interactData?.commentNum |
| 162 | // || DateTimeUtils.getCommentTime(Number.parseFloat(this.contentDTO.publishTime)) != '' | 163 | // || DateTimeUtils.getCommentTime(Number.parseFloat(this.contentDTO.publishTime)) != '' |
| @@ -175,14 +176,16 @@ export struct CardSourceInfo { | @@ -175,14 +176,16 @@ export struct CardSourceInfo { | ||
| 175 | .visibility(!this.isEllipsisActive ? Visibility.Visible : Visibility.Hidden) | 176 | .visibility(!this.isEllipsisActive ? Visibility.Visible : Visibility.Hidden) |
| 176 | 177 | ||
| 177 | } | 178 | } |
| 179 | + } | ||
| 178 | 180 | ||
| 179 | // 发布日期 | 181 | // 发布日期 |
| 180 | - if (this.showTime() && !this.isEllipsisActive) { | 182 | + if (this.showTime()) { |
| 181 | Text(this.handleTimeStr()) | 183 | Text(this.handleTimeStr()) |
| 182 | .fontSize($r("app.float.font_size_11")) | 184 | .fontSize($r("app.float.font_size_11")) |
| 183 | .fontColor($r("app.color.color_B0B0B0")) | 185 | .fontColor($r("app.color.color_B0B0B0")) |
| 184 | .flexShrink(0) | 186 | .flexShrink(0) |
| 185 | .margin({ right: 4 }) | 187 | .margin({ right: 4 }) |
| 188 | + .visibility(!this.isEllipsisActive ? Visibility.Visible : Visibility.Hidden) | ||
| 186 | } | 189 | } |
| 187 | 190 | ||
| 188 | // 评论数 | 191 | // 评论数 |
-
Please register or login to post a comment