...
|
...
|
@@ -14,7 +14,6 @@ let tip = require('plugin/tip'), |
|
|
richTip = require('plugin/rich-tip');
|
|
|
|
|
|
let $invoice = $('.invoice'),
|
|
|
$couponUse = $('.coupon-use.used'),
|
|
|
$addressWrap = $('.address-wrap'),
|
|
|
$coinCheck = $('.coin-check'),
|
|
|
$coinLi = $('li.coin'),
|
...
|
...
|
@@ -64,15 +63,11 @@ if (window.getUid() !== orderInfo('uid')) { |
|
|
window.location.reload();
|
|
|
}
|
|
|
|
|
|
if ($couponUse.data('name') !== orderInfo('couponName')) {
|
|
|
orderInfo('couponCode', null);
|
|
|
orderInfo('couponName', null);
|
|
|
}
|
|
|
|
|
|
// 来自购物车的链接默认不使用优惠券
|
|
|
if (document.referrer && document.referrer.indexOf('/cart/index/index') !== -1) {
|
|
|
orderInfo('couponCode', null);
|
|
|
orderInfo('couponName', null);
|
|
|
orderInfo('usable_usual_code', null);
|
|
|
orderInfo('usable_free_code', null);
|
|
|
}
|
|
|
|
|
|
isLimitGood() && (function() {
|
...
|
...
|
|