ref |> 处理底部评论数量为0时,不显示
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -87,7 +87,7 @@ export struct CommentIconComponent { | @@ -87,7 +87,7 @@ export struct CommentIconComponent { | ||
| 87 | Stack({ alignContent: Alignment.TopEnd }) { | 87 | Stack({ alignContent: Alignment.TopEnd }) { |
| 88 | Image($r('app.media.comment_icon')).width(24).height(24) | 88 | Image($r('app.media.comment_icon')).width(24).height(24) |
| 89 | // Stack({alignContent:Alignment.Start}) { | 89 | // Stack({alignContent:Alignment.Start}) { |
| 90 | - // if(Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0){ | 90 | + if(Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0){ |
| 91 | RelativeContainer() { | 91 | RelativeContainer() { |
| 92 | Image($r('app.media.comment_icon_number_bg')) | 92 | Image($r('app.media.comment_icon_number_bg')) |
| 93 | .objectFit(ImageFit.Fill) | 93 | .objectFit(ImageFit.Fill) |
| @@ -125,7 +125,7 @@ export struct CommentIconComponent { | @@ -125,7 +125,7 @@ export struct CommentIconComponent { | ||
| 125 | x: 12 | 125 | x: 12 |
| 126 | }) | 126 | }) |
| 127 | 127 | ||
| 128 | - // } | 128 | + } |
| 129 | } | 129 | } |
| 130 | }.width(24).height(24) | 130 | }.width(24).height(24) |
| 131 | 131 |
-
Please register or login to post a comment