wangliang_wd

feat:优化早晚报

... ... @@ -244,8 +244,10 @@ export struct MorningEveningPaperComponent {
topicInfoView({ frontLinkObject: this.pageInfoBean?.topicInfo?.frontLinkObject })
}
ListItem() {
this.AudioBarView(this.simpleAudioDialog)
if (this.audioPlayUrl.length > 0){
ListItem() {
this.AudioBarView(this.simpleAudioDialog)
}
}
}
... ...
... ... @@ -39,7 +39,7 @@ export struct topicInfoView {
.borderRadius(2)
.padding({ left: 6, top: 4, bottom: 4 })
Image($r('app.media.more'))// .height($r('app.float.top_arrow_size'))
Image($r('app.media.more_w'))// .height($r('app.float.top_arrow_size'))
.width(12)
.height(12)
.margin({ left: 4, right: 7 })
... ...
... ... @@ -424,7 +424,7 @@ export struct PaperSingleColumn999CardView {
Text(this.item?.newsTitle)
.fontColor('#222222')
.fontSize(16)
.fontWeight(FontWeight.Bold)
.fontWeight(FontWeight.Medium)
.alignSelf(ItemAlign.Start)
.maxLines(3)
.textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。
... ... @@ -478,17 +478,21 @@ export struct PaperSingleColumn999CardView {
if (this.item) {
Row() {
Row() {
Text(this.item?.source)
.fontSize(12)
.fontColor('#B0B0B0')
.margin({ left: 16 })
Image($r('app.media.point'))
.width(16)
.height(16)
.margin({ top: 10, bottom: 10 })
if (this.item?.source.length > 0) {
Text(this.item?.source)
.fontSize(12)
.fontColor('#B0B0B0')
.margin({ left: 16 })
Image($r('app.media.point'))
.width(16)
.height(16)
.margin({ top: 10, bottom: 10 })
}
Text(this.getPublishTime())
.fontSize(12)
.fontColor('#B0B0B0')
.margin({ left: this.item?.source.length > 0?0:16 })
if (this.item.objectType != '2' && this.interactData && this.interactData.commentNum && Number(this.interactData.collectNum) > 0) {
Text(this.interactData.commentNum + "评")
.fontSize(12)
... ...