Browse Source

fix[litemall-wx]: #473

linlinjava 4 years ago
parent
commit
ce2720b5e7
1 changed files with 7 additions and 1 deletions
  1. 7 1
      litemall-wx/pages/comment/comment.js

+ 7 - 1
litemall-wx/pages/comment/comment.js

@@ -67,6 +67,13 @@ Page({
     this.getCommentList();
   },
   onPullDownRefresh() {
+    this.setData({
+      allCommentList: [],
+      allPage: 1,
+      picCommentList: [],
+      picPage: 1,
+      comments: []
+    });
     wx.showNavigationBarLoading() //在标题栏中显示加载
     this.getCommentCount();
     this.getCommentList();
@@ -109,7 +116,6 @@ Page({
     this.getCommentList();
   },
   onReachBottom: function() {
-    console.log('onPullDownRefresh');
     if (this.data.showType == 0) {
 
       if (this.data.allCount / this.data.limit < this.data.allPage) {