张善主

fix(17703):直播间点赞样式调整

... ... @@ -78,25 +78,28 @@ export struct LiveLikeComponent {
transLikeStyle(): ILikeStyleResp {
if (this.likesStyle === 'love' || this.likesStyle === 'thumb') {
return {
url: this.likeStatus ? $r(`app.media.ic_like_check`) :
this.styleType == 1 ? $r('app.media.icon_like_default') : $r(`app.media.ic_like_uncheck`),
url: this.likeStatus ? $r('app.media.ic_like_check') :
this.styleType == 1 ? $r('app.media.icon_like_default') : $r('app.media.ic_like_uncheck'),
name: '赞'
}
} else if (this.likesStyle === 'pray') {
return {
url: this.likeStatus ? $r(`app.media.ic_thub_check`) : $r(`app.media.ic_thub_uncheck`),
url: this.likeStatus ? $r('app.media.ic_thub_check') :
this.styleType == 1 ? $r('app.media.icon_like_unselect_light_pray') :
$r('app.media.icon_like_unselect_night_pray'),
name: '祈祷'
}
} else if (this.likesStyle === 'mourning') {
return {
url: this.likeStatus ? $r(`app.media.ic_candle_check`) :
$r(`app.media.ic_candle_uncheck`),
url: this.likeStatus ? $r('app.media.ic_candle_check') :
this.styleType == 1 ? $r('app.media.icon_like_unselect_light_candle') :
$r('app.media.icon_like_unselect_night_candle'),
name: '默哀'
}
}
return {
url: this.likeStatus ? $r(`app.media.ic_like_check`) :
this.styleType == 1 ? $r('app.media.icon_like_default') : $r(`app.media.ic_like_uncheck`),
url: this.likeStatus ? $r('app.media.ic_like_check') :
this.styleType == 1 ? $r('app.media.icon_like_default') : $r('app.media.ic_like_uncheck'),
name: '点赞'
}
}
... ... @@ -106,8 +109,8 @@ export struct LiveLikeComponent {
Stack({ alignContent: Alignment.TopEnd }) {
Column() {
Image(this.transLikeStyle().url)
.width(24)
.height(24)
.width(((this.likesStyle === 'mourning'||this.likesStyle === 'pray')&& !this.likeStatus) ?36:24)
.height(((this.likesStyle === 'mourning'||this.likesStyle === 'pray')&& !this.likeStatus)?36:24)
}
.justifyContent(FlexAlign.Center)
.width(36)
... ...
... ... @@ -252,7 +252,7 @@ export struct LiveOperRowListView {
})
}
.width(48)
.margin({left:this.isLlive?0:10})
.margin({left:this.isLlive?0:5})
.visibility(this.likesStyle == 4 || this.likesStyle == 'empty' || !this.openLikes ? Visibility.None : Visibility.Visible)
}
... ...