diff --git a/src/mods/AppVillager/AppVillager.vue b/src/mods/AppVillager/AppVillager.vue index 138f8d0..3fa32c6 100644 --- a/src/mods/AppVillager/AppVillager.vue +++ b/src/mods/AppVillager/AppVillager.vue @@ -142,6 +142,7 @@ export default { ], indexTab3: 0, delShow: false, + current: 1, } }, computed: {}, @@ -149,7 +150,6 @@ export default { onLoad() { this.$dict.load('villagerCircleTopic').then(() => { // this.getList() - console.log(this.$dict.getDict('villagerCircleTopic')) }) }, onShow() { @@ -158,6 +158,22 @@ export default { }) }, methods: { + getList() { + this.$instance + .post('/app/appvillagerintegraldeclare/list', null, { + params: { + size: 6, + current: this.current, + residentId: this.user.residentId, + }, + }) + .then((res) => { + if (res.code == 0) { + this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records + } + }) + }, + change(index) { // this.data = [] this.tabIndex1 = index @@ -199,6 +215,10 @@ export default { }) }, }, + onReachBottom() { + this.current = this.current + 1 + this.getList() + }, } diff --git a/src/mods/AppVillager/detail.vue b/src/mods/AppVillager/detail.vue index 5ddc215..4690376 100644 --- a/src/mods/AppVillager/detail.vue +++ b/src/mods/AppVillager/detail.vue @@ -46,17 +46,17 @@
张三、李四、陶白白等12人