|
@@ -56,6 +56,8 @@ $newCoupon.on('submit', function() { |
|
@@ -56,6 +56,8 @@ $newCoupon.on('submit', function() { |
56
|
}
|
56
|
}
|
57
|
if (res.code === 200) {
|
57
|
if (res.code === 200) {
|
58
|
tip.show('优惠券可用');
|
58
|
tip.show('优惠券可用');
|
|
|
59
|
+ //实付金额发生变化,使用有货币为0
|
|
|
60
|
+ orderInfo('yohoCoin', 0);
|
59
|
orderInfo('couponCode', res.data.coupon_code);
|
61
|
orderInfo('couponCode', res.data.coupon_code);
|
60
|
orderInfo('couponName', res.data.coupon_title);
|
62
|
orderInfo('couponName', res.data.coupon_title);
|
61
|
window.location.href = '/cart/index/orderEnsure';
|
63
|
window.location.href = '/cart/index/orderEnsure';
|
|
@@ -81,6 +83,8 @@ $couponList.on('touchstart', '.employ-main', function() { |
|
@@ -81,6 +83,8 @@ $couponList.on('touchstart', '.employ-main', function() { |
81
|
$('body').on('touchend', '.not-use', function() {
|
83
|
$('body').on('touchend', '.not-use', function() {
|
82
|
orderInfo('couponCode', null);
|
84
|
orderInfo('couponCode', null);
|
83
|
orderInfo('couponName', null);
|
85
|
orderInfo('couponName', null);
|
|
|
86
|
+ //实付金额发生变化,使用有货币为0
|
|
|
87
|
+ orderInfo('yohoCoin', 0);
|
84
|
location.href = '/cart/index/orderEnsure';
|
88
|
location.href = '/cart/index/orderEnsure';
|
85
|
});
|
89
|
});
|
86
|
|
90
|
|
|
@@ -138,6 +142,8 @@ function getCouponHandle(allCoupons) { |
|
@@ -138,6 +142,8 @@ function getCouponHandle(allCoupons) { |
138
|
//tip.show('优惠券可用');
|
142
|
//tip.show('优惠券可用');
|
139
|
orderInfo('couponCode', res.data.coupon_code);
|
143
|
orderInfo('couponCode', res.data.coupon_code);
|
140
|
orderInfo('couponName', res.data.coupon_title);
|
144
|
orderInfo('couponName', res.data.coupon_title);
|
|
|
145
|
+ //实付金额发生变化,使用有货币为0
|
|
|
146
|
+ orderInfo('yohoCoin', 0);
|
141
|
window.location.href = '/cart/index/orderEnsure';
|
147
|
window.location.href = '/cart/index/orderEnsure';
|
142
|
} else if (res.message) {
|
148
|
} else if (res.message) {
|
143
|
tip.show(res.message);
|
149
|
tip.show(res.message);
|