...
|
...
|
@@ -56,6 +56,8 @@ $newCoupon.on('submit', function() { |
|
|
}
|
|
|
if (res.code === 200) {
|
|
|
tip.show('优惠券可用');
|
|
|
//实付金额发生变化,使用有货币为0
|
|
|
orderInfo('yohoCoin', 0);
|
|
|
orderInfo('couponCode', res.data.coupon_code);
|
|
|
orderInfo('couponName', res.data.coupon_title);
|
|
|
window.location.href = '/cart/index/orderEnsure';
|
...
|
...
|
@@ -81,6 +83,8 @@ $couponList.on('touchstart', '.employ-main', function() { |
|
|
$('body').on('touchend', '.not-use', function() {
|
|
|
orderInfo('couponCode', null);
|
|
|
orderInfo('couponName', null);
|
|
|
//实付金额发生变化,使用有货币为0
|
|
|
orderInfo('yohoCoin', 0);
|
|
|
location.href = '/cart/index/orderEnsure';
|
|
|
});
|
|
|
|
...
|
...
|
@@ -138,6 +142,8 @@ function getCouponHandle(allCoupons) { |
|
|
//tip.show('优惠券可用');
|
|
|
orderInfo('couponCode', res.data.coupon_code);
|
|
|
orderInfo('couponName', res.data.coupon_title);
|
|
|
//实付金额发生变化,使用有货币为0
|
|
|
orderInfo('yohoCoin', 0);
|
|
|
window.location.href = '/cart/index/orderEnsure';
|
|
|
} else if (res.message) {
|
|
|
tip.show(res.message);
|
...
|
...
|
|