Authored by 郝肖肖

js 滑动触法了touch事件

... ... @@ -6,7 +6,7 @@ var $ = require('jquery'),
var isCouponClick = true,
appVersion = $('input[name="app_version"]').val();
$(".coupon-content .receive-btn").closest('.swiper-slide').on('touchstart', function(e) {
$(".coupon-content .receive-btn").closest('.swiper-slide').on('click', function(e) {
var that = this,
code = $(this).data('id') || '';
... ... @@ -33,7 +33,7 @@ $(".coupon-content .receive-btn").closest('.swiper-slide').on('touchstart', func
if (data.code === 200) {
tip.show('领取成功');
$(that).find('.receive-btn').addClass('padding-20').html('已领取');
$(that).unbind('touchstart');//移除绑定事件
$(that).unbind('click');//移除绑定事件
return true;
} else if (data.code === 4401) {
$('#shop-login').remove();
... ...