...
|
...
|
@@ -82,6 +82,10 @@ class OrderModel |
|
|
$result[$key]['orderNum'] = $vo['order_code'];
|
|
|
$result[$key]['orderStatus'] = $vo['status_str'];
|
|
|
$result[$key]['sumCost'] = $vo['amount'];
|
|
|
// 如果运费大于0,会显示运费
|
|
|
if (floatval($vo['shipping_cost']) > 0) {
|
|
|
$result[$key]['shippingCost'] = $vo['shipping_cost'];
|
|
|
}
|
|
|
//类内调用格式化订单商品数据方法
|
|
|
$result[$key]['goods'] = Helpers::formatOrderGoods($vo['order_goods'], $count);
|
|
|
$result[$key]['detailUrl'] = Helpers::url('/home/orderdetail', array('order_code' => $vo['order_code']));
|
...
|
...
|
|