Commit 30b25c02ff04c176561cf71397017be6f4011a08

Authored by 泉州测试
1 parent fe719ab1

fix:跳过立即购买

packageA/pages/goodsInfo/goodsInfo.js
... ... @@ -900,13 +900,19 @@ Page({
900 900  
901 901 });
902 902  
903   - if (cartGoodsNum >= redisNum) {
904   - wx.showModal({
905   - title: '超出活动库存',
906   - });
907   - th.setData({goodsInputNum: redisNum});
908   - return false;
909   - }
  903 + // 跳过<立即购买>
  904 + if(action !="buy"){
  905 +
  906 + if (cartGoodsNum >= redisNum) {
  907 + wx.showModal({
  908 + title: '超出活动库存2',
  909 + });
  910 + th.setData({goodsInputNum: redisNum});
  911 + return false;
  912 + }
  913 +
  914 + }
  915 +
910 916  
911 917 // 每人限购数
912 918 th.data.sele_g.viplimited = th.data.sele_g.buy_limit;
... ...