Commit e343e3d8c497b7aed618aa243166765c60e3a6ca

Authored by yvan.ni
1 parent 1af8561d

秒杀预热的时候,普通商品购买

pages/goods/goodsInfo/goodsInfo.js
... ... @@ -3529,6 +3529,12 @@ Page({
3529 3529 success: function (t) {
3530 3530 if (t.data.code == 0) {
3531 3531 var g_buy_num = t.data.data.goodsbuynum;
  3532 +
  3533 + //如果是秒杀的时候
  3534 + if(th.data.prom_type==0 && gd.prom_type == 1 ){
  3535 + gd.prom_type= 0;
  3536 + }
  3537 +
3532 3538 if (gd.prom_type == 1 || gd.prom_type == 2 || gd.prom_type == 4 || gd.prom_type == 6) {
3533 3539 //----获取活动购买数----
3534 3540 getApp().request.get("/api/weshop/ordergoods/getUserBuyGoodsNum", {
... ...