Authored by 周少峰

Merge branch 'release/4.7' of http://git.yoho.cn/fe/yohobuypc into release/4.7

@@ -282,7 +282,7 @@ @@ -282,7 +282,7 @@
282 <div class="section-play"> 282 <div class="section-play">
283 <div class="section-head">发票信息</div> 283 <div class="section-head">发票信息</div>
284 <div class="play-pan"> 284 <div class="play-pan">
285 - <input class="invoice mes" name="invoice" type="radio" id=""/>发票开具 285 + <input class="invoice mes" name="invoice" type="radio" id="" autocomplete="off"/>发票开具
286 <div class="invoice-content hide"> 286 <div class="invoice-content hide">
287 <div class="invoice-type mes">电子发票</div> 287 <div class="invoice-type mes">电子发票</div>
288 <div class="invoice-partment mes">个人</div> 288 <div class="invoice-partment mes">个人</div>
@@ -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">
@@ -15834,8 +15834,10 @@ function saveReceiptInfo() { @@ -15834,8 +15834,10 @@ function saveReceiptInfo() {
15834 } else { 15834 } else {
15835 $('.invoice-title .enpty-input').addClass('hide'); 15835 $('.invoice-title .enpty-input').addClass('hide');
15836 $('.invoice-phone .enpty-input').addClass('hide'); 15836 $('.invoice-phone .enpty-input').addClass('hide');
  15837 + if (receiptTitle === "单位") {
15837 receiptTitle = $('#input-organization-name').val(); 15838 receiptTitle = $('#input-organization-name').val();
15838 } 15839 }
  15840 + }
15839 15841
15840 receiptContent = $('input[name="content"]:checked').val(); 15842 receiptContent = $('input[name="content"]:checked').val();
15841 receiptTypeID = $('input[name="content"]:checked').data('receiptid'); 15843 receiptTypeID = $('input[name="content"]:checked').data('receiptid');
@@ -15896,6 +15898,18 @@ $('.invoice-title').change(function(){ @@ -15896,6 +15898,18 @@ $('.invoice-title').change(function(){
15896 } 15898 }
15897 }) 15899 })
15898 15900
  15901 +$('#input-organization-name').bind('input propertychange', function() {
  15902 + if ($(this).val().length >= 1) {
  15903 + $('.invoice-title .enpty-input').addClass('hide');
  15904 + }
  15905 +});
  15906 +
  15907 +$('#input-mobile').bind('input propertychange', function() {
  15908 + if ($(this).val().length >= 1) {
  15909 + $('.invoice-phone .enpty-input').addClass('hide');
  15910 + }
  15911 +});
  15912 +
15899 }); 15913 });
15900 define("js/order/address", ["jquery","handlebars","source-map"], function(require, exports, module){ 15914 define("js/order/address", ["jquery","handlebars","source-map"], function(require, exports, module){
15901 /** 15915 /**
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
@@ -932,8 +932,10 @@ function saveReceiptInfo() { @@ -932,8 +932,10 @@ 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 + if (receiptTitle === "单位") {
935 receiptTitle = $('#input-organization-name').val(); 936 receiptTitle = $('#input-organization-name').val();
936 } 937 }
  938 + }
937 939
938 receiptContent = $('input[name="content"]:checked').val(); 940 receiptContent = $('input[name="content"]:checked').val();
939 receiptTypeID = $('input[name="content"]:checked').data('receiptid'); 941 receiptTypeID = $('input[name="content"]:checked').data('receiptid');
@@ -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;