chenquansheng

fix |> 修复文章详情页吴评论数时滑到评论区不显示正文标识

... ... @@ -185,7 +185,25 @@ export struct CommentIconComponent {
Image(this.styleType == 1 ? $r('app.media.comment_icon') :
$r('app.media.comment_icon_white')).width(24).height(24)
// Stack({alignContent:Alignment.Start}) {
if (this.showMainText) {
this.commentIcon()
}else {
if (Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0) {
this.commentIcon()
}
}
}
}
.width(24)
.height(24)
.visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden)
// .backgroundColor(Color.Blue)
}
@Builder
commentIcon() {
RelativeContainer() {
Image(this.styleType == 1 ? this.showMainText?$r('app.media.comment_icon_text_bg'):$r('app.media.comment_icon_number_bg') : this.showMainText?$r('app.media.comment_icon_text_block_bg'):$r('app.media.ic_like_back_Select'))
.objectFit(ImageFit.Fill)
... ... @@ -231,15 +249,6 @@ export struct CommentIconComponent {
x: this.showMainText?8:12,
y: -2
})
}
}
}
.width(24)
.height(24)
.visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden)
// .backgroundColor(Color.Blue)
}
private getMeasureText(text: string) {
... ...