Authored by cailing

gulp ge

@@ -13590,6 +13590,15 @@ require("js/common"); @@ -13590,6 +13590,15 @@ require("js/common");
13590 13590
13591 lazyLoad(); 13591 lazyLoad();
13592 13592
  13593 +// 初始化发票信息
  13594 +function invoiceInit() {
  13595 + if (orderCont.invoiceType) {
  13596 + $('.invoice-type').text(invoiceCont[orderCont.invoiceType] + '(' + invoicesType[orderCont.invoicesType] + ')');
  13597 + } else {
  13598 + $('.invoice-type').text('服装(电子)');
  13599 + }
  13600 +}
  13601 +
13593 function getQueryParam() { 13602 function getQueryParam() {
13594 var queryArray = location.search.substr(1).split('&'), 13603 var queryArray = location.search.substr(1).split('&'),
13595 i, 13604 i,
@@ -13684,6 +13693,9 @@ $invoice.on('touchend', '.checkbox', function() { @@ -13684,6 +13693,9 @@ $invoice.on('touchend', '.checkbox', function() {
13684 orderInfo('invoicesType', null); 13693 orderInfo('invoicesType', null);
13685 orderInfo('invoiceTitle', null); 13694 orderInfo('invoiceTitle', null);
13686 } 13695 }
  13696 +
  13697 + orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
  13698 + invoiceInit();
13687 }); 13699 });
13688 13700
13689 13701
@@ -13949,11 +13961,8 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') { @@ -13949,11 +13961,8 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') {
13949 orderCompute(); 13961 orderCompute();
13950 } 13962 }
13951 13963
13952 -if (orderCont.invoiceType) {  
13953 - $('.invoice-type').text(invoiceCont[orderCont.invoiceType] + '(' + invoicesType[orderCont.invoicesType] + ')');  
13954 -} else {  
13955 - $('.invoice-type').text('服装(电子)');  
13956 -} 13964 +// 初始化发票信息内容
  13965 +invoiceInit();
13957 }); 13966 });
13958 define("js/cart/order-info", ["jquery","hammer"], function(require, exports, module){ 13967 define("js/cart/order-info", ["jquery","hammer"], function(require, exports, module){
13959 /** 13968 /**
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.