wangliang_wd

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

@@ -58,6 +58,7 @@ export struct FollowChildComponent{ @@ -58,6 +58,7 @@ export struct FollowChildComponent{
58 .fontColor($r('app.color.color_222222')) 58 .fontColor($r('app.color.color_222222'))
59 .maxLines(1) 59 .maxLines(1)
60 .margin({bottom: 2}) 60 .margin({bottom: 2})
  61 + .textOverflow({ overflow: TextOverflow.Ellipsis })
61 62
62 Text(`粉丝${this.data.cnFansNum}`) 63 Text(`粉丝${this.data.cnFansNum}`)
63 .fontColor($r('app.color.color_B0B0B0')) 64 .fontColor($r('app.color.color_B0B0B0'))
@@ -296,17 +296,16 @@ export struct PeopleShipHomeArticleListComponent { @@ -296,17 +296,16 @@ export struct PeopleShipHomeArticleListComponent {
296 } 296 }
297 // contentDTO.shareInfo = [self.contentShare.firstObject convertToShareInfo]; 297 // contentDTO.shareInfo = [self.contentShare.firstObject convertToShareInfo];
298 // contentDTO.shareInfo.shareUrl = self.shareUrl; 298 // contentDTO.shareInfo.shareUrl = self.shareUrl;
299 - if (element.createTime.length > 0) {  
300 - contentDTO.publishTime = this.convertPublishTimeWith(element.createTime);  
301 - } else if (element.updateTime.length > 0) { 299 + if (element.updateTime.length > 0) {
302 contentDTO.publishTime = this.convertPublishTimeWith(element.updateTime); 300 contentDTO.publishTime = this.convertPublishTimeWith(element.updateTime);
  301 + }else if (element.publishTime.length > 0) {
  302 + contentDTO.publishTime = this.convertPublishTimeWith(element.publishTime);
303 } else if (element.firstPublishTime.length > 0) { 303 } else if (element.firstPublishTime.length > 0) {
304 contentDTO.publishTime = this.convertPublishTimeWith(element.firstPublishTime); 304 contentDTO.publishTime = this.convertPublishTimeWith(element.firstPublishTime);
305 - } else if (element.publishTime.length > 0) {  
306 - contentDTO.publishTime = this.convertPublishTimeWith(element.publishTime); 305 + } else if (element.createTime.length > 0) {
  306 + contentDTO.publishTime = this.convertPublishTimeWith(element.createTime);
307 } 307 }
308 308
309 -  
310 //图集数量 309 //图集数量
311 if (element.mainPicCount) { 310 if (element.mainPicCount) {
312 contentDTO.photoNum = element.mainPicCount; 311 contentDTO.photoNum = element.mainPicCount;