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
2dc38416d4f03bb29ef3ee7da4cf6affb1f465dd
1 parent
1de999d3
修复结算页商品总数已经商品金额显示错误的bug
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
template/m.yohobuy.com/actions/cart/index/order-ensure.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
template/m.yohobuy.com/actions/cart/index/order-ensure.phtml
View file @
2dc3841
...
...
@@ -71,7 +71,7 @@
{
{/each
}
}
</div>
</section>
<div
class=
"goods-num"
>共
{
{num
}
}件商品
合计<span>
¥
{
{p
rice
}
}</span></div>
<div
class=
"goods-num"
>共
{
{num
}
}件商品
合计<span>
{
{goodsP
rice
}
}</span></div>
<section
class=
"block"
>
<ul
class=
"sale-invoice"
>
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
2dc3841
...
...
@@ -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'
];
}
// 发票有关数据
...
...
Please
register
or
login
to post a comment