优化商品筛选楼层装修判断

master
lemon橪 2021-11-04 10:53:52 +08:00
parent b1c518c3a8
commit 68bc1d6974
2 changed files with 5 additions and 1 deletions

View File

@ -501,6 +501,7 @@ export default {
this.sortParams = { this.sortParams = {
pageNumber: 1, pageNumber: 1,
pageSize: 10, pageSize: 10,
categoryId:this.routerVal.category || ''
}; };
this.sortPopup = false; this.sortPopup = false;
this.initSortGoods(); this.initSortGoods();
@ -509,6 +510,9 @@ export default {
this.params = { this.params = {
pageNumber: 1, pageNumber: 1,
pageSize: 10, pageSize: 10,
categoryId:this.routerVal.category || '',
order: 'desc',
sort: 'releaseTime'
}; };
this.goodsList = []; this.goodsList = [];
this.loadData(); this.loadData();

View File

@ -20,7 +20,7 @@ export function modelNavigateTo(item) {
}); });
} }
break; break;
case "stores": case "shops":
uni.navigateTo({ uni.navigateTo({
url: `/pages/product/shopPage?id=${val.id}`, url: `/pages/product/shopPage?id=${val.id}`,
}); });