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)