ソースを参照

[积分变更记录增加下拉刷新]

tags/湖南版5.1.4
刘晖 6年前
コミット
c42d182e17
1個のファイルの変更12行の追加0行の削除
  1. +12
    -0
      pages/integralmall/integraHistory/index.js

+ 12
- 0
pages/integralmall/integraHistory/index.js ファイルの表示

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


読み込み中…
キャンセル
保存