浏览代码

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

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,
}
}).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++;


正在加载...
取消
保存