Authored by Rock Zhang

修复结算页商品总数已经商品金额显示错误的bug

Code Review By Rock Zhang
... ... @@ -71,7 +71,7 @@
{{/each}}
</div>
</section>
<div class="goods-num">共{{num}}件商品 合计<span>¥{{price}}</span></div>
<div class="goods-num">共{{num}}件商品 合计<span>{{goodsPrice}}</span></div>
<section class="block">
<ul class="sale-invoice">
... ...
... ... @@ -504,6 +504,10 @@ class CartModel
$result['cartPayData'] = isset($orderCompute['promotion_formula_list']) ? $orderCompute['promotion_formula_list'] : $payReturn['shopping_cart_data']['promotion_formula_list'];
$price = isset($orderCompute['last_order_amount']) ? $orderCompute['last_order_amount'] : $payReturn['shopping_cart_data']['last_order_amount'];
$result['price'] = Helpers::transPrice($price);
// 订单商品数
$result['num'] = $payReturn['shopping_cart_data']['goods_count'];
// 商品金额
$result['goodsPrice'] = $payReturn['shopping_cart_data']['str_order_amount'];
}
// 发票有关数据
... ...