diff --git a/pages/integralmall/integraHistory/index.js b/pages/integralmall/integraHistory/index.js index c966c1c..cb4497f 100644 --- a/pages/integralmall/integraHistory/index.js +++ b/pages/integralmall/integraHistory/index.js @@ -49,6 +49,7 @@ Page({ pageSize: 20, } }).then(res => { + wx.stopPullDownRefresh(); res.data.list.map(file => { creditType.map((item,index)=>{ if (file.creditType==item.value){ @@ -73,6 +74,7 @@ Page({ }); }) .catch(err => { + wx.stopPullDownRefresh(); wx.showToast({ title: err.errMsg, icon: 'none', @@ -96,6 +98,16 @@ Page({ }) }) }, + /** + * 刷新 + */ + onPullDownRefresh: function (e) { + let that = this; + that.setData({ + pageNum: 1 + }); + that.record(1); + }, onReachBottom: function () { var that = this; that.data.pageNum++;