diff --git a/src/apps/AppDataScreening/userDetail.vue b/src/apps/AppDataScreening/userDetail.vue
index 2611f372..0778acac 100644
--- a/src/apps/AppDataScreening/userDetail.vue
+++ b/src/apps/AppDataScreening/userDetail.vue
@@ -3,13 +3,13 @@
@@ -35,6 +35,7 @@ export default {
data() {
return {
areaId: '',
+ current: 1,
areaName: '',
groupName: '',
list: []
@@ -44,7 +45,7 @@ export default {
created() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
- this.getList()
+ this.getListInit()
},
onShow() {
document.title = '居民群详情'
@@ -52,16 +53,38 @@ export default {
methods: {
handerClear() {
this.groupName = ''
+ this.getListInit()
+ },
+ getListInit() {
+ this.list = []
+ this.current = 1
this.getList()
},
getList() {
- this.$http.post(`/app/wxcp/wxgroup/allGroupInfo?areaId=${this.areaId}&groupName=${this.groupName}`).then(res => {
+ this.$http.post(`/app/wxcp/wxgroup/allGroupInfo`, null, {
+ areaId: this.areaId,
+ groupName: this.groupName,
+ current: this.current,
+ size: 10
+ }).then(res => {
if (res?.code == 0) {
- this.list = res.data
+ if (this.current > 1) {
+ this.list = [...this.list, ...res.data.records]
+ } else {
+ this.list = res.data.records
+ }
+ } else {
+ uni.hideLoading()
}
+ }).catch(() => {
+ uni.hideLoading()
})
}
},
+ onReachBottom() {
+ this.current ++
+ this.getList()
+ }
}