From f8b388c968d003319fbca7382e7c83af55ce55c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Thu, 11 Nov 2021 16:42:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/navigation/search/searchPage.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue index f5ff2f7..21cf078 100644 --- a/pages/navigation/search/searchPage.vue +++ b/pages/navigation/search/searchPage.vue @@ -477,14 +477,19 @@ export default { } }); - this.params.brandId = this.params.brandId.join("@") || ""; + this.params.brandId = this.params.brandId.join("@") || ""; + console.log(this.params.brandId); // 处理分类 (单选) if (this.selectedWay["categoryId"][0]) { this.params.categoryId = this.selectedWay["categoryId"][0].value; } - // 处理属性 - this.params.prop = []; + if (!this.params.prop) { + this.params.prop = []; + } else { + this.params.prop = [this.params.prop]; + } + this.selectedWay["prop"].forEach((item) => { if (item.__selected) { this.params.prop.push(`${item.parent}_${item.title}`); @@ -499,8 +504,12 @@ export default { } this.goodsList = []; - this.loadData(); + + this.params.pageNumber = 1; this.sortParams = this.params; + + + this.loadData(); this.sortPopup = false; },