村民圈接口

This commit is contained in:
花有清香月有阴
2022-02-17 19:03:11 +08:00
parent 73393e8bff
commit edfed81029
2 changed files with 70 additions and 6 deletions

View File

@@ -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()
},
}
</script>