...
|
...
|
@@ -247,7 +247,11 @@ function orderCompute() { |
|
|
});
|
|
|
}
|
|
|
|
|
|
function submitOrder() {
|
|
|
/**
|
|
|
* submit order
|
|
|
* @param times
|
|
|
*/
|
|
|
function submitOrder(times) {
|
|
|
var invoiceText = $invoice.find('[name="invoice-title"]').val() || orderInfo('invoiceText'),
|
|
|
msg = $('#msg').find('input').val() || orderInfo('msg');
|
|
|
|
...
|
...
|
@@ -290,8 +294,8 @@ function submitOrder() { |
|
|
paymentType: orderInfo('paymentType'), //支付方式
|
|
|
couponCode: orderInfo('couponCode'),
|
|
|
yohoCoin: orderInfo('yohoCoin'),
|
|
|
skuList: isLimitGood() ? orderInfo('skuList') : undefined
|
|
|
|
|
|
skuList: isLimitGood() ? orderInfo('skuList') : undefined,
|
|
|
times: times || 1
|
|
|
}
|
|
|
}).then(function(res) {
|
|
|
var url;
|
...
|
...
|
@@ -468,7 +472,9 @@ $subBlock.on('touchstart', 'li', function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
/**
|
|
|
* submit order first
|
|
|
*/
|
|
|
$('.bill a').on('touchstart', function() {
|
|
|
if (isTickets) {
|
|
|
ticketsConfirm();
|
...
|
...
|
@@ -479,7 +485,8 @@ $('.bill a').on('touchstart', function() { |
|
|
orderInfo('paymentType', $('.payment-type .icon-cb-radio').data('id'));
|
|
|
|
|
|
payType = $('.payment-type .icon-cb-radio').data('id');
|
|
|
submitOrder();
|
|
|
submitOrder(1);
|
|
|
richTip.setCallback(submitOrder, 2);
|
|
|
});
|
|
|
|
|
|
function phoneHidden(phone) {
|
...
|
...
|
|