Authored by 郭成尧

conpon-code-yoho-coin-handle

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