From 149728981d81733aececdaacdc6751fd6f1d870e Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Mon, 25 Mar 2024 18:31:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/search/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/search/index.vue b/pages/search/index.vue index ab010ac..292ed2d 100644 --- a/pages/search/index.vue +++ b/pages/search/index.vue @@ -112,13 +112,13 @@ * 搜索提交 */ async onSearch() { - await this.getGoodsList() + await this.upCallback() await this.getHomeListImage() }, // 切换tab async changeTab(val) { this.tabKey = val - await this.getGoodsList() + await this.upCallback() await this.getHomeListImage() }, /** @@ -131,6 +131,7 @@ // 设置列表数据 await app.getGoodsList(page.num) .then(list => { + console.log(list) const curPageLen = list.data.length const totalSize = list.data.total app.mescroll.endBySize(curPageLen, totalSize)