bug
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
export default {
|
||||
appName: '文明广场',
|
||||
name: 'AppSquare',
|
||||
enablePullDownRefresh: true,
|
||||
|
||||
data () {
|
||||
return {
|
||||
@@ -58,7 +59,10 @@
|
||||
},
|
||||
|
||||
getList () {
|
||||
if (this.isMore) return
|
||||
if (this.isMore) {
|
||||
uni.stopPullDownRefresh()
|
||||
return
|
||||
}
|
||||
|
||||
this.$loading()
|
||||
this.$instance.post(`/api/appwechatescalation/list`, null, {
|
||||
@@ -72,6 +76,7 @@
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$hideLoading()
|
||||
uni.stopPullDownRefresh()
|
||||
if (this.current > 1) {
|
||||
this.list = [...this.list, ...res.data.records]
|
||||
} else {
|
||||
@@ -89,6 +94,7 @@
|
||||
this.isMore = true
|
||||
}
|
||||
}).catch(() => {
|
||||
uni.stopPullDownRefresh()
|
||||
this.$hideLoading()
|
||||
})
|
||||
}
|
||||
@@ -96,7 +102,13 @@
|
||||
|
||||
onReachBottom () {
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
|
||||
onPullDownRefresh() {
|
||||
this.isMore = false
|
||||
this.current = 1
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user