wangliang_wd

feat:优化信息流UI展示问题

... ... @@ -195,19 +195,20 @@ export struct RmhTitle {
Blank()
if (this.rmhInfo?.cnIsAttention) {
Row() {
if (Number(this.followStatus) === 0) {
Image($r('app.media.rmh_follow'))
.width(16)
.height(16)
}
Column() {
Row(){
if (Number(this.followStatus) === 0) {
Image($r('app.media.rmh_follow'))
.width(16)
.height(16)
}
Text(Number(this.followStatus) === 0 ? '关注' : '已关注')
.fontSize($r('app.float.font_size_13'))
.fontColor(Number(this.followStatus) === 0 ? $r('app.color.color_ED2800') : 0xc6c6c6)
Text(Number(this.followStatus) === 0 ? '关注' : '已关注')
.fontSize($r('app.float.font_size_13'))
.fontColor(Number(this.followStatus) === 0 ? $r('app.color.color_ED2800') : 0xc6c6c6)
}.margin({top:4})
}
.flexShrink(0)
.alignSelf(ItemAlign.Center)
.onClick(() => {
this.handleAccention();
})
... ...
... ... @@ -86,7 +86,7 @@ export struct Card14Component {
.height(78)
.borderRadius($r('app.float.image_border_radius'))
.border({
width: 1,
width: 0.5,
color: '#0D000000'
})
.borderStyle(BorderStyle.Solid)
... ...
... ... @@ -124,7 +124,7 @@ export struct Card6Component {
.borderRadius(5)
.aspectRatio(this.contentDTO.appStyle === CompStyle.Card_13 ? 3 / 2 : 3 / 4)
.height(this.contentDTO.appStyle === CompStyle.Card_13 ? 78 : 156)
.border({width: 1, color: 0xf5f5f5})
.border({width: 0.5, color: 0xf5f5f5})
.borderStyle(BorderStyle.Solid)
CardMediaInfo({ contentDTO: this.contentDTO })
}
... ...