Commit 6af021debfa4593b04cea1097ab36b7c83ccb566

Authored by yvan.ni
1 parent 1248e1a7

秒杀的失效商品的优化

pages/goods/goodsInfo/goodsInfo.js
... ... @@ -2019,7 +2019,8 @@ Page({
2019 2019 //return s.my_warnning("库存不足!", 0, th);
2020 2020 }
2021 2021  
2022   - if (item.goods_num + th.data.goodsInputNum + th.data.prom_buy_num > th.data.prom_buy_limit && (th.data.prom_type == 1 || th.data.prom_type == 2)) {
  2022 + //秒杀有限购的时候,同时不是普通购买
  2023 + if ( item.goods_num + th.data.goodsInputNum + th.data.prom_buy_num > th.data.prom_buy_limit && th.data.prom_buy_limit>0 && !newd.is_pd_normal && (th.data.prom_type == 1 || th.data.prom_type == 2)) {
2023 2024 wx.showToast({
2024 2025 title: '此商品已在购物车,去购物车结算!',
2025 2026 icon: 'none',
... ...