fixes bug refs YBW-2680 cuxiao coupon
Showing
1 changed file
with
4 additions
and
1 deletions
@@ -201,9 +201,12 @@ function getNamedCoupon(activityId, couponId, isApp) | @@ -201,9 +201,12 @@ function getNamedCoupon(activityId, couponId, isApp) | ||
201 | url: '/cuxiao/coupon/getnamed', | 201 | url: '/cuxiao/coupon/getnamed', |
202 | data: 'activityId=' + activityId + '&couponId=' + couponId, | 202 | data: 'activityId=' + activityId + '&couponId=' + couponId, |
203 | success: function(data) { | 203 | success: function(data) { |
204 | + setCookie('_Coupon' + activityId, null, { | ||
205 | + expires: -2, | ||
206 | + domain: '.m.yohobuy.com' | ||
207 | + }); | ||
204 | if (data.code == 200) { | 208 | if (data.code == 200) { |
205 | showTip('恭喜你成功领取品牌优惠券<br><br>快去分享给你的小伙伴吧!'); | 209 | showTip('恭喜你成功领取品牌优惠券<br><br>快去分享给你的小伙伴吧!'); |
206 | - setCookie('_Coupon' + activityId, null); | ||
207 | } | 210 | } |
208 | else if (data.code == 201) { | 211 | else if (data.code == 201) { |
209 | showTip('你已领取过品牌优惠券<br><br>快去选购心仪的商品吧!'); | 212 | showTip('你已领取过品牌优惠券<br><br>快去选购心仪的商品吧!'); |
-
Please register or login to post a comment