Commit 2b97296d1873d5e3cce59f83b008afee44baadb1
1 parent
e44d50bb
购物车问题
Showing
1 changed file
with
4 additions
and
1 deletions
pages/cart/cart2/cart2.js
@@ -625,7 +625,10 @@ Page({ | @@ -625,7 +625,10 @@ Page({ | ||
625 | } | 625 | } |
626 | 626 | ||
627 | th.data.cartlist[i].user_money = parseFloat(th.data.cartlist[i].user_money).toFixed(2); | 627 | th.data.cartlist[i].user_money = parseFloat(th.data.cartlist[i].user_money).toFixed(2); |
628 | - th.data.cartlist[i].coupon_price=coupon_price.toFixed(2); | 628 | + |
629 | + if (coupon_price>0) th.data.cartlist[i].coupon_price=coupon_price.toFixed(2); | ||
630 | + else th.data.cartlist[i].coupon_price = coupon_price | ||
631 | + | ||
629 | th.data.cartlist[i].goods_price = o_price.toFixed(2); | 632 | th.data.cartlist[i].goods_price = o_price.toFixed(2); |
630 | th.data.cartlist[i].order_amount= th.data.cartlist[i].order_amount- th.data.cartlist[i].user_money; //会员使用余额 | 633 | th.data.cartlist[i].order_amount= th.data.cartlist[i].order_amount- th.data.cartlist[i].user_money; //会员使用余额 |
631 | 634 |