Authored by 郭成尧

conpon-code-yoho-coin-handle

... ... @@ -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() {
... ...
... ... @@ -20,7 +20,6 @@ function init() {
yohoCoin: 0,
addressId: null,
couponCode: null,
couponName: null,
invoice: null,
invoices_title: null,
invoices_type: null,
... ...