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: { computed: {
...mapState(['user']), ...mapState(['user']),
}, },
watch: {},
onLoad() { onLoad() {
this.getList() this.getList()
}, },
@@ -56,11 +55,12 @@ export default {
}, },
methods: { methods: {
getList() { 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) { if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages this.pages = res.data.pages
this.$forceUpdate()
} }
}) })
}, },
@@ -68,6 +68,10 @@ export default {
uni.navigateTo({url: `./detail?id=${item.id}&isMine=1`}) uni.navigateTo({url: `./detail?id=${item.id}&isMine=1`})
}, },
}, },
onReachBottom() {
this.current++
this.getList()
}
} }
</script> </script>