|
@@ -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++; |
|
|