Authored by 毕凯

初始化 cookie 默认值

@@ -9,7 +9,19 @@ var info = window.cookie('order-info'); @@ -9,7 +9,19 @@ var info = window.cookie('order-info');
9 try { 9 try {
10 info = JSON.parse(info); 10 info = JSON.parse(info);
11 } catch (e) { 11 } catch (e) {
12 - info = {}; 12 + info = {
  13 + deliveryId: null,
  14 + deliveryTimeId: null,
  15 + paymentTypeId: null,
  16 + yohoCoin: null,
  17 + addressId: null,
  18 + couponCode: null,
  19 + couponValue: null,
  20 + invoice: null,
  21 + invoiceText: null,
  22 + invoiceType: null,
  23 + msg: null
  24 + };
13 } 25 }
14 26
15 exports.orderInfo = function(key, value) { 27 exports.orderInfo = function(key, value) {