Commit 1857e9b84526a7cfce6ba91348b7168d3645f463

Authored by yvan.ni
1 parent 7cb97a82

计算优惠促销活动---

packageE/pages/cart/cart2/cart2.js
@@ -3471,12 +3471,11 @@ Page({ @@ -3471,12 +3471,11 @@ Page({
3471 3471
3472 var order_prom_list = {}; 3472 var order_prom_list = {};
3473 //--判断有没有优惠活动-- 3473 //--判断有没有优惠活动--
3474 - if (th.data.order_prom[item.pickup_id]) {  
3475 - if (th.data.formData.order_prom_amount > 0) {  
3476 - order_prom_list.order_prom_id = th.data.formData.order_prom_id;  
3477 - order_prom_list.order_prom_amount = th.data.formData.order_prom_amount;  
3478 - } 3474 + if (th.data.formData.order_prom_amount > 0) {
  3475 + order_prom_list.order_prom_id = th.data.formData.order_prom_id;
  3476 + order_prom_list.order_prom_amount = th.data.formData.order_prom_amount;
3479 } 3477 }
  3478 +
3480 3479
3481 //--判断优惠活动的提交-- 3480 //--判断优惠活动的提交--
3482 if (th.data.formData.cut_price > 0) { 3481 if (th.data.formData.cut_price > 0) {