Authored by 张丽霞

gulp ge

... ... @@ -16201,7 +16201,7 @@ function saveReceiptInfo() {
if (finalReceiptMobile === receiptMobileStar) {
finalReceiptMobile = receiptMobile;
} else {
verifymobile = /[0-9]{11}/;
verifymobile = /[1][34578][0-9]{9}/;
if (!verifymobile.test(finalReceiptMobile)) {
$('.invoice-phone .enpty-input').removeClass('hide');
if (finalReceiptMobile.length === 0) {
... ... @@ -16238,6 +16238,44 @@ function saveReceiptInfo() {
$receiptInfo.addClass('hide');
$('.invoice-content-outter').removeClass('hide');
}
function rejustReceiptInfo() {
var inviceType = $('.invoice-type').html(),
invoicePartment = $('.invoice-partment').html(),
invoiceKind = $('.invoice-kind').html(),
invoiceMobile,
invoiceMobileStar;
if (inviceType === "电子发票") {
$eReceiptBtn.trigger("click");
} else {
$paperReceiptBtn.trigger("click");
}
if (invoicePartment === "个人") {
$("input[name='title']").eq(0).attr("checked","checked");
$('.invoice-title').addClass('invoice-title-personal-hight');
$('.invoice-title .input-line').addClass('hide');
} else {
$("input[name='title']").eq(1).attr("checked","checked");
$('.invoice-title').removeClass('invoice-title-personal-hight');
$('.invoice-title .input-line').removeClass('hide');
$('#input-organization-name').val(invoicePartment);
}
$("input[name='content']").each(function(){
if ($(this).attr('value') === invoiceKind) {
$(this).attr("checked","checked");
};
})
invoiceMobile = $('.invoice-upload-mobile').html()
invoiceMobileStar = invoiceMobile.substr(0, 3) + '****' + invoiceMobile.substr(7);
if ($('#input-mobile').val() !== invoiceMobileStar) {
$('#input-mobile').val(invoiceMobileStar);
};
}
$receiptInfoSaveBtn.click(function(){
saveReceiptInfo();
});
... ... @@ -16255,6 +16293,7 @@ $receiptInfoCancelBtn.click(function(){
$('.revise').click(function(){
$receiptInfo.removeClass('hide');
rejustReceiptInfo();
});
$eReceiptBtn.click(function(){
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.