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
weiguang.xie
9 years ago
Commit
9317f492d8804d59607d62531edfa2bea3e5946f
2 parents
7ff83240
3be59a67
Merge branch 'fix/issue' into 'develop'
购物车页面,添加功能:库存不足的商品禁止勾选 See merge request !63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
static/js/cart/good.js
static/js/cart/good.js
View file @
9317f49
...
...
@@ -42,6 +42,11 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
var
goodsList
=
[],
goodInfo
=
{};
if
(
!
$this
.
hasClass
(
'icon-cb-checked'
)
&&
$this
.
siblings
(
'.info'
).
find
(
'.low-stocks'
).
length
>
0
)
{
tip
.
show
(
'库存不足,无法购买'
);
return
false
;
}
goodInfo
.
goods_type
=
$
(
'#cartType'
).
val
();
goodInfo
.
selected
=
$this
.
hasClass
(
'icon-cb-checked'
)
?
'N'
:
'Y'
;
goodInfo
.
product_sku
=
id
;
...
...
Please
register
or
login
to post a comment