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
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
db3751ecb75d021b1972a0ff9bfb3e6cb9eea264
2 parents
6eb32ca7
bc8fc6e6
Merge branch 'beta' of
http://git.dev.yoho.cn/web/yohobuy
into beta
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
static/js/cart/order-info.js
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
static/js/cart/order-info.js
View file @
db3751e
...
...
@@ -14,7 +14,7 @@ function init() {
deliveryId
:
1
,
deliveryTimeId
:
1
,
paymentTypeId
:
1
,
yohoCoin
:
$
(
'.coin'
).
data
(
'yoho-coin'
)
||
0
,
yohoCoin
:
0
,
addressId
:
null
,
couponCode
:
null
,
couponName
:
null
,
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
db3751e
...
...
@@ -486,7 +486,7 @@ class CartModel
// 优惠券数据
$coupons
=
array
(
'couponName'
=>
''
);
if
(
!
empty
(
$orderCompute
[
'coupon_amount'
]
))
{
if
(
isset
(
$orderCompute
[
'coupon_amount'
])
&&
(
!
empty
(
$orderCompute
[
'coupon_amount'
])
||
(
$orderCompute
[
'coupon_amount'
]
===
0
&&
$orderCompute
[
'shipping_cost'
]
===
0
)
))
{
$coupons
[
'couponName'
]
=
$orderInfo
[
'couponName'
];
}
$result
[
'coupon'
]
=
$coupons
;
...
...
Please
register
or
login
to post a comment