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
xuqi
10 years ago
Commit
e890c0e7ed64611d7da576e153dbb21af0fd6309
1 parent
15ffc5aa
del & col
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletions
static/js/shopping-cart/good.js
static/js/shopping-cart/good.js
View file @
e890c0e
...
...
@@ -55,9 +55,36 @@ $('.cart-goods').delegate('.checkbox', 'touchstart', function() {
}
}
});
}).
delegate
(
'.icon-del'
,
'touchstart'
,
function
()
{
}).
delegate
(
'.icon-del'
,
'touchstart'
,
function
(
e
)
{
e
.
stopPropagation
();
$
(
this
).
closest
(
'.shopping-cart-good'
).
children
(
'.opt-panel'
).
removeClass
(
'hide'
);
$
(
document
).
bind
(
'touchstart'
,
docTouchEvt
);
}).
delegate
(
'.opt-panel'
,
'touchstart'
,
function
()
{
var
$this
=
$
(
this
),
id
=
$this
.
closest
(
'.shopping-cart-good'
).
data
(
'id'
);
if
(
$this
.
closest
(
'.put-in-favorite'
))
{
//移入收藏夹
$
.
ajax
({
type
:
'POST'
,
url
:
'/shoppingCart/col'
,
data
:
{
id
:
id
}
});
}
else
{
//删除
$
.
ajax
({
type
:
'POST'
,
url
:
'/shoppingCart/del'
,
data
:
{
id
:
id
}
});
}
});
...
...
Please
register
or
login
to post a comment