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