Authored by 514335620@qq.com

发票信息 js

... ... @@ -289,6 +289,12 @@
<div class="invoice-kind mes">服装</div>
<button class="revise mes">修改
</div>
<div class='invoice-upload hide'>
<div class="invoice-upload-type"></div>
<div class="invoice-upload-content"></div>
<div class="invoice-upload-mobile"></div>
<div class="invoice-upload-title"></div>
</div>
</div>
</div>
... ...
... ... @@ -97,6 +97,25 @@
</div>
{{/ orderInfo}}
<div class="pay-mode">
<p class="sub-title">
<span class="icon"></span>
发票信息
</p>
<div class="content">
{{#if invoiceMode}}
<div class="invoice-type"><p>发票类型:{{invoiceType}}</p>
{{#if pdfUrl}}<a class="invoice-button" href="{{pdfUrl}}">电子发票下载</a>
{{/if}}
</div>
<p>发票抬头:{{title}}</p>
<p>发票内容:{{contentValue}}</p>
{{^}}
<p>暂不需要发票
{{/if}}
</div>
</div>
<div class="order-remark">
<p class="sub-title">
<span class="icon"></span>
... ... @@ -123,25 +142,6 @@
</div>
{{/ noramlPayMode}}
<div class="pay-mode">
<p class="sub-title">
<span class="icon"></span>
发票信息
</p>
<div class="content">
{{#if invoiceMode}}
<div class="invoice-type"><p>发票类型:{{invoiceType}}</p>
{{#if pdfUrl}}<a class="invoice-button" href="{{pdfUrl}}">电子发票下载</a>
{{/if}}
</div>
<p>发票抬头:{{title}}</p>
<p>发票内容:{{contentValue}}</p>
{{^}}
<p>暂不需要发票
{{/if}}
</div>
</div>
{{# virtualPayMode}}
<div class="pay-mode virtual-pay-mode">
<p class="sub-title">
... ...
... ... @@ -763,6 +763,10 @@ $('.to-play input.submit').click(function() {
deliveryWayId = $('.select-express input[name="carriagegroup"]:checked').val(),
invoiceTitle = $('#piaodesc').val(),
invoiceId = $('#piaotype').val(),
invoiceType = $('.invoice-upload-type').html(),
invoiceContent = $('.invoice-upload-content').html(),
receiverMobile = $('.nvoice-upload-mobile').html(),
invoiceTitle = $('.invoice-upload-title').html(),
paymentType = $('.pay-time-modify input[name="pay-type"]:checked').val(),
paymentId = $('.pay-time-modify input[name="pay-type"]:checked').data('pay'),
remark = $('#notedesc').val(),
... ... @@ -791,8 +795,10 @@ $('.to-play input.submit').click(function() {
cartType: cartType,
deliveryTimeId: deliveryTimeId,
deliveryWayId: deliveryWayId,
invoiceType: invoiceType,
invoiceContent: invoiceContent,
receiverMobile: receiverMobile,
invoiceTitle: invoiceTitle,
invoiceId: invoiceId,
paymentId: paymentId,
paymentType: paymentType,
remark: remark,
... ...
... ... @@ -880,16 +880,20 @@ function saveReceiptInfo() {
var passInfoVerify = true,
receiptType,
receiptContent,
receiptContentId,
receiptMobile,
verifymobile,
invoiceType,
receiptTypeID;
invoiceTypeInt;
invoiceType = '个人';
if ($eReceiptBtn.hasClass('receipt-type-selected')) {
receiptType = "电子发票";
invoiceTypeInt = '2';
} else {
receiptType = "纸质发票";
invoiceTypeInt = '1';
}
if (receiptTitle !== "个人") {
... ... @@ -920,6 +924,11 @@ function saveReceiptInfo() {
$('.invoice-partment').html(invoiceType);
$('.invoice-kind').html(receiptContent);
$('.invoice-upload-type').html(invoiceTypeInt);
$('.invoice-upload-content').html(receiptContentId);
$('.invoice-upload-mobile').html(receiptMobile);
$('.invoice-upload-title').html(receiptTitle);
$receiptInfo.addClass('hide');
$('.invoice-content').removeClass('hide');
}
... ...