From a72a0a64b322615cd5ad805da57a7f08a3a20b88 Mon Sep 17 00:00:00 2001 From: XiaoMo Date: Thu, 6 Apr 2023 11:40:11 +0800 Subject: [PATCH] =?UTF-8?q?a1300399510@qq.com=20=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=8E=202023/04/06=20-11:40:02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DetailReply.vue | 11 +++++++---- src/views/detail/detailIndex.vue | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/DetailReply.vue b/src/components/DetailReply.vue index 7d75c83..d499e09 100755 --- a/src/components/DetailReply.vue +++ b/src/components/DetailReply.vue @@ -3,10 +3,11 @@
-
+
- -
{{ twoCommentData.content }}
+ +
{{ twoCommentData && twoCommentData.content }}
@@ -67,13 +68,15 @@ export default { // 提交回复 postComment(commentContent) { - console.log("dffgkgfk", commentContent); + this.$parent.postComment(commentContent) }, // 关闭弹窗 handlePopCancel() { + console.log(this.$parent.popState, "this.$parent.popState"); this.$parent.twoCommentData = null this.$parent.popState = "" + }, // 清空 diff --git a/src/views/detail/detailIndex.vue b/src/views/detail/detailIndex.vue index 54ba955..c043c99 100755 --- a/src/views/detail/detailIndex.vue +++ b/src/views/detail/detailIndex.vue @@ -258,10 +258,10 @@ export default { name: 'detailIndex', data() { return { - twoCommentData: { - avatar: "https://oss.gter.net/avatar/97KwEWANd_4DHWiY6VbnSUFSCKroYWFjYQ~~/middle", - content: "评论回复", - }, + twoCommentData: null, + // avatar: "https://oss.gter.net/avatar/97KwEWANd_4DHWiY6VbnSUFSCKroYWFjYQ~~/middle", + // content: "评论回复", + // }, popState: "", coinConfig: { strategy: {