xugenyuan

ref |> 处理底部评论数量为0时,不显示

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
... ... @@ -87,7 +87,7 @@ export struct CommentIconComponent {
Stack({ alignContent: Alignment.TopEnd }) {
Image($r('app.media.comment_icon')).width(24).height(24)
// Stack({alignContent:Alignment.Start}) {
// if(Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0){
if(Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0){
RelativeContainer() {
Image($r('app.media.comment_icon_number_bg'))
.objectFit(ImageFit.Fill)
... ... @@ -125,7 +125,7 @@ export struct CommentIconComponent {
x: 12
})
// }
}
}
}.width(24).height(24)
... ...