Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
93662fd2a7edfa4ae5f78dc51bbb4e8aa739aa19
1 parent
b86a7088
添加来自购物车的链接默认不使用优惠券的逻辑
Code Review by Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
static/js/cart/order-ensure.js
static/js/cart/order-ensure.js
View file @
93662fd
...
...
@@ -40,6 +40,12 @@ if ($couponUse.data('name') !== orderInfo('couponName')) {
orderInfo
(
'couponName'
,
null
);
}
// 来自购物车的链接默认不使用优惠券
if
(
document
.
referrer
&&
document
.
referrer
.
indexOf
(
'/cart/index/index'
)
!==
-
1
)
{
orderInfo
(
'couponCode'
,
null
);
orderInfo
(
'couponName'
,
null
);
}
if
(
queryString
.
cartType
||
queryString
.
carttype
||
!
orderInfo
(
'cartType'
))
{
orderInfo
(
'cartType'
,
queryString
.
cartType
||
queryString
.
carttype
||
'ordinary'
);
}
...
...
Please
register
or
login
to post a comment