Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
uedxwg
9 years ago
Commit
3a936b5e67b3f6cff9b7e9eb899a1f80d9209d94
2 parents
f8c47794
4b956eca
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
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 @
3a936b5
...
...
@@ -96,9 +96,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'
);
}
});
...
...
@@ -107,6 +108,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