Showing
2 changed files
with
6 additions
and
2 deletions
@@ -76,12 +76,14 @@ if ($('.collocation-list').find('li').length === 0) { | @@ -76,12 +76,14 @@ if ($('.collocation-list').find('li').length === 0) { | ||
76 | } | 76 | } |
77 | 77 | ||
78 | // 星搭配收藏请求 | 78 | // 星搭配收藏请求 |
79 | -$(document).on('click', '.collection', function() { | 79 | +$(document).on('touchstart', '.collection', function() { |
80 | var $that = $(this), | 80 | var $that = $(this), |
81 | $icon = $that.find('.collected-ico'); | 81 | $icon = $that.find('.collected-ico'); |
82 | 82 | ||
83 | var type; | 83 | var type; |
84 | 84 | ||
85 | + event.stopPropagation(); | ||
86 | + | ||
85 | if ($icon.hasClass('collected')) { | 87 | if ($icon.hasClass('collected')) { |
86 | type = 'del'; | 88 | type = 'del'; |
87 | } else { | 89 | } else { |
@@ -178,10 +178,12 @@ if ($('.home-floor-sign').length > 0) { | @@ -178,10 +178,12 @@ if ($('.home-floor-sign').length > 0) { | ||
178 | } | 178 | } |
179 | 179 | ||
180 | // 星鲜事点赞事件 | 180 | // 星鲜事点赞事件 |
181 | -$(document).on('click', '.like-ico', function() { | 181 | +$(document).on('touchstart', '.like-ico', function() { |
182 | var $that = $(this), | 182 | var $that = $(this), |
183 | addString = ''; | 183 | addString = ''; |
184 | 184 | ||
185 | + event.stopPropagation(); | ||
186 | + | ||
185 | $.ajax({ | 187 | $.ajax({ |
186 | type: 'POST', | 188 | type: 'POST', |
187 | url: '/guang/starclass/setPraise', | 189 | url: '/guang/starclass/setPraise', |
-
Please register or login to post a comment