Compare commits
2 Commits
ff8ba354b3
...
52d36d8eff
Author | SHA1 | Date | |
---|---|---|---|
![]() |
52d36d8eff | ||
![]() |
a494cb3296 |
@ -176,6 +176,7 @@
|
|||||||
/**初始化数据*/
|
/**初始化数据*/
|
||||||
initData() {
|
initData() {
|
||||||
pointList(this.queryParams).then(res => {
|
pointList(this.queryParams).then(res => {
|
||||||
|
this.isTriggered = false
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if (this.queryParams.pageNum == 1) {
|
if (this.queryParams.pageNum == 1) {
|
||||||
this.dataList = res.data.records
|
this.dataList = res.data.records
|
||||||
@ -184,7 +185,14 @@
|
|||||||
}
|
}
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
})
|
}).catch((e) => {
|
||||||
|
this.isTriggered = false
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'error',
|
||||||
|
duration: 2000,
|
||||||
|
title: e
|
||||||
|
});
|
||||||
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 计算提现的积分等于多少钱
|
* 计算提现的积分等于多少钱
|
||||||
@ -296,6 +304,7 @@
|
|||||||
}
|
}
|
||||||
//页码+1,调用获取数据的方法获取第二页数据
|
//页码+1,调用获取数据的方法获取第二页数据
|
||||||
this.queryParams.pageNum++
|
this.queryParams.pageNum++
|
||||||
|
this.initData()
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 下拉刷新数据
|
* 下拉刷新数据
|
||||||
@ -304,6 +313,7 @@
|
|||||||
this.isTriggered = true
|
this.isTriggered = true
|
||||||
this.queryParams.pageNum = 1
|
this.queryParams.pageNum = 1
|
||||||
this.total = 0
|
this.total = 0
|
||||||
|
this.initData()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user