xugenyuan

ref |> 发布的评论未审核通过不显示回复按钮

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
@@ -527,23 +527,25 @@ struct commentFooterView { @@ -527,23 +527,25 @@ struct commentFooterView {
527 .fontColor($r('app.color.color_B0B0B0')) 527 .fontColor($r('app.color.color_B0B0B0'))
528 .fontSize(12) 528 .fontSize(12)
529 529
530 - Image($r('app.media.comment_hyphen_block'))  
531 - .size({  
532 - width: 4,  
533 - height: 4  
534 - }) 530 + if (this.item.id && this.item.checkStatus == '2') { // 审核通过的才显示回复
  531 + Image($r('app.media.comment_hyphen_block'))
  532 + .size({
  533 + width: 4,
  534 + height: 4
  535 + })
535 536
536 - Text('回复')  
537 - .fontColor($r('app.color.color_222222'))  
538 - .fontSize(12)  
539 - .onClick(() => {  
540 - this.publishCommentModel.rootCommentId = this.item.rootCommentId  
541 - this.publishCommentModel.parentId = this.item.id  
542 - this.publishCommentModel.placeHolderText = '回复' + this.item.fromUserName + ':'  
543 - if (this.dialogController != null) {  
544 - this.dialogController.open()  
545 - }  
546 - }) 537 + Text('回复')
  538 + .fontColor($r('app.color.color_222222'))
  539 + .fontSize(12)
  540 + .onClick(() => {
  541 + this.publishCommentModel.rootCommentId = this.item.rootCommentId
  542 + this.publishCommentModel.parentId = this.item.id
  543 + this.publishCommentModel.placeHolderText = '回复' + this.item.fromUserName + ':'
  544 + if (this.dialogController != null) {
  545 + this.dialogController.open()
  546 + }
  547 + })
  548 + }
547 } 549 }
548 550
549 if (this.item.id) { // 审核通过的才显示点赞 551 if (this.item.id) { // 审核通过的才显示点赞