wangliang_wd

feat:优化早晚报展示

... ... @@ -56,7 +56,7 @@ export struct topicInfoView {
contentDTO.linkUrl = this.frontLinkObject?.linkUrl
ProcessUtils.processPage(contentDTO)
}
})
}).width(80)
.alignRules({
left: { anchor: "__container__", align: HorizontalAlign.Start },
bottom: { anchor: "__container__", align: VerticalAlign.Bottom }
... ...
... ... @@ -411,7 +411,9 @@ export struct PaperSingleColumn999CardView {
result = `${minutes}分钟前`;
} else if (hours < 24) {
result = `${hours}小时前`;
} else {
} else if(hours > 24 && hours <48){
result = '1天前';
}else {
result = '';
}
... ... @@ -483,10 +485,14 @@ export struct PaperSingleColumn999CardView {
.fontSize(12)
.fontColor('#B0B0B0')
.margin({ left: 16 })
Image($r('app.media.point'))
.width(16)
.height(16)
.margin({ top: 10, bottom: 10 })
///不显示时间或者不显示评论
if (this.getPublishTime().length > 0 || this.item.objectType != '2' && this.interactData && this.interactData.commentNum && Number(this.interactData.collectNum) > 0) {
Image($r('app.media.point'))
.width(16)
.height(16)
.margin({ top: 10, bottom: 10 })
}
}
Text(this.getPublishTime())
... ... @@ -497,7 +503,7 @@ export struct PaperSingleColumn999CardView {
Text(this.interactData.commentNum + "评")
.fontSize(12)
.fontColor('#B0B0B0')
.margin({ left: 6 })
.margin({ left: this.getPublishTime().length >0? 6:0 })
}
}
.justifyContent(FlexAlign.Start)
... ...