Commit 06e5451550c1100e897b46f637dbe524af731efa
1 parent
d01eb916
购物车修改
Showing
1 changed file
with
4 additions
and
3 deletions
pages/cart/cart2/cart2.js
@@ -613,6 +613,9 @@ Page({ | @@ -613,6 +613,9 @@ Page({ | ||
613 | th.data.cartlist[i].total_amount+=th.data.cartlist[i].shipping_price; //总金额 | 613 | th.data.cartlist[i].total_amount+=th.data.cartlist[i].shipping_price; //总金额 |
614 | th.data.cartlist[i].order_amount+=th.data.cartlist[i].shipping_price; //总金额 | 614 | th.data.cartlist[i].order_amount+=th.data.cartlist[i].shipping_price; //总金额 |
615 | 615 | ||
616 | + th.data.cartlist[i].total_amount= parseFloat(th.data.cartlist[i].total_amount).toFixed(2); | ||
617 | + th.data.cartlist[i].order_amount=parseFloat(th.data.cartlist[i].order_amount).toFixed(2); | ||
618 | + | ||
616 | //--------------如果使用余额--------------------- | 619 | //--------------如果使用余额--------------------- |
617 | if (th.data.js_use_money == 1) { | 620 | if (th.data.js_use_money == 1) { |
618 | if (umoney > th.data.cartlist[i].order_amount) { | 621 | if (umoney > th.data.cartlist[i].order_amount) { |
@@ -639,8 +642,6 @@ Page({ | @@ -639,8 +642,6 @@ Page({ | ||
639 | all_user_m += th.data.cartlist[i].user_money; | 642 | all_user_m += th.data.cartlist[i].user_money; |
640 | all_coupon_price_m+=th.data.cartlist[i].coupon_price; | 643 | all_coupon_price_m+=th.data.cartlist[i].coupon_price; |
641 | 644 | ||
642 | - console.log('all_coupon_price_m:'+all_coupon_price_m); | ||
643 | - | ||
644 | 645 | ||
645 | } | 646 | } |
646 | 647 | ||
@@ -1016,7 +1017,7 @@ Page({ | @@ -1016,7 +1017,7 @@ Page({ | ||
1016 | if(msg.length>13){ | 1017 | if(msg.length>13){ |
1017 | msg=msg.slice(0, 13) + "\r\n"+ msg.slice(13); | 1018 | msg=msg.slice(0, 13) + "\r\n"+ msg.slice(13); |
1018 | } | 1019 | } |
1019 | - getApp().confirmBox(); | 1020 | + getApp().confirmBox(msg); |
1020 | } | 1021 | } |
1021 | }else{ | 1022 | }else{ |
1022 | console.log("index.js wx.request CheckCallUser statusCode" + res.statusCode); | 1023 | console.log("index.js wx.request CheckCallUser statusCode" + res.statusCode); |