From e42eee9defb601ca3bcb2fb3b40beec35ca08c9e Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 19 May 2023 10:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B2=E9=9D=96=E9=A6=96=E9=A1=B5=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qujing/AppHome/AppHome.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/project/qujing/AppHome/AppHome.vue b/src/project/qujing/AppHome/AppHome.vue index b83fbc6..b6a8722 100644 --- a/src/project/qujing/AppHome/AppHome.vue +++ b/src/project/qujing/AppHome/AppHome.vue @@ -102,6 +102,7 @@ export default { background: 'url(https://cdn.cunwuyun.cn/qujing/home-top-nav.png) no-repeat', backgroundSize: '100% 100%', }, + newCurrent: 1 } }, computed: { @@ -147,14 +148,16 @@ export default { tabChange(idx) { this.index = idx this.search.categoryId = this.categorys[idx]['id'] + this.newCurrent = 1 this.getCategoryList() }, getCategoryList() { this.$instance.post("/app/appcontentinfo/list", null, { - params: {...this.search, size: 100} + params: {...this.search, size: 5, current: this.newCurrent} }).then(res => { if (res?.data) { - this.categoryList = res.data.records; + // this.categoryList = res.data.records; + this.categoryList = this.newCurrent==1? res.data.records: [...this.categoryList,...res.data.records] } }) }, @@ -267,6 +270,10 @@ export default { path: `/pages/AppHome/AppHome` } }, + onReachBottom() { + this.newCurrent ++ + this.getCategoryList() + } }