From 73560e8366cee6d37378a8a5039ff59449c7ff51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Sat, 18 Sep 2021 10:11:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=9B=E9=80=89=E4=B8=8D?= =?UTF-8?q?=E8=B5=8B=E5=80=BCcategoryId=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/navigation/search/searchPage.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue index 66f47fc..6d387b0 100644 --- a/pages/navigation/search/searchPage.vue +++ b/pages/navigation/search/searchPage.vue @@ -347,7 +347,7 @@ export default { }, onLoad(val) { this.init(); - this.initSortGoods(); +// this.initSortGoods(); // 接收分类的数据 this.routerVal = val; @@ -355,6 +355,7 @@ export default { // 有值 if (this.routerVal.category) { this.params.categoryId = this.routerVal.category; + this.sortParams.categoryId = this.routerVal.category; this.isShowSeachGoods = true; } if (this.routerVal.keyword) { @@ -366,6 +367,7 @@ export default { this.isShowSeachGoods = true; } this.loadData(); + }, components: { mSearch, @@ -498,11 +500,11 @@ export default { // 重置 repick() { - this.sortParams = { + this.sortParams = { pageNumber: 1, pageSize: 10, }; - this.sortPopup = false + this.sortPopup = false; this.initSortGoods(); this.minPrice = ""; this.maxPrice = ""; @@ -510,7 +512,7 @@ export default { pageNumber: 1, pageSize: 10, }; - this.goodsList = [] + this.goodsList = []; this.loadData(); },