Authored by 514335620@qq.com

发票信息 js

@@ -761,11 +761,9 @@ $('.to-play input.submit').click(function() { @@ -761,11 +761,9 @@ $('.to-play input.submit').click(function() {
761 var addressId = $('.exist-address-list input[name="address"]:checked').closest('li').attr('data-id'), 761 var addressId = $('.exist-address-list input[name="address"]:checked').closest('li').attr('data-id'),
762 deliveryTimeId = $('.pay-time-modify input[name="pay-time-radio"]:checked').val(), 762 deliveryTimeId = $('.pay-time-modify input[name="pay-time-radio"]:checked').val(),
763 deliveryWayId = $('.select-express input[name="carriagegroup"]:checked').val(), 763 deliveryWayId = $('.select-express input[name="carriagegroup"]:checked').val(),
764 - invoiceTitle = $('#piaodesc').val(),  
765 - invoiceId = $('#piaotype').val(),  
766 invoiceType = $('.invoice-upload-type').html(), 764 invoiceType = $('.invoice-upload-type').html(),
767 invoiceContent = $('.invoice-upload-content').html(), 765 invoiceContent = $('.invoice-upload-content').html(),
768 - receiverMobile = $('.nvoice-upload-mobile').html(), 766 + receiverMobile = $('.invoice-upload-mobile').html(),
769 invoiceTitle = $('.invoice-upload-title').html(), 767 invoiceTitle = $('.invoice-upload-title').html(),
770 paymentType = $('.pay-time-modify input[name="pay-type"]:checked').val(), 768 paymentType = $('.pay-time-modify input[name="pay-type"]:checked').val(),
771 paymentId = $('.pay-time-modify input[name="pay-type"]:checked').data('pay'), 769 paymentId = $('.pay-time-modify input[name="pay-type"]:checked').data('pay'),
@@ -880,14 +880,14 @@ function saveReceiptInfo() { @@ -880,14 +880,14 @@ function saveReceiptInfo() {
880 var passInfoVerify = true, 880 var passInfoVerify = true,
881 receiptType, 881 receiptType,
882 receiptContent, 882 receiptContent,
883 - receiptContentId,  
884 receiptMobile, 883 receiptMobile,
885 verifymobile, 884 verifymobile,
886 invoiceType, 885 invoiceType,
887 - receiptTypeID; 886 + receiptTypeID,
888 invoiceTypeInt; 887 invoiceTypeInt;
889 888
890 invoiceType = '个人'; 889 invoiceType = '个人';
  890 +
891 if ($eReceiptBtn.hasClass('receipt-type-selected')) { 891 if ($eReceiptBtn.hasClass('receipt-type-selected')) {
892 receiptType = "电子发票"; 892 receiptType = "电子发票";
893 invoiceTypeInt = '2'; 893 invoiceTypeInt = '2';
@@ -925,7 +925,7 @@ function saveReceiptInfo() { @@ -925,7 +925,7 @@ function saveReceiptInfo() {
925 $('.invoice-kind').html(receiptContent); 925 $('.invoice-kind').html(receiptContent);
926 926
927 $('.invoice-upload-type').html(invoiceTypeInt); 927 $('.invoice-upload-type').html(invoiceTypeInt);
928 - $('.invoice-upload-content').html(receiptContentId); 928 + $('.invoice-upload-content').html(receiptTypeID);
929 $('.invoice-upload-mobile').html(receiptMobile); 929 $('.invoice-upload-mobile').html(receiptMobile);
930 $('.invoice-upload-title').html(receiptTitle); 930 $('.invoice-upload-title').html(receiptTitle);
931 931