Showing
2 changed files
with
5 additions
and
4 deletions
| @@ -28,9 +28,6 @@ export struct CardSourceInfo { | @@ -28,9 +28,6 @@ export struct CardSourceInfo { | ||
| 28 | .fontColor($r("app.color.color_B0B0B0")) | 28 | .fontColor($r("app.color.color_B0B0B0")) |
| 29 | .maxLines(1) | 29 | .maxLines(1) |
| 30 | .textOverflow({overflow: TextOverflow.Ellipsis}) | 30 | .textOverflow({overflow: TextOverflow.Ellipsis}) |
| 31 | - Image($r("app.media.point")) | ||
| 32 | - .width(16) | ||
| 33 | - .height(16) | ||
| 34 | } | 31 | } |
| 35 | // 新闻tab下的卡片,2天之前的不显示时间。但是如果是搜索情况下展示的卡片,显示时间 | 32 | // 新闻tab下的卡片,2天之前的不显示时间。但是如果是搜索情况下展示的卡片,显示时间 |
| 36 | if(this.contentDTO.isSearch || !this.contentDTO.isSearch && DateTimeUtils.getCommentTime | 33 | if(this.contentDTO.isSearch || !this.contentDTO.isSearch && DateTimeUtils.getCommentTime |
| @@ -39,6 +36,9 @@ export struct CardSourceInfo { | @@ -39,6 +36,9 @@ export struct CardSourceInfo { | ||
| 39 | .contentDTO.publishTime)) | 36 | .contentDTO.publishTime)) |
| 40 | .indexOf | 37 | .indexOf |
| 41 | ('-') === -1) { | 38 | ('-') === -1) { |
| 39 | + Image($r("app.media.point")) | ||
| 40 | + .width(16) | ||
| 41 | + .height(16) | ||
| 42 | Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.contentDTO.publishTime))) | 42 | Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.contentDTO.publishTime))) |
| 43 | .fontSize($r("app.float.font_size_12")) | 43 | .fontSize($r("app.float.font_size_12")) |
| 44 | .fontColor($r("app.color.color_B0B0B0")) | 44 | .fontColor($r("app.color.color_B0B0B0")) |
| @@ -158,7 +158,8 @@ export struct SearchResultContentComponent{ | @@ -158,7 +158,8 @@ export struct SearchResultContentComponent{ | ||
| 158 | interactData: {} as InteractDataDTO, | 158 | interactData: {} as InteractDataDTO, |
| 159 | corner: '', | 159 | corner: '', |
| 160 | rmhPlatform: 0, | 160 | rmhPlatform: 0, |
| 161 | - newTags: '' | 161 | + newTags: '', |
| 162 | + isSearch: true | ||
| 162 | } | 163 | } |
| 163 | 164 | ||
| 164 | this.data.push(contentDTO) | 165 | this.data.push(contentDTO) |
-
Please register or login to post a comment