Authored by 张丽霞

电子发票

@@ -411,6 +411,7 @@ @@ -411,6 +411,7 @@
411 411
412 <div class="receipt-container receipt-margin"> 412 <div class="receipt-container receipt-margin">
413 <div class="e-receipt-desc"> 413 <div class="e-receipt-desc">
  414 + <a href="{{invoiceUrl}}"></a>
414 </div> 415 </div>
415 416
416 <div class="invoice-list invoice-title invoice-title-personal-hight"> 417 <div class="invoice-list invoice-title invoice-title-personal-hight">
@@ -932,7 +932,9 @@ function saveReceiptInfo() { @@ -932,7 +932,9 @@ function saveReceiptInfo() {
932 } else { 932 } else {
933 $('.invoice-title .enpty-input').addClass('hide'); 933 $('.invoice-title .enpty-input').addClass('hide');
934 $('.invoice-phone .enpty-input').addClass('hide'); 934 $('.invoice-phone .enpty-input').addClass('hide');
935 - receiptTitle = $('#input-organization-name').val(); 935 + if (receiptTitle === "单位") {
  936 + receiptTitle = $('#input-organization-name').val();
  937 + }
936 } 938 }
937 939
938 receiptContent = $('input[name="content"]:checked').val(); 940 receiptContent = $('input[name="content"]:checked').val();
@@ -993,3 +995,15 @@ $('.invoice-title').change(function(){ @@ -993,3 +995,15 @@ $('.invoice-title').change(function(){
993 $('.invoice-title .input-line').removeClass('hide'); 995 $('.invoice-title .input-line').removeClass('hide');
994 } 996 }
995 }) 997 })
  998 +
  999 +$('#input-organization-name').bind('input propertychange', function() {
  1000 + if ($(this).val().length >= 1) {
  1001 + $('.invoice-title .enpty-input').addClass('hide');
  1002 + }
  1003 +});
  1004 +
  1005 +$('#input-mobile').bind('input propertychange', function() {
  1006 + if ($(this).val().length >= 1) {
  1007 + $('.invoice-phone .enpty-input').addClass('hide');
  1008 + }
  1009 +});
@@ -660,9 +660,18 @@ @@ -660,9 +660,18 @@
660 } 660 }
661 661
662 .e-receipt-desc { 662 .e-receipt-desc {
  663 + position: relative;
663 background: url(/order/invoice-desc.png); 664 background: url(/order/invoice-desc.png);
664 width: 100%; 665 width: 100%;
665 height: 108px; 666 height: 108px;
  667 +
  668 + a {
  669 + position: absolute;
  670 + left: 0;
  671 + bottom: 0;
  672 + width: 150px;
  673 + height: 40px;
  674 + }
666 } 675 }
667 .receipt-margin { 676 .receipt-margin {
668 margin-left: 55px; 677 margin-left: 55px;