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
b54a584e6591e44c1d7d18fd2f4e70f399f6c16d
1 parent
346e5f9f
加入购物车改成touchstart事件
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
static/js/product/detail/like.js
static/js/product/detail/like.js
View file @
b54a584
...
...
@@ -11,7 +11,7 @@ var $ = require('jquery'),
var
productId
=
$
(
'#productId'
).
val
();
$
(
'#likeBtn'
).
on
(
'
click
'
,
function
()
{
$
(
'#likeBtn'
).
on
(
'
touchstart
'
,
function
()
{
var
opt
,
favorite
;
...
...
@@ -63,7 +63,7 @@ $('#likeBtn').on('click', function() {
return
false
;
});
$
(
'#addtoCart'
).
on
(
'
click
'
,
function
()
{
$
(
'#addtoCart'
).
on
(
'
touchstart
'
,
function
()
{
chosePanel
.
show
();
//统计代码:用于统计用户加入购物车的动作
...
...
Please
register
or
login
to post a comment