diff --git a/pages/index/index.js b/pages/index/index.js index 302bfde..d606077 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -766,7 +766,7 @@ Page({ updatedGoods = newGoods } - const filteredGoods = this.applyFilters(updatedGoods, false) + const filteredGoods = this.applyFilters(updatedGoods, true) const groupedGoods = this.groupGoodsForStaggeredLayout(filteredGoods); this.setData({ @@ -861,7 +861,7 @@ Page({ const combinedGoods = [...existingGoods, ...uniqueNewGoods] // 对合并后的完整数据进行过滤和排序 - const filteredGoods = this.applyFilters(combinedGoods, false) + const filteredGoods = this.applyFilters(combinedGoods, true) const groupedGoods = this.groupGoodsForStaggeredLayout(filteredGoods); const currentCategory = this.data.selectedCategory === '全部' ? '' : this.data.selectedCategory;