From 68bc1d69740208bb469fd13c0c13e6f8e7df2b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Thu, 4 Nov 2021 10:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E6=A5=BC=E5=B1=82=E8=A3=85=E4=BF=AE=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/navigation/search/searchPage.vue | 4 ++++ pages/tabbar/home/template/tpl.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue index a3f80af..f7f09cd 100644 --- a/pages/navigation/search/searchPage.vue +++ b/pages/navigation/search/searchPage.vue @@ -501,6 +501,7 @@ export default { this.sortParams = { pageNumber: 1, pageSize: 10, + categoryId:this.routerVal.category || '' }; this.sortPopup = false; this.initSortGoods(); @@ -509,6 +510,9 @@ export default { this.params = { pageNumber: 1, pageSize: 10, + categoryId:this.routerVal.category || '', + order: 'desc', + sort: 'releaseTime' }; this.goodsList = []; this.loadData(); diff --git a/pages/tabbar/home/template/tpl.js b/pages/tabbar/home/template/tpl.js index cc5e0fa..007519e 100644 --- a/pages/tabbar/home/template/tpl.js +++ b/pages/tabbar/home/template/tpl.js @@ -20,7 +20,7 @@ export function modelNavigateTo(item) { }); } break; - case "stores": + case "shops": uni.navigateTo({ url: `/pages/product/shopPage?id=${val.id}`, });