Commit ab01a6c457cfa7cc9f59c68d41ca3dd2906f3d18
1 parent
a52a11ba
立即购买 赠品要有prom_id
Showing
1 changed file
with
5 additions
and
1 deletions
pages/cart/cart2/cart2.js
... | ... | @@ -445,6 +445,8 @@ Page({ |
445 | 445 | if(num>data['gift_storecount']) num=0; |
446 | 446 | if(num>0){ |
447 | 447 | var ob={}; |
448 | + ob.is_gift=1; | |
449 | + ob.prom_id=data.prom_id; | |
448 | 450 | ob.goods_id=data.gift_goods_id; |
449 | 451 | ob.goods_name=data.gift_goods_name; |
450 | 452 | ob.goods_color=data.gift_goods_color; |
... | ... | @@ -1440,6 +1442,7 @@ Page({ |
1440 | 1442 | 'store_id': oo.stoid, |
1441 | 1443 | 'is_gift':1, |
1442 | 1444 | 'gift_id':gift_gg.gift_id, |
1445 | + 'prom_id':gift_gg.prom_id, | |
1443 | 1446 | }; |
1444 | 1447 | item.order_goods.push(g_goods); |
1445 | 1448 | } |
... | ... | @@ -1600,7 +1603,7 @@ Page({ |
1600 | 1603 | |
1601 | 1604 | if (pdata.length==0) return; |
1602 | 1605 | var str = JSON.stringify(pdata); |
1603 | - | |
1606 | + | |
1604 | 1607 | wx.showLoading({title: "加载中"}); |
1605 | 1608 | wx.request({ |
1606 | 1609 | url: oo.url + '/api/weshop/order/createWxdOrder', |
... | ... | @@ -2560,6 +2563,7 @@ Page({ |
2560 | 2563 | } |
2561 | 2564 | arr.s_libao=get_data.libao; |
2562 | 2565 | arr.s_lb_num=get_data.lb_num; |
2566 | + arr.prom_id=prom_id; | |
2563 | 2567 | } |
2564 | 2568 | func(arr); |
2565 | 2569 | }) | ... | ... |