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