...
|
...
|
@@ -23,21 +23,6 @@ var $invoice = $('.invoice'), |
|
|
dispatchInfo,
|
|
|
total;
|
|
|
|
|
|
var orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
|
|
|
var invoiceCont = {
|
|
|
7: '服装',
|
|
|
1: '图书',
|
|
|
9: '配件',
|
|
|
11: '日用品',
|
|
|
3: '办公用品',
|
|
|
6: '体育用品',
|
|
|
10: '数码产品'
|
|
|
},
|
|
|
invoicesType = {
|
|
|
1: '纸质',
|
|
|
2: '电子'
|
|
|
};
|
|
|
|
|
|
require('../common');
|
|
|
|
|
|
lazyLoad();
|
...
|
...
|
@@ -122,19 +107,9 @@ $invoice.on('touchend', '.checkbox', function() { |
|
|
|
|
|
if ($this.hasClass('icon-cb-radio')) {
|
|
|
$invoice.addClass('focus');
|
|
|
orderInfo('invoiceText', '');
|
|
|
orderInfo('invoiceType', '7');
|
|
|
orderInfo('receiverMobile', $('.user-mobile').val());
|
|
|
orderInfo('invoicesType', '2');
|
|
|
orderInfo('invoiceTitle', '个人');
|
|
|
}
|
|
|
if ($this.hasClass('icon-radio')) {
|
|
|
$invoice.removeClass('focus');
|
|
|
orderInfo('invoiceText', null);
|
|
|
orderInfo('invoiceType', null);
|
|
|
orderInfo('receiverMobile', null);
|
|
|
orderInfo('invoicesType', null);
|
|
|
orderInfo('invoiceTitle', null);
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -215,16 +190,16 @@ function submitOrder() { |
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// if (orderInfo('invoice')) {
|
|
|
// if (!invoiceText) {
|
|
|
// tip.show('请输入发票抬头');
|
|
|
// return;
|
|
|
// }
|
|
|
// if (invoiceText.length > 30) {
|
|
|
// tip.show('发票抬头不得超过30个汉字');
|
|
|
// return;
|
|
|
// }
|
|
|
// }
|
|
|
if (orderInfo('invoice')) {
|
|
|
if (!invoiceText) {
|
|
|
tip.show('请输入发票抬头');
|
|
|
return;
|
|
|
}
|
|
|
if (invoiceText.length > 30) {
|
|
|
tip.show('发票抬头不得超过30个汉字');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (msg) {
|
|
|
if (msg.length > 40) {
|
...
|
...
|
@@ -400,9 +375,3 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') { |
|
|
orderInfo('deliveryId', $('.delivery-id .icon-cb-radio').data('id'));
|
|
|
orderCompute();
|
|
|
} |
|
|
|
|
|
if (orderCont.invoiceType) {
|
|
|
$('.invoice-type').text(invoiceCont[orderCont.invoiceType] + '(' + invoicesType[orderCont.invoicesType] + ')');
|
|
|
} else {
|
|
|
$('.invoice-type').text('服装(电子)');
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|