Commit de2d15df6d22e9c663e7073770d073e6604b971f
1 parent
6524fe1a
送专享礼包,送旧礼包,送月包,送优惠券
Showing
1 changed file
with
12 additions
and
4 deletions
packageE/pages/cart/cart2/cart2.js
| ... | ... | @@ -2760,9 +2760,16 @@ Page({ |
| 2760 | 2760 | var cart_item = c_arr[i]; |
| 2761 | 2761 | cart_item.prom_pt_json=[]; |
| 2762 | 2762 | //要清空 |
| 2763 | - cart_item.g_zxlb_num=[]; | |
| 2764 | - cart_item.g_lb_num=[]; | |
| 2765 | - cart_item.g_monthlb_num=[]; | |
| 2763 | + cart_item.g_zxlb_num=[]; //专享礼包 | |
| 2764 | + cart_item.g_lb_num=[]; //旧礼包 | |
| 2765 | + cart_item.g_monthlb_num=[]; //月包 | |
| 2766 | + cart_item.g_coupon_num=[]; //送优惠券 | |
| 2767 | + | |
| 2768 | + cart_item.s_coupon_id=''; | |
| 2769 | + cart_item.s_libao=''; | |
| 2770 | + cart_item.zx_libao=''; | |
| 2771 | + cart_item.monthlibao=''; | |
| 2772 | + | |
| 2766 | 2773 | } |
| 2767 | 2774 | |
| 2768 | 2775 | //调用函数计算每件商品的单价 |
| ... | ... | @@ -4851,6 +4858,7 @@ Page({ |
| 4851 | 4858 | if (t_item.s_intValue > 0) { |
| 4852 | 4859 | order_prom_list.give_integral = t_item.s_intValue; |
| 4853 | 4860 | } |
| 4861 | + | |
| 4854 | 4862 | if (t_item.s_coupon_id) { |
| 4855 | 4863 | order_prom_list.give_coupon_id = t_item.s_coupon_id; |
| 4856 | 4864 | order_prom_list.g_coupon_num = JSON.stringify(t_item.g_coupon_num); |
| ... | ... | @@ -5290,7 +5298,7 @@ Page({ |
| 5290 | 5298 | // debugger |
| 5291 | 5299 | var str = JSON.stringify(pdata); |
| 5292 | 5300 | console.log(str,'aaaaaaaaaaaaaaa'); |
| 5293 | - //return false; | |
| 5301 | + return false; | |
| 5294 | 5302 | |
| 5295 | 5303 | wx.showLoading({ title: "加载中" }); |
| 5296 | 5304 | th.setData({ submit: 1, }) | ... | ... |