陈剑华

fix: 20417 3:2横划卡、卡片中间的间距过大

... ... @@ -106,14 +106,14 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
.aspectRatio(1.5)
.width(this.compDTO.operDataList.length == 2 ? 210 : 150)
.objectFit(ImageFit.Contain)
.borderRadius(4)
.border({width: 0.5, color: 0xf5f5f5})
CardMediaInfo({
livePeopleNum:false,
contentDTO: item
})
}
.align(Alignment.BottomEnd)
.borderRadius(4)
.border({width: 1, color: 0xf5f5f5})
Text(item.newsTitle)
.fontSize($r("app.float.font_size_14"))
... ... @@ -127,13 +127,12 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
.lineHeight(19)
}
.height(this.compDTO.operDataList.length == 2 ? 190 : 148)
.padding({ right: this.compDTO.operDataList.length == 2 ? 12 : 8 })
.padding({ right: this.compDTO.operDataList.length >= 3 ? 8 : 12, left: index == 0 ? 20: 0 })
// .offset({x:16})
.onClick(() => {
InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName)
ProcessUtils.processPage(item)
})
.padding({ right: 16, left: index == 0 ? 20: 0 })
})
}
... ...