Browse Source

修复默认筛选下在售商品出现在售空商品之后的问题

pull/11/head
徐飞洋 2 months ago
parent
commit
bba02d2bf6
  1. 4
      pages/index/index.js

4
pages/index/index.js

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

Loading…
Cancel
Save