29 lines
448 B
JavaScript
29 lines
448 B
JavaScript
const { httpRequest } = getApp();
|
|
|
|
Page({
|
|
data: {
|
|
rechargeList: [],
|
|
rechargeFlag: false
|
|
},
|
|
onShow() {
|
|
my.showLoading({
|
|
content: '加载中...',
|
|
});
|
|
|
|
const paramenter = {
|
|
path: '/rechargerecord',
|
|
method: 'POST',
|
|
}
|
|
|
|
httpRequest(paramenter).then(res => {
|
|
my.hideLoading();
|
|
if (res.status == 1 && Array.isArray(res.data)) {
|
|
this.setData({
|
|
rechargeList: res.data,
|
|
rechargeFlag: true,
|
|
})
|
|
}
|
|
})
|
|
|
|
}
|
|
}) |