...
|
...
|
@@ -40,6 +40,11 @@ let $invoice = $('.invoice'), |
|
|
|
|
|
const orderEnsure = new OrderEnsure(order);
|
|
|
|
|
|
// cookie 参数
|
|
|
const actCkOpthn = {
|
|
|
path: '/cart/index'
|
|
|
};
|
|
|
|
|
|
require('common');
|
|
|
|
|
|
lazyLoad();
|
...
|
...
|
@@ -49,10 +54,11 @@ function isLimitGood() { |
|
|
}
|
|
|
|
|
|
// 来自购物车的链接默认不使用优惠券
|
|
|
if (document.referrer && document.referrer.indexOf('/cart/index/index') !== -1) {
|
|
|
if (cookie.get('ensure_from') === 'cart') {
|
|
|
orderInfo('couponCode', null);
|
|
|
orderInfo('usable_usual_code', null);
|
|
|
orderInfo('usable_free_code', null);
|
|
|
cookie.removeSpecific('ensure_from', actCkOpthn);
|
|
|
}
|
|
|
|
|
|
isLimitGood() && (function() {
|
...
|
...
|
|