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
d78dee45ddb5dd276b522d3139da1e79eb972884
1 parent
4b956eca
购物车修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
static/js/cart/chose-panel.js
static/js/cart/chose-panel.js
View file @
d78dee4
...
...
@@ -18,6 +18,7 @@ var $chosePanel = $('#chose-panel'),
$chosed
,
$imgsThumb
,
$leftNum
,
$leftNumHtml
,
leftNum
,
confirming
,
curColorIndex
,
...
...
@@ -41,6 +42,7 @@ function init() {
$allChoseItems
=
$
(
'.chose-items'
);
$sizeRowList
=
$
(
'.size-list ul'
);
$leftNum
=
$
(
'#left-num'
);
$leftNumHtml
=
$sizeRowList
.
eq
(
0
).
toggleClass
(
'hide'
);
}
...
...
@@ -297,7 +299,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
promotionId
,
isEdit
=
0
,
numInCart
=
$
(
'.num-tag'
).
html
()
-
0
,
num
=
$num
.
val
(
);
num
=
parseInt
(
$num
.
val
(),
10
);
//颜色尺码没有选择
if
(
!
checkColorSizeNum
())
{
...
...
@@ -309,7 +311,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
return
;
}
leftNum
=
$
(
'#left-num'
).
val
();
leftNum
=
$
(
'#left-num'
).
val
()
-
0
;
if
(
num
>
leftNum
)
{
tip
.
show
(
'您选择的数量超过了最大库存量~'
);
...
...
Please
register
or
login
to post a comment