Showing
3 changed files
with
6 additions
and
4 deletions
| @@ -77,6 +77,7 @@ export class ContentDTO implements BaseDTO { | @@ -77,6 +77,7 @@ export class ContentDTO implements BaseDTO { | ||
| 77 | relType: string = ''; | 77 | relType: string = ''; |
| 78 | newsTitle: string = ''; //单图卡/2行标题/3行标题 | 78 | newsTitle: string = ''; //单图卡/2行标题/3行标题 |
| 79 | publishTime: string = ''; | 79 | publishTime: string = ''; |
| 80 | + updateTime: string = ''; | ||
| 80 | publishTimestamp: string = ''; | 81 | publishTimestamp: string = ''; |
| 81 | visitorComment: number = 0; | 82 | visitorComment: number = 0; |
| 82 | fullColumnImgUrls: FullColumnImgUrlDTO[] = []; | 83 | fullColumnImgUrls: FullColumnImgUrlDTO[] = []; |
| @@ -64,10 +64,11 @@ export struct CardSourceInfo { | @@ -64,10 +64,11 @@ export struct CardSourceInfo { | ||
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | handleTimeStr() { | 66 | handleTimeStr() { |
| 67 | + let time = this.contentDTO.updateTime && this.contentDTO.updateTime.length > 0?this.contentDTO.updateTime:this.contentDTO.publishTime | ||
| 67 | let str = DateTimeUtils.getCommentTime( | 68 | let str = DateTimeUtils.getCommentTime( |
| 68 | - this.contentDTO.publishTime.includes(' ') | ||
| 69 | - ? Number.parseFloat(new Date(this.contentDTO.publishTime).getTime().toString()) | ||
| 70 | - : Number.parseFloat(this.contentDTO.publishTime) | 69 | + time.includes(' ') |
| 70 | + ? Number.parseFloat(new Date(time).getTime().toString()) | ||
| 71 | + : Number.parseFloat(time) | ||
| 71 | ) | 72 | ) |
| 72 | console.log('cj2024 str', str) | 73 | console.log('cj2024 str', str) |
| 73 | return str | 74 | return str |
| @@ -262,7 +262,7 @@ export struct PeopleShipHomeArticleListComponent { | @@ -262,7 +262,7 @@ export struct PeopleShipHomeArticleListComponent { | ||
| 262 | // } | 262 | // } |
| 263 | // contentDTO.customSchedulePublishTime = element.contentPublishTasks.firstObject.schedulePublishTime; | 263 | // contentDTO.customSchedulePublishTime = element.contentPublishTasks.firstObject.schedulePublishTime; |
| 264 | contentDTO.fullColumnImgUrls = this.fullColumnImgUrls(element); | 264 | contentDTO.fullColumnImgUrls = this.fullColumnImgUrls(element); |
| 265 | - | 265 | + contentDTO.updateTime = element.updateTime |
| 266 | let rmhInfo = this.convertToRmhInfoWithAccountModel() | 266 | let rmhInfo = this.convertToRmhInfoWithAccountModel() |
| 267 | if (rmhInfo) { | 267 | if (rmhInfo) { |
| 268 | contentDTO.rmhInfo = rmhInfo; | 268 | contentDTO.rmhInfo = rmhInfo; |
-
Please register or login to post a comment