From 9dfffd7179b37816777245508aa45f51f924fe84 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 27 Apr 2022 18:06:27 +0800 Subject: [PATCH] 29359 --- src/apps/AppInfotainment/AppInfotainment.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/AppInfotainment/AppInfotainment.vue b/src/apps/AppInfotainment/AppInfotainment.vue index 33ad850b..3f9cac31 100644 --- a/src/apps/AppInfotainment/AppInfotainment.vue +++ b/src/apps/AppInfotainment/AppInfotainment.vue @@ -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() + } }