Showing
1 changed file
with
2 additions
and
0 deletions
@@ -67,6 +67,7 @@ function initInfosEvt($container) { | @@ -67,6 +67,7 @@ function initInfosEvt($container) { | ||
67 | //点赞 | 67 | //点赞 |
68 | $btn = $this.closest('.like-btn'); | 68 | $btn = $this.closest('.like-btn'); |
69 | if ($btn.length > 0) { | 69 | if ($btn.length > 0) { |
70 | + e.preventDefault(); | ||
70 | if ($btn.hasClass('like')) { | 71 | if ($btn.hasClass('like')) { |
71 | opt = 'cancel'; | 72 | opt = 'cancel'; |
72 | } | 73 | } |
@@ -99,6 +100,7 @@ function initInfosEvt($container) { | @@ -99,6 +100,7 @@ function initInfosEvt($container) { | ||
99 | //APP收藏 | 100 | //APP收藏 |
100 | $btn = $this.closest('.collect-btn'); | 101 | $btn = $this.closest('.collect-btn'); |
101 | if ($btn.length > 0) { | 102 | if ($btn.length > 0) { |
103 | + e.preventDefault(); | ||
102 | if ($btn.hasClass('collected')) { | 104 | if ($btn.hasClass('collected')) { |
103 | opt = 'cancel'; | 105 | opt = 'cancel'; |
104 | } | 106 | } |
-
Please register or login to post a comment