Commit 568ab5469d49fcc930bbd4bb16da83fee8366a89

Authored by yvan.ni
1 parent 2f8fab9f

立即购买的测试bug优化

packageE/pages/cart/cart2/cart2.js
... ... @@ -1237,7 +1237,8 @@ Page({
1237 1237 pickup_id:item.pick_id,
1238 1238 pickup_name:pikname,
1239 1239 distr_type:item.pickup_distr_type,
1240   - keyid:item.keyid
  1240 + keyid:item.keyid,
  1241 + is_same_city:item.is_same_city,
1241 1242 };
1242 1243 var e_t = 0, dis_t = 0;//物流方式,配送方式
1243 1244 if (item.distr_type == 0) {
... ... @@ -1403,8 +1404,6 @@ Page({
1403 1404 break;
1404 1405 }
1405 1406  
1406   - debugger;
1407   -
1408 1407  
1409 1408 item1.prom_id = 0;
1410 1409 item1.prom_type = 0;
... ... @@ -1770,6 +1769,7 @@ Page({
1770 1769 ladder_calc.fir_set_arr(u_item1, th);
1771 1770 }
1772 1771  
  1772 +
1773 1773 //-- 要判断总开关有没有同城配送 --
1774 1774 if(th.data.is_same_city) {
1775 1775 //----- 判断每一个商品的配送方式,和门店的配送方式 -------
... ... @@ -8986,7 +8986,7 @@ Page({
8986 8986  
8987 8987 let pk_ord_map=order_prom_map_ck[pickid];
8988 8988 pk_ord_map.shop_price_all += item.shop_price_y * item.buynum;
8989   - pk_ord_map.market_price_all += item.goods_market_price * item.buynum;
  8989 + pk_ord_map.market_price_all += item.market_price * item.buynum;
8990 8990  
8991 8991 },
8992 8992  
... ...