Authored by 毕凯

判断app方法修改

@@ -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