Authored by cailing

电子发票保存信息修改

... ... @@ -42,6 +42,15 @@ require('../common');
lazyLoad();
// 初始化发票信息
function invoiceInit() {
if (orderCont.invoiceType) {
$('.invoice-type').text(invoiceCont[orderCont.invoiceType] + '(' + invoicesType[orderCont.invoicesType] + ')');
} else {
$('.invoice-type').text('服装(电子)');
}
}
function getQueryParam() {
var queryArray = location.search.substr(1).split('&'),
i,
... ... @@ -136,6 +145,9 @@ $invoice.on('touchend', '.checkbox', function() {
orderInfo('invoicesType', null);
orderInfo('invoiceTitle', null);
}
orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
invoiceInit();
});
... ... @@ -401,8 +413,5 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') {
orderCompute();
}
if (orderCont.invoiceType) {
$('.invoice-type').text(invoiceCont[orderCont.invoiceType] + '(' + invoicesType[orderCont.invoicesType] + ')');
} else {
$('.invoice-type').text('服装(电子)');
}
\ No newline at end of file
// 初始化发票信息内容
invoiceInit();
\ No newline at end of file
... ...