Merged
Merge Request #917 · created by 后端研发-苏明海


Dev


From dev into test

Merged by 后端研发-苏明海

1 participants

pages/cart/cart/cart.js
@@ -551,7 +551,7 @@ Page({ @@ -551,7 +551,7 @@ Page({
551 551
552 }else{ 552 }else{
553 //未找到商品的活动 553 //未找到商品的活动
554 - is_flag = 0; 554 + isok = 0;
555 } 555 }
556 }) 556 })
557 if (!isok){ 557 if (!isok){
pages/cart/cart2/zh_calculate.js
@@ -15,6 +15,7 @@ module.exports = { @@ -15,6 +15,7 @@ module.exports = {
15 let act_item = zh_prom_goods[i]; 15 let act_item = zh_prom_goods[i];
16 let act_goos = act_item.gdlist; 16 let act_goos = act_item.gdlist;
17 let act = act_item.act; 17 let act = act_item.act;
  18 + if(!act) continue;
18 19
19 let all_num = 0; //商品数量之和 20 let all_num = 0; //商品数量之和
20 let all_price0 = 0; //商品数量之和 21 let all_price0 = 0; //商品数量之和
@@ -103,7 +104,7 @@ module.exports = { @@ -103,7 +104,7 @@ module.exports = {
103 } 104 }
104 105
105 //当满足组合的要求:总数要满足,起购数要满足 106 //当满足组合的要求:总数要满足,起购数要满足
106 - if (all_num >= act.zhbuyqty && !need_to_buy) { 107 + if (act && all_num >= act.zhbuyqty && !need_to_buy) {
107 108
108 //商品的列表 109 //商品的列表
109 for (var u in act_goos) { 110 for (var u in act_goos) {