This commit is contained in:
aixianling
2023-03-07 16:23:51 +08:00
parent 25d2b8aea5
commit d4058ed884

View File

@@ -47,7 +47,6 @@ export default {
computed: {
...mapState(['user']),
},
watch: {},
onLoad() {
this.getList()
},
@@ -56,11 +55,12 @@ export default {
},
methods: {
getList() {
this.$http.post(`/app/appconflicteventinfo/list`, null, {params: {size: 10, current: this.current}}).then((res) => {
this.$http.post(`/app/appconflicteventinfo/list`, null, {
params: {size: 10, current: this.current, girdMemberId: this.user.girdMemberId}
}).then((res) => {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
this.$forceUpdate()
}
})
},
@@ -68,6 +68,10 @@ export default {
uni.navigateTo({url: `./detail?id=${item.id}&isMine=1`})
},
},
onReachBottom() {
this.current++
this.getList()
}
}
</script>