...
|
...
|
@@ -235,6 +235,7 @@ let _getCaptchaCoupon = function(data) { |
|
|
token: data.token,
|
|
|
couponType: data.couponType,
|
|
|
uid: data.uid,
|
|
|
webSession: data.webSession
|
|
|
});
|
|
|
return;
|
|
|
}
|
...
|
...
|
@@ -255,7 +256,8 @@ let _getCaptchaCoupon = function(data) { |
|
|
couponType: data.couponType,
|
|
|
uid: data.uid,
|
|
|
ticket: result.ticket,
|
|
|
randstr: result.randstr
|
|
|
randstr: result.randstr,
|
|
|
webSession: data.webSession
|
|
|
});
|
|
|
});
|
|
|
|
...
|
...
|
@@ -265,6 +267,7 @@ let _getCaptchaCoupon = function(data) { |
|
|
token: data.token,
|
|
|
couponType: data.couponType,
|
|
|
uid: data.uid,
|
|
|
webSession: data.webSession
|
|
|
});
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -386,12 +389,14 @@ let _initCoupon = function(uid) { |
|
|
$('body').on('click', '.yoho-conpon', function() {
|
|
|
let token = $(this).data('token');
|
|
|
let type = $(this).data('type');
|
|
|
let webSession = +$(this).data('websession') > 0;
|
|
|
|
|
|
if (user.uid) {
|
|
|
if (user.uid || webSession) {
|
|
|
_getCaptchaCoupon({
|
|
|
token,
|
|
|
couponType: type,
|
|
|
uid: user.uid
|
|
|
uid: user.uid,
|
|
|
webSession: webSession
|
|
|
});
|
|
|
} else {
|
|
|
cookies.setCookie('yoho-coupon-token', token);
|
...
|
...
|
|