Commit ce2720b5 authored by linlinjava's avatar linlinjava
Browse files

fix[litemall-wx]: #473

parent 47e6e254
...@@ -67,6 +67,13 @@ Page({ ...@@ -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({ ...@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment