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
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
e3beda3d7bc1d31e369d91390528bda8f40250a4
2 parents
328d215f
4fe7cb88
Merge branch 'hotfix/firefoxCart' into gray
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
web-static/js/cart/cart.js
web-static/js/cart/cart.js
View file @
e3beda3
...
...
@@ -76,7 +76,7 @@ function choiceOut(data) {
}
}).
then
(
function
(
d
)
{
if
(
d
.
code
===
200
)
{
window
.
history
.
go
(
0
);
window
.
location
.
reload
(
);
}
});
}
...
...
@@ -433,7 +433,7 @@ function cartDel(data, delUrl, cookieList) {
path
:
'/'
});
}
window
.
history
.
go
(
0
);
window
.
location
.
reload
(
);
}
else
if
(
d
.
code
===
300
)
{
$
(
'.loading'
).
hide
();
new
Alert
(
d
.
message
).
show
();
...
...
@@ -631,7 +631,7 @@ function countAJAX(data) {
data
:
data
}).
then
(
function
(
d
)
{
if
(
d
.
code
===
200
)
{
window
.
history
.
go
(
0
);
window
.
location
.
reload
(
);
}
else
{
new
Alert
(
d
.
message
===
''
?
'加入购物车失败哦~~'
:
d
.
message
).
show
();
}
...
...
@@ -683,7 +683,7 @@ function addcart(data, cookieList) {
data
:
data
}).
then
(
function
(
d
)
{
if
(
d
.
code
===
200
)
{
window
.
history
.
go
(
0
);
window
.
location
.
reload
(
);
if
(
cookieList
)
{
window
.
setCookie
(
'cart-del-list'
,
JSON
.
stringify
(
cookieList
),
{
domain
:
'.yohobuy.com'
,
...
...
@@ -927,10 +927,10 @@ $('.btn_account').on('click', function() {
var
productId
=
[];
$
(
'.pay-wapper input:checked'
).
parents
(
'tr'
).
each
(
function
()
{
if
(
$
(
this
).
attr
(
'data-pid'
))
{
productId
.
push
(
$
(
this
).
attr
(
'data-pid'
));
productId
.
push
(
$
(
this
).
attr
(
'data-pid'
));
}
});
// 结算点击埋点
window
.
addPoint
(
'YB_SC_TOBUY_CLICK'
,
{
PRD_ID
:
productId
.
join
(
','
)});
...
...
@@ -957,4 +957,4 @@ $goodsDetail.on('selectstart', function() {
scrollToFirst
();
// 购物车默认埋点
window
.
addPoint
(
'YB_SC'
);
\ No newline at end of file
window
.
addPoint
(
'YB_SC'
);
...
...
Please
register
or
login
to post a comment