@@ -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: {