ソースを参照

fix[litemall-wx]: #473

linlinjava 4 年 前
コミット
ce2720b5e7
1 ファイル変更7 行追加1 行削除
  1. 7 1
      litemall-wx/pages/comment/comment.js

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

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