...
|
...
|
@@ -37,7 +37,7 @@ $newCoupon.on('submit', function() { |
|
|
if (res.code === 200) {
|
|
|
tip.show('优惠券可用');
|
|
|
orderInfo('couponCode', res.data.coupon_code);
|
|
|
orderInfo('couponValue', res.data.coupon_value);
|
|
|
orderInfo('couponName', res.data.coupon_name);
|
|
|
window.location.href = '/cart/index/orderEnsure';
|
|
|
} else {
|
|
|
tip.show(res.message || '网络错误');
|
...
|
...
|
@@ -52,12 +52,12 @@ $('#coupon-list').on('touchend', '.employ-main', function() { |
|
|
var $this = $(this);
|
|
|
|
|
|
orderInfo('couponCode', $this.data('coupon-code'));
|
|
|
orderInfo('couponValue', $this.data('coupon-value'));
|
|
|
orderInfo('couponName', $this.data('coupon-name'));
|
|
|
});
|
|
|
|
|
|
$('body').on('touchend', '.not-use', function() {
|
|
|
orderInfo('couponCode', null);
|
|
|
orderInfo('couponValue', null);
|
|
|
orderInfo('couponName', null);
|
|
|
});
|
|
|
|
|
|
|
...
|
...
|
|