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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
7188765b2950788e5fc7f3a0c8a5d098cbdc8b94
2 parents
ec5c370c
25a836ba
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
static/js/cart/cart.js
static/js/cart/good.js
static/js/cart/cart.js
View file @
7188765
...
...
@@ -8,7 +8,8 @@ var $ = require('jquery'),
lazyLoad
=
require
(
'yoho.lazyload'
),
Hammer
=
require
(
'yoho.hammer'
);
var
chosePanel
=
require
(
'./chose-panel'
);
var
chosePanel
=
require
(
'./chose-panel'
),
tip
=
require
(
'../plugin/tip'
);
var
$cartContent
=
$
(
'.cart-content'
);
...
...
@@ -46,7 +47,11 @@ if ($('.cart-nav').length > 0) {
}
$
(
'.btn-balance'
).
on
(
'touchend'
,
function
()
{
window
.
location
.
href
=
'/cart/index/orderEnsure?cartType='
+
cartType
;
if
(
$
(
'.balance span'
).
hasClass
(
'icon-cb-checked'
)){
window
.
location
.
href
=
'/cart/index/orderEnsure?cartType='
+
cartType
;
}
else
{
tip
.
show
(
'请先勾选商品~'
);
}
});
$
(
'.chose'
).
on
(
'touchend'
,
function
()
{
...
...
static/js/cart/good.js
View file @
7188765
...
...
@@ -52,7 +52,7 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
this
.
selected
=
properties
.
selected
;
}
goodInfo
.
goods_type
=
getCartType
()
;
goodInfo
.
goods_type
=
cartType
;
goodInfo
.
selected
=
isSelected
?
'N'
:
'Y'
;
goodInfo
.
product_sku
=
id
;
goodInfo
.
buy_number
=
$good
.
find
(
'.count'
).
eq
(
0
).
text
().
trim
().
replace
(
'×'
,
''
);
...
...
Please
register
or
login
to post a comment