Showing
1 changed file
with
2 additions
and
2 deletions
@@ -11,7 +11,7 @@ var $ = require('jquery'), | @@ -11,7 +11,7 @@ var $ = require('jquery'), | ||
11 | 11 | ||
12 | var productId = $('#productId').val(); | 12 | var productId = $('#productId').val(); |
13 | 13 | ||
14 | -$('#likeBtn').on('click', function() { | 14 | +$('#likeBtn').on('touchstart', function() { |
15 | var opt, | 15 | var opt, |
16 | favorite; | 16 | favorite; |
17 | 17 | ||
@@ -63,7 +63,7 @@ $('#likeBtn').on('click', function() { | @@ -63,7 +63,7 @@ $('#likeBtn').on('click', function() { | ||
63 | return false; | 63 | return false; |
64 | }); | 64 | }); |
65 | 65 | ||
66 | -$('#addtoCart').on('click', function() { | 66 | +$('#addtoCart').on('touchstart', function() { |
67 | chosePanel.show(); | 67 | chosePanel.show(); |
68 | 68 | ||
69 | //统计代码:用于统计用户加入购物车的动作 | 69 | //统计代码:用于统计用户加入购物车的动作 |
-
Please register or login to post a comment