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
Plain Diff
Browse Files
Authored by
赵彪
2015-12-22 01:41:16 +0800
Commit
6fd37402228312a1cd0dbacdfcf7b885aec08284
2 parents
d88be349
3c027318
Merge branch 'fix/issue' into 'develop'
修复结算校验bug See merge request !67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
static/js/cart/cart.js
static/js/cart/good.js
static/js/cart/cart.js
View file @
6fd3740
...
...
@@ -133,15 +133,16 @@ if ($('.freebie').length > 0) {
}
$
(
'.btn-balance'
).
on
(
'touchend'
,
function
()
{
if
(
shouldSelectGift
())
{
showChooseGifDialog
();
return
false
;
}
if
(
shouldLowStocks
())
{
tip
.
show
(
'库存不足无法结算'
);
return
false
;
}
if
(
shouldSelectGift
())
{
showChooseGifDialog
();
return
false
;
}
if
(
hasChecked
)
{
window
.
location
.
href
=
'/cart/index/orderEnsure?cartType='
+
cartType
;
}
else
{
...
...
static/js/cart/good.js
View file @
6fd3740
...
...
@@ -190,6 +190,10 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) {
//全选按钮点击事件
$selectAllBtn
.
on
(
'touchend'
,
function
()
{
if
(
$
(
'.low-stocks'
).
length
>
0
)
{
tip
.
show
(
'所选商品中含有库存不足的商品'
);
return
false
;
}
bottomCheckBoxHandeler
(
$
(
this
).
hasClass
(
'icon-cb-checked'
),
$
(
'#cartType'
).
val
(),
didUpdateAllGoodsCheckStatus
);
});
...
...
Please
register
or
login
to post a comment