From 7b8fadc10955b78d06d5249d2c811800c221bf0e Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Tue, 27 Aug 2024 16:14:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B9=E6=9E=9C=E6=89=8B=E6=9C=BA=20?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E6=8C=89=E9=92=AE=E5=90=8C=E6=97=B6=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=20=E8=B0=83=E6=95=B4=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/XJ-comment/index.vue | 23 +- components/XJ-comment/index1.vue | 503 +++++++++++++++++++++++++++++++ pages/videoCircle/index.vue | 2 +- 3 files changed, 524 insertions(+), 4 deletions(-) create mode 100644 components/XJ-comment/index1.vue diff --git a/components/XJ-comment/index.vue b/components/XJ-comment/index.vue index 17362bf..c0b1424 100644 --- a/components/XJ-comment/index.vue +++ b/components/XJ-comment/index.vue @@ -27,6 +27,7 @@ +
发一条新评论
@@ -143,6 +144,9 @@ // this.isLoading = false; // }, 1000); }, + openComment() {//点击发布新评论按钮 + this.$refs.cPopupRef.open(); + }, treeTransForm(data) { let newData = JSON.parse(JSON.stringify(data)); let result = []; @@ -222,10 +226,10 @@ params.user_name=this.tableData.user_name; } else { params.id = this.tableData.id; - params.parent_id = item.item1?.parent_id ?? item.item1.id; - params.reply_id = item.item1.id; + params.parent_id = this.tableData.parent_id; + params.reply_id = this.tableData.reply_id; params.user_name=this.tableData.user_name; - params.reply_name = item.item2 ? item.item2.user_name : item.item1.user_name; + params.reply_name = this.tableData.user_name } params = { @@ -368,6 +372,19 @@ \ No newline at end of file diff --git a/pages/videoCircle/index.vue b/pages/videoCircle/index.vue index d66cecd..2bfc4ea 100644 --- a/pages/videoCircle/index.vue +++ b/pages/videoCircle/index.vue @@ -99,7 +99,7 @@ -
发一条新评论
+