Commit c2f98afc38e86e04d11b696276cc709f7b64b990

Authored by yvan.ni
1 parent 26002bcc

商品的优惠促销的市场价的优惠促销取价的bug优化

packageE/pages/cart/cart2/cart2.js
@@ -6817,7 +6817,7 @@ Page({ @@ -6817,7 +6817,7 @@ Page({
6817 switch (ob.discount_field){ 6817 switch (ob.discount_field){
6818 case 0: f_price=item.goods_price;break; 6818 case 0: f_price=item.goods_price;break;
6819 case 1: f_price=item.shop_price;break; 6819 case 1: f_price=item.shop_price;break;
6820 - case 2: f_price=item.market_price;break; 6820 + case 2: f_price=item.goods_market_price;break;
6821 } 6821 }
6822 } 6822 }
6823 6823
@@ -8344,6 +8344,10 @@ Page({ @@ -8344,6 +8344,10 @@ Page({
8344 //--- 不参与优惠促销的开关 --- 8344 //--- 不参与优惠促销的开关 ---
8345 no_cj_prom: function (e) { 8345 no_cj_prom: function (e) {
8346 8346
  8347 +
  8348 + //清空优惠促销的内容
  8349 + this.data.prom_goods_map = {};
  8350 +
8347 let th=this; 8351 let th=this;
8348 let can_cx_idx = e.currentTarget.dataset.can_cx_idx; //多促销的索引 8352 let can_cx_idx = e.currentTarget.dataset.can_cx_idx; //多促销的索引
8349 let pidx = e.currentTarget.dataset.pidx; //订单索引 8353 let pidx = e.currentTarget.dataset.pidx; //订单索引