调整接口
This commit is contained in:
@@ -44,23 +44,14 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
uni.$on("reachBottom2", () => {
|
|
||||||
this.current++;
|
|
||||||
this.getInfo()
|
|
||||||
})
|
|
||||||
uni.$on('updateIntegral', () => {
|
|
||||||
this.current = 1
|
|
||||||
this.list = []
|
|
||||||
this.getInfo()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 积分排行
|
// 积分排行
|
||||||
getInfo() {
|
getInfo() {
|
||||||
let {current, user: {id: userId}, info: {details}} = this
|
let {current, info: {details}} = this
|
||||||
if (!details?.pages || current <= details.pages) {
|
if (!details?.pages || current <= details.pages) {
|
||||||
this.$http.post('/app/appvillagerintegraldetail/sysUserIntegralList', null, {
|
this.$http.post('/app/appintegraluser/appGirdIntegral', null, {
|
||||||
params: {userId, current, size: 10}
|
params: {current, size: 10}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
@@ -69,13 +60,10 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
gotoGive() {
|
|
||||||
uni.navigateTo({url: "./giveIntegral"})
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
destroyed() {
|
onReachBottom() {
|
||||||
uni.$off("reachBottom2")
|
this.current++
|
||||||
uni.$off("onShow")
|
this.getInfo()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user