修复结算页商品总数已经商品金额显示错误的bug
Code Review By Rock Zhang
Showing
2 changed files
with
5 additions
and
1 deletions
@@ -71,7 +71,7 @@ | @@ -71,7 +71,7 @@ | ||
71 | {{/each}} | 71 | {{/each}} |
72 | </div> | 72 | </div> |
73 | </section> | 73 | </section> |
74 | - <div class="goods-num">共{{num}}件商品 合计<span>¥{{price}}</span></div> | 74 | + <div class="goods-num">共{{num}}件商品 合计<span>{{goodsPrice}}</span></div> |
75 | 75 | ||
76 | <section class="block"> | 76 | <section class="block"> |
77 | <ul class="sale-invoice"> | 77 | <ul class="sale-invoice"> |
@@ -504,6 +504,10 @@ class CartModel | @@ -504,6 +504,10 @@ class CartModel | ||
504 | $result['cartPayData'] = isset($orderCompute['promotion_formula_list']) ? $orderCompute['promotion_formula_list'] : $payReturn['shopping_cart_data']['promotion_formula_list']; | 504 | $result['cartPayData'] = isset($orderCompute['promotion_formula_list']) ? $orderCompute['promotion_formula_list'] : $payReturn['shopping_cart_data']['promotion_formula_list']; |
505 | $price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount']; | 505 | $price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount']; |
506 | $result['price'] = Helpers::transPrice($price); | 506 | $result['price'] = Helpers::transPrice($price); |
507 | + // 订单商品数 | ||
508 | + $result['num'] = $payReturn['shopping_cart_data']['goods_count']; | ||
509 | + // 商品金额 | ||
510 | + $result['goodsPrice'] = $payReturn['shopping_cart_data']['str_order_amount']; | ||
507 | } | 511 | } |
508 | 512 | ||
509 | // 发票有关数据 | 513 | // 发票有关数据 |
-
Please register or login to post a comment