王士厅

fix: 地方精选卡ui修改

... ... @@ -25,9 +25,10 @@ export struct ZhSingleRow04 {
// .height(24)
// .margin({ right: 4 })
Text(this.compDTO.objectTitle)
.fontSize($r("app.float.font_size_17"))
.fontSize(18)
.fontColor($r("app.color.color_222222"))
.fontWeight(600)
.lineHeight(25)
}
Row() {
... ... @@ -56,7 +57,7 @@ export struct ZhSingleRow04 {
})
}
.justifyContent(FlexAlign.SpaceBetween)
.margin({ top: 8, bottom: 8 })
.margin({ bottom: 8 })
.width('100%')
.padding({
left: $r('app.float.card_comp_pagePadding_lf'),
... ... @@ -87,13 +88,13 @@ export struct ZhSingleRow04 {
.listDirection(Axis.Horizontal)
.scrollBar(BarState.Off)
.width(CommonConstants.FULL_PARENT)
.height(166)
.height(160)
.edgeEffect(EdgeEffect.None)
}
.width(CommonConstants.FULL_WIDTH)
.padding({
left: 10,
right: 10,
right: 0,
top: $r('app.float.card_comp_pagePadding_tb'),
bottom: $r('app.float.card_comp_pagePadding_tb')
})
... ... @@ -111,6 +112,8 @@ struct localCard {
Flex({ direction: FlexDirection.Column }) {
Text(this.operDataListItem.source)
.fontSize($r('app.float.font_size_12'))
.lineHeight(16)
.fontWeight(500)
.fontColor($r('app.color.color_B0B0B0'))
.width('100%')
.margin({ bottom: 6 })
... ... @@ -121,22 +124,27 @@ struct localCard {
Text(this.operDataListItem.newsTitle)
.width(CommonConstants.FULL_PARENT)
.height(CommonConstants.FULL_PARENT)
.fontSize($r('app.float.font_size_18'))
.fontSize(16)
.fontColor('#000000')
.align(Alignment.TopStart)
.maxLines(3)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.lineHeight(25)
.lineHeight(22)
.fontWeight(500)
Row() {
Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.operDataListItem.publishTime)))
.fontSize($r("app.float.font_size_12"))
.fontSize(12)
.lineHeight(16)
.fontWeight(400)
.fontColor($r("app.color.color_B0B0B0"))
.margin({ right: 5 })
// 这里需要外部查询评论接口后,写入字段
if (this.operDataListItem.interactData?.commentNum) {
Text(`${this.operDataListItem.interactData?.commentNum}评`)
.fontSize(12)
.lineHeight(16)
.fontWeight(400)
.fontColor($r("app.color.color_B0B0B0"))
}
Blank()
Image($r('app.media.local_content_icon'))
... ... @@ -159,10 +167,10 @@ struct localCard {
radius: 2,
})
.shadow({
radius: 6,
color: '#1A000000',
radius: 5,
color: 'rgba(0, 0, 0, 0.10)',
offsetX: 0,
offsetY: 3
offsetY: 1
}) // 设置下方阴影
.margin({
right: -2
... ...