diff --git a/src/components/BsCommentThumbup.vue b/src/components/BsCommentThumbup.vue
index 8a03884..8c48d22 100644
--- a/src/components/BsCommentThumbup.vue
+++ b/src/components/BsCommentThumbup.vue
@@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-06-21 16:01:19
* @LastEditors: ch
- * @LastEditTime: 2022-06-28 21:11:53
+ * @LastEditTime: 2022-06-29 10:20:40
* @Description: file content
-->
@@ -14,7 +14,7 @@
- {{answerCount}}
+ {{commentDetail.replyCount}}
@@ -35,12 +35,6 @@ export default {
usefulCount : 0
}
},
- computed : {
- answerCount (){
- const arr = this.commentDetail.answerCommentList || [];
- return arr.length;
- }
- },
watch :{
commentDetail (){
this.isLike = this.commentDetail.isLike;
diff --git a/src/pages/goods/comment/detail.vue b/src/pages/goods/comment/detail.vue
index 7a77ce9..412cd5f 100644
--- a/src/pages/goods/comment/detail.vue
+++ b/src/pages/goods/comment/detail.vue
@@ -15,9 +15,9 @@
- 全部评论( {{answerCount}}条)
+ 全部评论( {{detail.replyCount}}条)
-
+
@@ -81,9 +81,6 @@ export default {
computed:{
placeholder(){
return this.answer ? `回复:${this.answer.userName}` : '说点什么吧?'
- },
- answerCount(){
- return this.detail.answerCommentList ? this.detail.answerCommentList.length : 0
}
},
onShow(){
diff --git a/src/pages/goods/comment/preview.vue b/src/pages/goods/comment/preview.vue
index 30eccce..30d2ff5 100644
--- a/src/pages/goods/comment/preview.vue
+++ b/src/pages/goods/comment/preview.vue
@@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-06-22 15:15:22
* @LastEditors: ch
- * @LastEditTime: 2022-06-28 20:32:35
+ * @LastEditTime: 2022-06-29 10:20:34
* @Description: file content
-->
@@ -36,7 +36,7 @@
- {{answerCount}}
+ {{data.replyCount}}
@@ -61,10 +61,6 @@ export default {
imgs(){
const arr = this.data.pictureUrl || [];
return arr.split(',')
- },
- answerCount (){
- const arr = this.data.answerCommentList || []
- return arr.length;
}
},
onShow(){