...
|
...
|
@@ -96,12 +96,6 @@ function orderCompute() { |
|
|
if ($.type(res) !== 'object') {
|
|
|
window.location.reload();
|
|
|
} else {
|
|
|
/*if (res.order_amount) {
|
|
|
res.order_amount = (+res.order_amount).toFixed(2);
|
|
|
}
|
|
|
if (res.discount_amount) {
|
|
|
res.discount_amount = (+res.discount_amount).toFixed(2);
|
|
|
}*/
|
|
|
if (res.last_order_amount) {
|
|
|
res.last_order_amount = (+res.last_order_amount).toFixed(2);
|
|
|
}
|
...
|
...
|
@@ -127,6 +121,10 @@ function submitOrder() { |
|
|
var invoiceText = $invoice.find('[name="invoice-title"]').val() || orderInfo('invoiceText'),
|
|
|
msg = $('#msg').find('input').val() || orderInfo('msg');
|
|
|
|
|
|
if (orderInfo('deliveryId') === 2 && !$addressWrap.data('support')) {
|
|
|
tip.show('当前地址不支持顺丰快递');
|
|
|
return;
|
|
|
}
|
|
|
if (orderInfo('invoice')) {
|
|
|
if (!invoiceText) {
|
|
|
tip.show('请输入发票抬头');
|
...
|
...
|
|