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
bfdedcc3ff48da529d2fa54401cb93ab17ba4e7d
1 parent
153e1c92
尺码选色选择
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletions
static/js/cart/chose-panel.js
static/js/cart/chose-panel.js
View file @
bfdedcc
...
...
@@ -150,8 +150,22 @@ function changeSizeChosed(newSizeIndex) {
return
$curSizeBlock
.
data
(
'num'
);
}
}
//老的选中尺码在新选中的颜色对应尺码中不存在,需要下述1,2,3,4
// 1.重置尺码选择的标志变量.
$curSizeBlock
=
null
;
return
0
;
hasChooseSize
=
false
;
// 2.当前颜色行隐藏
$colorRowList
.
eq
(
curColorIndex
).
addClass
(
'hide'
);
// 3.目标颜色行第一行显示
$colorRowList
.
eq
(
0
).
removeClass
(
'hide'
);
// 4.老的选中颜色去掉勾选,新的选中颜色加上勾选
//changeColorChosed(0);
return
-
1
;
}
return
0
;
}
...
...
@@ -221,6 +235,14 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
$sizeRowList
.
eq
(
index
+
1
).
removeClass
(
'hide'
);
curSizeIndex
=
index
+
1
;
// 特殊处理
if
(
-
1
===
curGoodNum
)
{
//index = $this.data('index') - 1;
}
$curColorBlock
=
$this
;
// 修改颜色时修改商品图片
...
...
Please
register
or
login
to post a comment