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
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
2016-07-18 17:39:52 +0800
Commit
2bea43f8f84f9908e87bebc625a4ff43cd66d10f
1 parent
cf64bfaf
加入购物车失败,弹框提示
Show 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 @
2bea43f
...
...
@@ -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 @
2bea43f
...
...
@@ -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