Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
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
Plain Diff
Browse Files
Authored by
郭成尧
2016-07-18 17:49:59 +0800
Commit
f79b8a685b862545854c4defc78fb979244f8c68
2 parents
c0ae1932
9f656bcd
Merge branch 'release/4.8' of git.yoho.cn:fe/YOHOBUYPC into release/4.8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
web-static/js/cart/cart.js
web-static/js/product/item.js
web-static/js/cart/cart.js
View file @
f79b8a6
...
...
@@ -649,8 +649,8 @@ function addcart(data, cookieList) {
path
:
'/'
});
}
}
else
if
(
d
.
code
===
500
)
{
new
Alert
(
d
.
message
).
show
();
}
else
{
new
Alert
(
d
.
message
===
''
?
'加入购物车失败哦~~'
:
d
.
message
).
show
();
}
});
}
...
...
web-static/js/product/item.js
View file @
f79b8a6
...
...
@@ -322,6 +322,8 @@ $addToCart.click(function() {
$
(
'#balance'
).
slideDown
(
SLIDETIME
);
$
(
'#cart-num'
).
text
(
data
.
data
.
goods_count
);
//更新数目
}
else
{
new
Alert
(
data
.
message
===
''
?
'加入购物车失败哦~~'
:
data
.
message
).
show
();
}
});
});
...
...
Please
register
or
login
to post a comment