wangliang_wd

feat:优化人民号主页时间显示问题

... ... @@ -77,6 +77,7 @@ export class ContentDTO implements BaseDTO {
relType: string = '';
newsTitle: string = ''; //单图卡/2行标题/3行标题
publishTime: string = '';
updateTime: string = '';
publishTimestamp: string = '';
visitorComment: number = 0;
fullColumnImgUrls: FullColumnImgUrlDTO[] = [];
... ...
... ... @@ -64,10 +64,11 @@ export struct CardSourceInfo {
}
handleTimeStr() {
let time = this.contentDTO.updateTime && this.contentDTO.updateTime.length > 0?this.contentDTO.updateTime:this.contentDTO.publishTime
let str = DateTimeUtils.getCommentTime(
this.contentDTO.publishTime.includes(' ')
? Number.parseFloat(new Date(this.contentDTO.publishTime).getTime().toString())
: Number.parseFloat(this.contentDTO.publishTime)
time.includes(' ')
? Number.parseFloat(new Date(time).getTime().toString())
: Number.parseFloat(time)
)
console.log('cj2024 str', str)
return str
... ...
... ... @@ -262,7 +262,7 @@ export struct PeopleShipHomeArticleListComponent {
// }
// contentDTO.customSchedulePublishTime = element.contentPublishTasks.firstObject.schedulePublishTime;
contentDTO.fullColumnImgUrls = this.fullColumnImgUrls(element);
contentDTO.updateTime = element.updateTime
let rmhInfo = this.convertToRmhInfoWithAccountModel()
if (rmhInfo) {
contentDTO.rmhInfo = rmhInfo;
... ...