...
|
...
|
@@ -218,7 +218,7 @@ let _getCouponCheck = function(data) { |
|
|
return {
|
|
|
code: 400,
|
|
|
message: '出错了~'
|
|
|
}
|
|
|
};
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -232,7 +232,7 @@ let _getCaptchaCoupon = function(data) { |
|
|
|
|
|
_getCouponCheck(data).then(result => {
|
|
|
if (result.code !== 200) {
|
|
|
return utils.toast(result.message, options);
|
|
|
return utils.toast(result.message, options);
|
|
|
}
|
|
|
|
|
|
if (result.data.checkRequired) {
|
...
|
...
|
@@ -258,8 +258,8 @@ let _getCaptchaCoupon = function(data) { |
|
|
uid: data.uid,
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
|
|
|
let isSendRedEnevlope = false;
|
...
|
...
|
@@ -364,9 +364,9 @@ let _initCoupon = function(uid) { |
|
|
|
|
|
if (token) {
|
|
|
_getCaptchaCoupon({
|
|
|
token,
|
|
|
couponType,
|
|
|
uid
|
|
|
token,
|
|
|
couponType,
|
|
|
uid
|
|
|
});
|
|
|
|
|
|
cookies.setCookie('yoho-coupon-token', '');
|
...
|
...
|
|