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
梁志锋
9 years ago
Commit
4b956ecabb730ca009881ec43170c7839c9f1899
1 parent
ec0164e9
购物车尺码颜色选择
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
static/js/cart/chose-panel.js
static/js/cart/chose-panel.js
View file @
4b956ec
...
...
@@ -92,9 +92,10 @@ function resetColorZeroStock($siblingBlock) {
if
(
!
hasChooseSize
)
{
$siblingBlock
.
find
(
'ul>li'
).
each
(
function
()
{
$
(
this
).
removeClass
(
'zero-stock'
);
if
(
0
===
$
(
this
).
data
(
'num'
))
{
$
(
this
).
addClass
(
'zero-stock'
);
}
else
{
$
(
this
).
removeClass
(
'zero-stock'
);
}
});
...
...
@@ -103,6 +104,8 @@ function resetColorZeroStock($siblingBlock) {
for
(
i
=
0
;
i
<
numArray
.
length
;
i
++
)
{
if
(
'0'
===
numArray
[
i
])
{
$siblingBlock
.
find
(
'.block'
).
eq
(
i
).
addClass
(
'zero-stock'
);
}
else
{
$siblingBlock
.
find
(
'.block'
).
eq
(
i
).
removeClass
(
'zero-stock'
);
}
}
}
...
...
Please
register
or
login
to post a comment