wangliang_wd

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

... ... @@ -58,6 +58,7 @@ export struct FollowChildComponent{
.fontColor($r('app.color.color_222222'))
.maxLines(1)
.margin({bottom: 2})
.textOverflow({ overflow: TextOverflow.Ellipsis })
Text(`粉丝${this.data.cnFansNum}`)
.fontColor($r('app.color.color_B0B0B0'))
... ...
... ... @@ -296,17 +296,16 @@ export struct PeopleShipHomeArticleListComponent {
}
// contentDTO.shareInfo = [self.contentShare.firstObject convertToShareInfo];
// contentDTO.shareInfo.shareUrl = self.shareUrl;
if (element.createTime.length > 0) {
contentDTO.publishTime = this.convertPublishTimeWith(element.createTime);
} else if (element.updateTime.length > 0) {
if (element.updateTime.length > 0) {
contentDTO.publishTime = this.convertPublishTimeWith(element.updateTime);
}else if (element.publishTime.length > 0) {
contentDTO.publishTime = this.convertPublishTimeWith(element.publishTime);
} else if (element.firstPublishTime.length > 0) {
contentDTO.publishTime = this.convertPublishTimeWith(element.firstPublishTime);
} else if (element.publishTime.length > 0) {
contentDTO.publishTime = this.convertPublishTimeWith(element.publishTime);
} else if (element.createTime.length > 0) {
contentDTO.publishTime = this.convertPublishTimeWith(element.createTime);
}
//图集数量
if (element.mainPicCount) {
contentDTO.photoNum = element.mainPicCount;
... ...