This commit is contained in:
shijingjing
2022-04-27 18:06:27 +08:00
parent 61d1256c4c
commit 9dfffd7179

View File

@@ -45,17 +45,22 @@ export default {
getList() {
this.$http.post('/app/apppublicitycategory/list',null,{
params: {
current: this.current,
parentName: this.parentName,
categoryType: '1',
}
}).then((res)=>{
this.list = res.data.records
this.list = this.current == 1? res.data.records:[...this.list,...res.data.records,]
})
},
toNewList(id,categoryName) {
uni.navigateTo({url: `./newList?id=${id}&parentName=${categoryName}`})
}
},
onReachBottom() {
this.current ++,
this.getList()
}
}
</script>