|
|
@ -930,8 +930,7 @@ Page({ |
|
|
|
|
|
|
|
|
// 加载商品数据 - 优化版带缓存,支持状态优先级
|
|
|
// 加载商品数据 - 优化版带缓存,支持状态优先级
|
|
|
loadGoods: function (isLoadMore = false, forceRefresh = false) { |
|
|
loadGoods: function (isLoadMore = false, forceRefresh = false) { |
|
|
// 允许继续加载的条件:1. 有更多数据;或者 2. 正在加载售空商品
|
|
|
if (isLoadMore && !this.data.hasMoreData) { |
|
|
if (isLoadMore && !this.data.hasMoreData && !this.data.isQueryingSoldOut) { |
|
|
|
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1281,7 +1280,7 @@ Page({ |
|
|
|
|
|
|
|
|
console.log('applyFilters - 开始过滤,原始商品数量:', goods.length, '关键词:', this.data.searchKeyword); |
|
|
console.log('applyFilters - 开始过滤,原始商品数量:', goods.length, '关键词:', this.data.searchKeyword); |
|
|
|
|
|
|
|
|
// 筛选条件:将没有联系人以及销售价的商品不显示在主页面
|
|
|
// 筛选条件:销售价为空并且没有联系人信息的不显示在主页上
|
|
|
filtered = filtered.filter(item => { |
|
|
filtered = filtered.filter(item => { |
|
|
// 广告位不受影响
|
|
|
// 广告位不受影响
|
|
|
if (item.isAd) { |
|
|
if (item.isAd) { |
|
|
|