Showing
1 changed file
with
21 additions
and
18 deletions
| @@ -156,33 +156,36 @@ export struct CardSourceInfo { | @@ -156,33 +156,36 @@ 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 && | ||
| 160 | - this.contentDTO.rmhInfo?.rmhName != '') || (this.contentDTO.source && this.contentDTO.source != '')) && | ||
| 161 | - (this.getContentDtoBean()?.interactData?.commentNum | ||
| 162 | - // || DateTimeUtils.getCommentTime(Number.parseFloat(this.contentDTO.publishTime)) != '' | ||
| 163 | - || (this.contentDTO.isSearch || this.contentDTO.isCollection || | ||
| 164 | - !this.contentDTO.isSearch && DateTimeUtils.getCommentTime | ||
| 165 | - (Number | ||
| 166 | - .parseFloat(this | ||
| 167 | - .contentDTO.publishTime)) | ||
| 168 | - .indexOf | ||
| 169 | - ('-') === -1) | ||
| 170 | - )) { | ||
| 171 | - | ||
| 172 | - Image($r("app.media.point")) | ||
| 173 | - .width(11) | ||
| 174 | - .height(11) | ||
| 175 | - .visibility(!this.isEllipsisActive ? Visibility.Visible : Visibility.Hidden) | 159 | + if (this.showTime()) { |
| 160 | + if (((this.contentDTO.rmhPlatform === 1 || this.contentDTO.source)) || ((this.contentDTO.rmhPlatform === 1 && this.contentDTO.rmhInfo?.rmhName && | ||
| 161 | + this.contentDTO.rmhInfo?.rmhName != '') || (this.contentDTO.source && this.contentDTO.source != '')) && | ||
| 162 | + (this.getContentDtoBean()?.interactData?.commentNum | ||
| 163 | + // || DateTimeUtils.getCommentTime(Number.parseFloat(this.contentDTO.publishTime)) != '' | ||
| 164 | + || (this.contentDTO.isSearch || this.contentDTO.isCollection || | ||
| 165 | + !this.contentDTO.isSearch && DateTimeUtils.getCommentTime | ||
| 166 | + (Number | ||
| 167 | + .parseFloat(this | ||
| 168 | + .contentDTO.publishTime)) | ||
| 169 | + .indexOf | ||
| 170 | + ('-') === -1) | ||
| 171 | + )) { | ||
| 172 | + | ||
| 173 | + Image($r("app.media.point")) | ||
| 174 | + .width(11) | ||
| 175 | + .height(11) | ||
| 176 | + .visibility(!this.isEllipsisActive ? Visibility.Visible : Visibility.Hidden) | ||
| 176 | 177 | ||
| 178 | + } | ||
| 177 | } | 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