Showing
1 changed file
with
6 additions
and
6 deletions
| @@ -20,18 +20,12 @@ export struct CardSourceInfo { | @@ -20,18 +20,12 @@ export struct CardSourceInfo { | ||
| 20 | .fontColor($r("app.color.color_B0B0B0")) | 20 | .fontColor($r("app.color.color_B0B0B0")) |
| 21 | .maxLines(1) | 21 | .maxLines(1) |
| 22 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 22 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 23 | - Image($r("app.media.point")) | ||
| 24 | - .width(16) | ||
| 25 | - .height(16) | ||
| 26 | } else if (this.contentDTO.source) { | 23 | } else if (this.contentDTO.source) { |
| 27 | Text(`${this.contentDTO.source}`) | 24 | Text(`${this.contentDTO.source}`) |
| 28 | .fontSize($r("app.float.font_size_12")) | 25 | .fontSize($r("app.float.font_size_12")) |
| 29 | .fontColor($r("app.color.color_B0B0B0")) | 26 | .fontColor($r("app.color.color_B0B0B0")) |
| 30 | .maxLines(1) | 27 | .maxLines(1) |
| 31 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 28 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 32 | - Image($r("app.media.point")) | ||
| 33 | - .width(16) | ||
| 34 | - .height(16) | ||
| 35 | } | 29 | } |
| 36 | // 新闻tab下的卡片,2天之前的不显示时间。但是如果是搜索情况下展示的卡片,显示时间 | 30 | // 新闻tab下的卡片,2天之前的不显示时间。但是如果是搜索情况下展示的卡片,显示时间 |
| 37 | if (this.contentDTO.isSearch || !this.contentDTO.isSearch && DateTimeUtils.getCommentTime | 31 | if (this.contentDTO.isSearch || !this.contentDTO.isSearch && DateTimeUtils.getCommentTime |
| @@ -40,6 +34,12 @@ export struct CardSourceInfo { | @@ -40,6 +34,12 @@ export struct CardSourceInfo { | ||
| 40 | .contentDTO.publishTime)) | 34 | .contentDTO.publishTime)) |
| 41 | .indexOf | 35 | .indexOf |
| 42 | ('-') === -1) { | 36 | ('-') === -1) { |
| 37 | + if(this.contentDTO.rmhPlatform === 1 && this.contentDTO.rmhInfo?.rmhName || this | ||
| 38 | + .contentDTO.rmhPlatform !== 1 && this.contentDTO.source) { | ||
| 39 | + Image($r("app.media.point")) | ||
| 40 | + .width(16) | ||
| 41 | + .height(16) | ||
| 42 | + } | ||
| 43 | Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.contentDTO.publishTime))) | 43 | Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.contentDTO.publishTime))) |
| 44 | .fontSize($r("app.float.font_size_12")) | 44 | .fontSize($r("app.float.font_size_12")) |
| 45 | .fontColor($r("app.color.color_B0B0B0")) | 45 | .fontColor($r("app.color.color_B0B0B0")) |
-
Please register or login to post a comment