Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
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
397e5622cd9194e721c76adc52967196e7037ef9
1 parent
a9110184
修复确认订单页面,去勾选有货币后,进入优惠券选择使用优惠券成功后,返回之后yoho币被重新选中中
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 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 @
397e562
...
...
@@ -70,10 +70,17 @@
{
{#if
yohoCoin
}
}
<span
class=
"desc"
>可抵¥
{
{yohoCoin
}
}</span>
{
{#if
useYohoCoin
}
}
<span
class=
"coin-check"
>
<em>-
¥
{
{yohoCoin
}
}</em>
<i
class=
"iconfont checkbox icon-cb-checked"
></i>
</span>
{
{else
}
}
<span
class=
"coin-check"
>
<em
style=
"display: none;"
>-
¥
{
{yohoCoin
}
}</em>
<i
class=
"iconfont checkbox icon-checkbox"
></i>
</span>
{
{/if
}
}
{
{^
}
}
<span
class=
"not-used coin-check"
>
无YOHO币可用
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
397e562
...
...
@@ -441,7 +441,8 @@ class CartModel
}
// 有货币
$result
[
'yohoCoin'
]
=
(
isset
(
$orderCompute
[
'use_yoho_coin'
])
&&
!
empty
(
$orderCompute
[
'use_yoho_coin'
]))
?
$orderCompute
[
'use_yoho_coin'
]
:
$payReturn
[
'yoho_coin'
];
$result
[
'yohoCoin'
]
=
$payReturn
[
'yoho_coin'
];
$result
[
'useYohoCoin'
]
=
isset
(
$orderCompute
[
'use_yoho_coin'
])
?
$orderCompute
[
'use_yoho_coin'
]
:
$payReturn
[
'yoho_coin'
];
// 订单数据
if
(
isset
(
$payReturn
[
'shopping_cart_data'
])
&&
!
empty
(
$payReturn
[
'shopping_cart_data'
]))
{
...
...
Please
register
or
login
to post a comment