Showing
1 changed file
with
2 additions
and
2 deletions
@@ -14,7 +14,7 @@ function GetQueryString(name) { | @@ -14,7 +14,7 @@ function GetQueryString(name) { | ||
14 | 14 | ||
15 | $('.get-coupon').click(function () { | 15 | $('.get-coupon').click(function () { |
16 | var couponId = $(this).attr('param'); | 16 | var couponId = $(this).attr('param'); |
17 | - isApp = $(this).attr('href') !== 'javascript:;'; | 17 | + isApp = GetQueryString('app_version'); |
18 | 18 | ||
19 | if (isApp) { | 19 | if (isApp) { |
20 | uid = GetQueryString('uid'); | 20 | uid = GetQueryString('uid'); |
@@ -26,7 +26,7 @@ $('.get-coupon').click(function () { | @@ -26,7 +26,7 @@ $('.get-coupon').click(function () { | ||
26 | }); | 26 | }); |
27 | /* 领所有券 */ | 27 | /* 领所有券 */ |
28 | $('#get-all-coupon').click(function () { | 28 | $('#get-all-coupon').click(function () { |
29 | - var isApp = $(this).attr('href') !== 'javascript:;'; | 29 | + isApp = GetQueryString('app_version'); |
30 | getAllCoupon(activityId, isApp); | 30 | getAllCoupon(activityId, isApp); |
31 | }); | 31 | }); |
32 | 32 |
-
Please register or login to post a comment