Commit f1a29054e4b5048ee23fbdf3918adb8a85b485ec

Authored by WXD-SEASON\season
1 parent f9782f73

秒杀修改

pages/cart/cart2/cart2.js
... ... @@ -779,10 +779,10 @@ Page({
779 779 }
780 780 }
781 781  
782   - if(gg.prom_type){
  782 +
783 783 gd.prom_type=gg.prom_type;
784 784 gd.prom_id=gg.prom_id;
785   - }
  785 +
786 786 switch (gd.prom_type) {
787 787 case 0:
788 788 case 2:
... ...
pages/goods/goodsInfo/goodsInfo.js
... ... @@ -1399,7 +1399,7 @@ Page({
1399 1399 add_cart_next(e, t, a, o, newd, CanOutQty) {
1400 1400 var th = this, i = getApp().request;
1401 1401 //---如果商品不是积分购和拼团,要判断一个是否要进行等级价的判断------
1402   - if (o.prom_type != 1 && ((o.prom_type != 6 && o.prom_type != 4) || th.data.is_normal)) {
  1402 + if ((o.prom_type != 1 || o.prom_id<=0) && ((o.prom_type != 6 && o.prom_type != 4) || th.data.is_normal)) {
1403 1403 var conf = th.data.bconfig;
1404 1404 if (conf.switch_list && getApp().globalData.userInfo['card_field'] && getApp().globalData.userInfo['card_expiredate']) {
1405 1405 var s_list = JSON.parse(conf.switch_list);
... ...