From d8db0f25810038ec36bfd6748790e7744e020398 Mon Sep 17 00:00:00 2001 From: x ronger Date: Tue, 29 Sep 2020 17:36:42 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=9F=A5=E7=9C=8B=E5=8E=9F?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/common/comment/main.vue | 39 ++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/components/common/comment/main.vue b/components/common/comment/main.vue index d27ae96..dc2be20 100644 --- a/components/common/comment/main.vue +++ b/components/common/comment/main.vue @@ -32,9 +32,9 @@ 登录 后发布评论 - + - + + {{ comment.commenter.userNickname }} 回复了 {{comment.commentOriginalAuthorNickname}} + + + 查看原评论 + {{ comment.commenter.userNickname }} - - + {{ comment.timeAgo }} - - + + 评论 + + +

+ {{comment.commentOriginalAuthorNickname}} : +

+
+ +
+
+
@@ -310,6 +327,14 @@ // 取消回复 cancelCommentReply() { this.commentOriginalCommentId = 0 + }, + toggleShowOriginalComment(commentId) { + let ele = document.getElementById('original-' + commentId); + if (ele.style.display === 'none') { + ele.style.display = 'block'; + } else { + ele.style.display = 'none'; + } } }, async mounted() {