...
|
...
|
@@ -18,7 +18,6 @@ $(".coupon-content .receive-btn").on('touchstart', function(e) { |
|
|
|
|
|
$.ajax({
|
|
|
method: 'POST',
|
|
|
// url: '/product/index/userCoupon',
|
|
|
url: location.protocol + '//m.yohobuy.com/product/index/userCoupon',
|
|
|
data: {
|
|
|
couponID: code,
|
...
|
...
|
@@ -37,8 +36,9 @@ $(".coupon-content .receive-btn").on('touchstart', function(e) { |
|
|
$(that).unbind('touchstart');//移除绑定事件
|
|
|
return true;
|
|
|
} else if (data.code === 4401) {
|
|
|
$('body').append('<a href=\'' + data.url + '\'><span id="jump-login"><span></a>');
|
|
|
$('#jump-login').click();
|
|
|
$('#shop-login').remove();
|
|
|
$('body').append('<a href=\'' + data.url + '\'><span id="shop-login"><span></a>');
|
|
|
$('#shop-login').click();
|
|
|
} else {
|
|
|
tip.show(data.message);
|
|
|
}
|
...
|
...
|
|