From c42d182e17403644462249556ac8b3b620b75101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=96?= Date: Fri, 19 Apr 2019 11:08:22 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=A7=AF=E5=88=86=E5=8F=98=E6=9B=B4=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=A2=9E=E5=8A=A0=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/integralmall/integraHistory/index.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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++;