Authored by 514335620@qq.com

添加发票信息上传 js

... ... @@ -26,7 +26,8 @@ var $addressManage = $('.address-manage'),
$useNewAddress = $('.use-new-address'),
$existAddressList = $('.exist-address-list'),
$loading = $('.loading'),
$orderEditMain = $('#order-edit-main');
$orderEditMain = $('#order-edit-main'),
$invoiceCheck = $('.invoice');
var cartType = $addressManage.attr('cart-type');
... ... @@ -761,10 +762,10 @@ $('.to-play input.submit').click(function() {
var addressId = $('.exist-address-list input[name="address"]:checked').closest('li').attr('data-id'),
deliveryTimeId = $('.pay-time-modify input[name="pay-time-radio"]:checked').val(),
deliveryWayId = $('.select-express input[name="carriagegroup"]:checked').val(),
invoiceType = $('.invoice-upload-type').html(),
invoiceContent = $('.invoice-upload-content').html(),
receiverMobile = $('.invoice-upload-mobile').html(),
invoiceTitle = $('.invoice-upload-title').html(),
invoiceType,
invoiceContent,
receiverMobile,
invoiceTitle,
paymentType = $('.pay-time-modify input[name="pay-type"]:checked').val(),
paymentId = $('.pay-time-modify input[name="pay-type"]:checked').data('pay'),
remark = $('#notedesc').val(),
... ... @@ -776,6 +777,13 @@ $('.to-play input.submit').click(function() {
codeVal = $juangroupInput.val(),
juanCode = !!codeVal ? codeVal : $juangroupInput.closest('li').find('#juancode').val();
if ($invoiceCheck.hasClass('active')) {
invoiceType = $('.invoice-upload-type').html();
invoiceContent = $('.invoice-upload-content').html();
receiverMobile = $('.invoice-upload-mobile').html();
invoiceTitle = $('.invoice-upload-title').html();
}
$loading.show();
if (!!$this.attr('disabled')) {
... ...
... ... @@ -865,13 +865,13 @@ $invoiceCheck.click(function(){
if ($invoiceCheck.hasClass('active')) {
$invoiceCheck.removeAttr('checked');
$invoiceCheck.removeClass('active');
alert('不开发票');
}
if ($invoiceCheck.attr('checked')) {
$invoiceCheck.addClass('active');
$receiptInfo.removeClass('hide');
if ($('.invoice-content').hasClass('hide')) {
$receiptInfo.removeClass('hide');
}
}
});
... ... @@ -938,8 +938,13 @@ $receiptInfoSaveBtn.click(function(){
$receiptInfoCancelBtn.click(function(){
$receiptInfo.addClass('hide');
$invoiceCheck.removeAttr('checked');
$invoiceCheck.removeClass('active');
if ($('.invoice-content').hasClass('hide')) {
$invoiceCheck.removeAttr('checked');
$invoiceCheck.removeClass('active');
} else {
}
});
$('.revise').click(function(){
... ...