Commit 04fc0d64fab3b40cc0b71db85ba548a5e43d8cdd
1 parent
0f38a91a
多赠品的包邮规则的优化
Showing
1 changed file
with
4 additions
and
4 deletions
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -7217,8 +7217,8 @@ Page({ |
7217 | 7217 | var pk_list_goods = alllist[index].goods; |
7218 | 7218 | |
7219 | 7219 | |
7220 | - var pos=this.find_pro_last(pk_list_goods,3,item_map.prom_id); | |
7221 | - var fd_gd=ord_goods[pos] | |
7220 | + var pos=this.find_pro_last(pk_list_goods,3,this.data.gf_prom_id); | |
7221 | + var fd_gd=pk_list_goods[pos] | |
7222 | 7222 | |
7223 | 7223 | |
7224 | 7224 | var url = "/api/weshop/cart/delGift?store_id=" + os.stoid + "&user_id=" |
... | ... | @@ -7274,8 +7274,8 @@ Page({ |
7274 | 7274 | |
7275 | 7275 | //赠品的优惠要和商品的一样 |
7276 | 7276 | if(fd_gd){ |
7277 | - newd.is_post_temp=fd.is_post_temp; | |
7278 | - newd.is_order_yh=fd.is_order_yh; | |
7277 | + newd.is_post_temp=fd_gd.is_post_temp; | |
7278 | + newd.is_order_yh=fd_gd.is_order_yh; | |
7279 | 7279 | } |
7280 | 7280 | |
7281 | 7281 | //-- 如果是代发商品的时候 -- | ... | ... |