Commit 85af1aa135def3f0869098a176fecc77137d14c8

Authored by yvan.ni
1 parent f9d64e06

1、秒杀活动的优化

packageE/pages/cart/cart2/cart2.js
@@ -847,7 +847,7 @@ Page({ @@ -847,7 +847,7 @@ Page({
847 } 847 }
848 }) 848 })
849 if (!isok) { 849 if (!isok) {
850 - var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item.id; 850 + var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item1.id;
851 getApp().request.delete(url, {}); 851 getApp().request.delete(url, {});
852 th.data.ladder_map[item1.prom_id] = -1; 852 th.data.ladder_map[item1.prom_id] = -1;
853 continue; 853 continue;
pages/goods/goodsInfo/goodsInfo.js
@@ -7775,6 +7775,11 @@ Page({ @@ -7775,6 +7775,11 @@ Page({
7775 //找不到活动要剔除 7775 //找不到活动要剔除
7776 if (!item.act_name) continue; 7776 if (!item.act_name) continue;
7777 if ([1,2,4,6].indexOf(item.prom_type)==-1) continue; 7777 if ([1,2,4,6].indexOf(item.prom_type)==-1) continue;
  7778 +
  7779 + var s_time=item.warm_uptime;
  7780 + if(!s_time) item.s_time;
  7781 + if(s_time>ut.gettimestamp()) continue;
  7782 +
7778 new_arr.push(item); 7783 new_arr.push(item);
7779 } 7784 }
7780 7785