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