...
|
...
|
@@ -16,6 +16,7 @@ var $invoiceNotice = $('.invoice-notice'), |
|
|
$invoiceType = $('.invoice-type'),
|
|
|
$tel = $('.tel'),
|
|
|
$company = $('.company'),
|
|
|
$telArea = $('.tel-area'),
|
|
|
orderInfo = order.orderInfo,
|
|
|
$chooseContLi = $('.invoice-cont').find('.icon-cb-radio').parent();
|
|
|
|
...
|
...
|
@@ -51,7 +52,7 @@ function confirmAction() { |
|
|
cont = $chooseCont.data('id');
|
|
|
|
|
|
if ($editFlag.val() === 'true') {
|
|
|
if (!myreg.test($tel.attr('data-tel'))) {
|
|
|
if (type === '2' && !myreg.test($tel.attr('data-tel'))) {
|
|
|
tip.show('请输入正确手机号');
|
|
|
$tel.focus();
|
|
|
return false;
|
...
|
...
|
@@ -118,6 +119,13 @@ $('.invoice-type span').on('touchstart', function() { |
|
|
} else {
|
|
|
$(this).addClass('on').siblings().removeClass('on');
|
|
|
$editFlag.val('true');
|
|
|
|
|
|
// 纸质发票不显示手机号
|
|
|
if ($(this).index() === 1) {
|
|
|
$telArea.slideUp();
|
|
|
} else {
|
|
|
$telArea.slideDown();
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|