Authored by 郝肖肖

gulp ge

... ... @@ -7837,18 +7837,17 @@ var $ = require("jquery"),
Swiper = require("swiper"),
tip = require("js/plugin/tip");
var isCouponClick = true,
appVersion = $('input[name="app_version"]').val();
var appVersion = $('input[name="app_version"]').val();
$(".coupon-content .receive-btn").closest('.swiper-slide').on('click', function(e) {
var that = this,
code = $(this).data('id') || '';
if (isCouponClick === false) {
if (that.isCouponClick === false) {
return false;
}
isCouponClick = false;
that.isCouponClick = false;
$.ajax({
method: 'POST',
... ... @@ -7862,7 +7861,7 @@ $(".coupon-content .receive-btn").closest('.swiper-slide').on('click', function(
},
success: function(data) {
isCouponClick = true;
that.isCouponClick = true;
if (data.code === 200) {
tip.show('领取成功');
... ... @@ -7880,7 +7879,7 @@ $(".coupon-content .receive-btn").closest('.swiper-slide').on('click', function(
},
error: function() {
tip.show('网络断开连接了~');
isCouponClick = true;
that.isCouponClick = true;
}
});
});
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.