Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
08e5bcb5a27277e9905246f05ead0d5912927d99
1 parent
a3e4be8c
如果运费大于0,订单列表页显示运费信息
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
template/m.yohobuy.com/partials/me/order/order.phtml
yohobuy/m.yohobuy.com/application/models/Home/Order.php
template/m.yohobuy.com/partials/me/order/order.phtml
View file @
08e5bcb
...
...
@@ -10,6 +10,7 @@
</section>
<footer class="footer">
共{{count}}件商品 实付<span class="sum-cost">¥{{sumCost}}</span>
{{#shippingCost}}(含运费¥{{.}}){{/shippingCost}}
</footer>
{{!-- 对应订单状态的操作逻辑 --}}
...
...
yohobuy/m.yohobuy.com/application/models/Home/Order.php
View file @
08e5bcb
...
...
@@ -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'
]));
...
...
Please
register
or
login
to post a comment