...
|
...
|
@@ -20,6 +20,7 @@ let $useCoupon = $('#useCoupon'); |
|
|
let $notUseCoupon = $('#notUseCoupon');
|
|
|
|
|
|
let winH = $(window).height();
|
|
|
let linkUrl = document.referrer;
|
|
|
|
|
|
require('common');
|
|
|
require('cart/cartbuynow/select-coupon');
|
...
|
...
|
@@ -39,7 +40,11 @@ function fixedLayOut() { |
|
|
}
|
|
|
|
|
|
function goToBack() {
|
|
|
if (linkUrl) {
|
|
|
window.location.href = linkUrl;
|
|
|
} else {
|
|
|
history.go(-1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -88,6 +93,7 @@ $useCoupon.on('click', function() { |
|
|
}
|
|
|
|
|
|
orderInfo('couponCode', couponCodeArray.join(','));
|
|
|
|
|
|
if (couponCodeArray.length > 0) {
|
|
|
goToBack();
|
|
|
} else {
|
...
|
...
|
|