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
biao
9 years ago
Commit
78f52a807ccce734d66d427e42b9096fa8434c78
1 parent
5b533e16
禁止库存不足的商品被勾选. code review by XWG
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 @
78f52a8
...
...
@@ -43,6 +43,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
;
goodInfo
.
selected
=
$this
.
hasClass
(
'icon-cb-checked'
)
?
'N'
:
'Y'
;
goodInfo
.
product_sku
=
id
;
...
...
Please
register
or
login
to post a comment