陈剑华

fix: 18755 0评-搜索结果页中评论数为0的数据未能隐藏评论

@@ -151,7 +151,7 @@ export struct CardSourceInfo { @@ -151,7 +151,7 @@ export struct CardSourceInfo {
151 .flexShrink(0) 151 .flexShrink(0)
152 .margin({right: 4}) 152 .margin({right: 4})
153 } 153 }
154 - if (this.getContentDtoBean()?.interactData?.commentNum && this.showCommentNum()) { 154 + if (Number(this.getContentDtoBean()?.interactData?.commentNum) > 0 && this.showCommentNum()) {
155 Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`) 155 Text(`${this.handlerNum(this.getContentDtoBean()?.interactData?.commentNum.toString())}评`)
156 .fontSize($r("app.float.font_size_11")) 156 .fontSize($r("app.float.font_size_11"))
157 .fontColor($r("app.color.color_B0B0B0")) 157 .fontColor($r("app.color.color_B0B0B0"))