王士厅

fix: 鸿蒙走查 图集

... ... @@ -226,7 +226,7 @@ export struct CompParser {
}
} else if (this.compDTO.compStyle === CompStyle.Card_03 || this.compDTO.compStyle === CompStyle.Card_13 || this.compDTO.compStyle === CompStyle.Card_06 ||
this.compDTO.compStyle === CompStyle.Card_04 || this.compDTO.compStyle === CompStyle.Card_02 || this.compDTO.compStyle === CompStyle.Card_17) { // 无图卡 左文右图卡 小视频卡 三图卡 大图卡 图集卡
Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 }).margin({top:14})
Divider().strokeWidth(1).color('#f5f5f5').width(CommonConstants.FULL_WIDTH).padding({ left: 10, right: 10 })
} else if (this.compDTO.compType === 'appStyle' || this.compDTO.compStyle === CompStyle.Zh_Single_Row_01 || this.compDTO.compStyle === CompStyle.Card_Comp_Adv || this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) {
if (
this.nextCompDTO.compStyle === CompStyle.Card_09 ||
... ...
... ... @@ -95,7 +95,7 @@ export struct CardMediaInfo {
}
}
.margin({ right: 8})
.margin({ right: 5})
} else if (this.contentDTO.objectType === '2') {
// liveInfo.liveState 直播新闻-直播状态 wait待开播running直播中end已结束cancel已取消paused暂停
// 显示直播信息
... ... @@ -193,7 +193,7 @@ export struct CardMediaInfo {
.mediaTextImgtype()
.fontFamily('BebasNeue')
}
.margin({ right: 8})
.margin({ right: 5 })
} else if (this.contentDTO.objectType === '13') {
// 显示音频信息
... ...
... ... @@ -67,7 +67,7 @@ export struct Card11Component {
Span(this.contentDTO.newsTitle)
}
}
.lineHeight(27)
.lineHeight(25)
.fontSize($r("app.float.font_size_18"))
.fontColor(this.clicked ? 0x848484 : $r("app.color.color_222222"))
.maxLines(3)
... ...
... ... @@ -63,9 +63,6 @@ export struct Card17Component {
.lineHeight(25)
.maxLines(3)
.width(CommonConstants.FULL_WIDTH)
.margin({
top: 14
})
Stack({ alignContent: Alignment.BottomEnd }) {
// 三个图,
... ... @@ -137,7 +134,7 @@ export struct Card17Component {
})
// 评论等信息
CardSourceInfo({ compDTO: this.compDTO, contentDTO: this.contentDTO })
CardSourceInfo({ compDTO: this.compDTO, contentDTO: this.contentDTO, viewShowData: false })
}
.padding({
left: 10,
... ...
... ... @@ -86,7 +86,7 @@ export struct Card20Component {
.fontSize($r('app.float.font_size_18'))
.fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222'))
.maxLines(3)
.lineHeight(27)
.lineHeight(25)
.textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。
.align(Alignment.Start)
.textIndent((this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) > 2 &&
... ...
... ... @@ -54,7 +54,7 @@
},
{
"name": "font_size_18",
"value": "18fp"
"value": "18vp"
},
{
"name": "font_size_24",
... ...