Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
jinhu.tung
9 years ago
Commit
8a87504a1973da0d6123f6f978bdf9ab7d7c98ca
1 parent
8629b964
clear unused code
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
37 deletions
public/js/shopping/cart.page.js
public/js/shopping/cart.page.js
View file @
8a87504
...
...
@@ -66,7 +66,7 @@ $(function() {
});
}).
delegate
(
'#checkout_btn'
,
'click'
,
function
(
e
)
{
e
.
preventDefault
();
if
(
$
(
'.chk-group'
).
length
)
{
if
(
$
(
'.chk-group'
).
length
)
{
Cart
.
checkStorage
(
function
()
{
if
(
!
$
(
this
).
hasClass
(
'disable'
))
{
window
.
location
.
href
=
'/shopping/order'
;
...
...
@@ -76,42 +76,6 @@ $(function() {
return
false
;
});
// // 全选和单选
// $('.toggle-chk, .toggle-chk-item').on('click', function() {
// Cart.toggleCheck.call(Cart, this);
// });
// 变动商品数量
Stepper
.
init
();
// // 删除商品
// $('.remove-item').on('click', function() {
// Cart.removePro($(this).attr('data-productId'));
// });
// // 移入收藏夹
// $('.send-to-favorite').on('click', function() {
// Cart.sendToFavorite($(this).attr('data-productId'));
// });
// // 编辑商品颜色和属性
// $('.editable').on('click', function() {
// Cart.editColorOrSize($(this).attr('data-productId'));
// });
// TODO=>
// $('#add_to_cart1').on('click', function() {
// Cart.addToCart({
// productSku: '1413600',
// buyNumber: 1
// });
// });
// $('#add_to_cart2').on('click', function() {
// Cart.addToCart({
// productSku: '972201',
// buyNumber: 2
// });
// });
// TODO=>
});
...
...
Please
register
or
login
to post a comment