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
04239f95700f8930a3171f0030c7fdcae7be9c8d
1 parent
5c921b8b
购物车修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
static/js/cart/chose-panel.js
static/js/cart/chose-panel.js
View file @
04239f9
...
...
@@ -99,7 +99,7 @@ function resetColorZeroStock($siblingBlock) {
});
}
else
{
numArray
=
(
$curSizeBlock
.
data
(
'numstr'
)
+
''
).
split
(
'/'
)
numArray
=
(
$curSizeBlock
.
data
(
'numstr'
)
+
''
).
split
(
'/'
)
;
for
(
i
=
0
;
i
<
numArray
.
length
;
i
++
)
{
if
(
'0'
===
numArray
[
i
])
{
$siblingBlock
.
find
(
'.block'
).
eq
(
i
).
addClass
(
'zero-stock'
);
...
...
@@ -135,6 +135,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
$preSiblingBlock
,
$curSizeRow
,
numArray
,
i
,
curGoodNum
;
var
$siblingBlock
=
$this
.
closest
(
'.block-list'
).
siblings
(
':first'
);
...
...
@@ -155,7 +156,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
$this
.
removeClass
(
'zero-stock'
);
if
(
$curSizeBlock
)
{
numArray
=
(
$curSizeBlock
.
data
(
'numstr'
)
+
''
).
split
(
'/'
)
numArray
=
(
$curSizeBlock
.
data
(
'numstr'
)
+
''
).
split
(
'/'
)
;
for
(
i
=
0
;
i
<
numArray
.
length
;
i
++
)
{
if
(
'0'
===
numArray
[
i
])
{
$
(
'.color-list .block'
).
eq
(
i
).
addClass
(
'zero-stock'
);
...
...
Please
register
or
login
to post a comment