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
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
577c17994f06ec7cbe65b6a45209795ad49d75fb
1 parent
c186643e
颜色尺码选择
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
static/js/cart/chose-panel.js
static/js/cart/chose-panel.js
View file @
577c179
...
...
@@ -142,9 +142,9 @@ function changeSizeChosed(newSizeIndex) {
$curSizeBlock
.
removeClass
(
'chosed'
);
sizes
=
$sizeRowList
.
eq
(
newSizeIndex
).
children
();
for
(
i
=
0
;
i
<
sizes
.
length
;
i
++
)
{
if
(
$
(
sizes
[
i
]).
data
(
'
name'
)
===
$curSizeBlock
.
data
(
'name
'
))
{
if
(
$
(
sizes
[
i
]).
data
(
'
id'
)
===
$curSizeBlock
.
data
(
'id
'
))
{
$curSizeBlock
=
$
(
sizes
[
i
]);
queryString
=
'#'
+
$curSizeBlock
.
data
(
'
name
'
);
queryString
=
'#'
+
$curSizeBlock
.
data
(
'
id
'
);
curColorIndex
=
$
(
queryString
).
data
(
'index'
);
$curSizeBlock
.
addClass
(
'chosed'
);
return
$curSizeBlock
.
data
(
'num'
);
...
...
@@ -282,7 +282,7 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
}
else
{
hasChooseSize
=
true
;
index
=
$
(
'#'
+
$this
.
data
(
'
name
'
)).
data
(
'index'
)
-
1
;
index
=
$
(
'#'
+
$this
.
data
(
'
id
'
)).
data
(
'index'
)
-
1
;
// 颜色当前行隐藏
$colorRowList
.
eq
(
curColorIndex
).
addClass
(
'hide'
);
...
...
Please
register
or
login
to post a comment