Showing
1 changed file
with
15 additions
and
13 deletions
| @@ -29,18 +29,20 @@ export struct CommentDialogView { | @@ -29,18 +29,20 @@ export struct CommentDialogView { | ||
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | build() { | 31 | build() { |
| 32 | - CommentListDialogView({ | ||
| 33 | - showCommentList: this.innerShowComment, | ||
| 34 | - contentDetailData: this.contentDetailData, | ||
| 35 | - publishCommentModel: this.publishCommentModel, | ||
| 36 | - pageInfo: this.fakePageInfo, | ||
| 37 | - onClose: () => { | ||
| 38 | - this.showCommentList = false | ||
| 39 | - if (Number.parseInt(this.publishCommentModel.totalCommentNumer) > Number.parseInt(this.interactData.commentNum + "")) { | ||
| 40 | - this.interactData.commentNum = Number.parseInt(this.publishCommentModel.totalCommentNumer) | ||
| 41 | - } | ||
| 42 | - }, | ||
| 43 | - onHeightDidChange: this.onHeightDidChange | ||
| 44 | - }) | 32 | + if(this.innerShowComment){ |
| 33 | + CommentListDialogView({ | ||
| 34 | + showCommentList: this.innerShowComment, | ||
| 35 | + contentDetailData: this.contentDetailData, | ||
| 36 | + publishCommentModel: this.publishCommentModel, | ||
| 37 | + pageInfo: this.fakePageInfo, | ||
| 38 | + onClose: () => { | ||
| 39 | + this.showCommentList = false | ||
| 40 | + if (Number.parseInt(this.publishCommentModel.totalCommentNumer) > Number.parseInt(this.interactData.commentNum + "")) { | ||
| 41 | + this.interactData.commentNum = Number.parseInt(this.publishCommentModel.totalCommentNumer) | ||
| 42 | + } | ||
| 43 | + }, | ||
| 44 | + onHeightDidChange: this.onHeightDidChange | ||
| 45 | + }) | ||
| 46 | + } | ||
| 45 | } | 47 | } |
| 46 | } | 48 | } |
-
Please register or login to post a comment