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
609034a7f4155cee94e1420e3682c7d9a14c9841
1 parent
20b20fb4
购物车尺码和颜色修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
static/js/cart/chose-panel.js
static/js/cart/chose-panel.js
View file @
609034a
...
...
@@ -124,11 +124,6 @@ function changeGoodImgWhenClickColor() {
}
}
//function resetHasSelectedNum() {
// $allChoseItems.find('.num .left-num').html('剩余' + 1 + '件');
// $leftNum.val(1);
//}
init
();
$yohoPage
.
on
(
'touchstart'
,
'.chose-panel'
,
function
(
e
)
{
...
...
@@ -211,15 +206,13 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
// 当前颜色块 切换勾选样式
$this
.
toggleClass
(
'chosed'
);
curColorIndex
=
index
;
$
(
'#good-num'
).
val
(
1
);
// 设置按钮的样式和文字
updateConformButtonClassAndText
();
// 修改颜色时修改商品图片
changeGoodImgWhenClickColor
();
// 颜色切换时, 重置已经选择的商品数量
//resetHasSelectedNum();
}).
on
(
'touchstart'
,
'.size-list .block'
,
function
()
{
var
$this
=
$
(
this
),
index
,
...
...
@@ -265,15 +258,13 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
$this
.
toggleClass
(
'chosed'
);
curSizeIndex
=
index
;
$curSizeBlock
=
$this
;
$
(
'#good-num'
).
val
(
1
);
// 设置按钮的样式和文字
updateConformButtonClassAndText
();
// 重置颜色块的样式
resetColorZeroStock
(
$siblingBlock
);
// 颜色尺码时, 重置已经选择的商品数量
//resetHasSelectedNum();
});
$yohoPage
.
on
(
'touchstart'
,
'.btn-minus'
,
function
()
{
...
...
Please
register
or
login
to post a comment