Showing
3 changed files
with
3 additions
and
1 deletions
@@ -7866,13 +7866,15 @@ $(".coupon-content .receive-btn").closest('.swiper-slide').on('click', function( | @@ -7866,13 +7866,15 @@ $(".coupon-content .receive-btn").closest('.swiper-slide').on('click', function( | ||
7866 | 7866 | ||
7867 | if (data.code === 200) { | 7867 | if (data.code === 200) { |
7868 | tip.show('领取成功'); | 7868 | tip.show('领取成功'); |
7869 | - $(that).find('.receive-btn').addClass('padding-20').html('已领取'); | 7869 | + $(that).find('.receive-btn').html('已领取'); |
7870 | $(that).unbind('click');//移除绑定事件 | 7870 | $(that).unbind('click');//移除绑定事件 |
7871 | return true; | 7871 | return true; |
7872 | } else if (data.code === 4401) { | 7872 | } else if (data.code === 4401) { |
7873 | $('#shop-login').remove(); | 7873 | $('#shop-login').remove(); |
7874 | $('body').append('<a href=\'' + data.url + '\'><span id="shop-login"><span></a>'); | 7874 | $('body').append('<a href=\'' + data.url + '\'><span id="shop-login"><span></a>'); |
7875 | $('#shop-login').click(); | 7875 | $('#shop-login').click(); |
7876 | + } else if (data.code === 401) { | ||
7877 | + tip.show('已领取过'); | ||
7876 | } else { | 7878 | } else { |
7877 | tip.show(data.message); | 7879 | tip.show(data.message); |
7878 | } | 7880 | } |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment