...
|
...
|
@@ -16,14 +16,16 @@ var $invoice = $('.invoice'), |
|
|
$coinCheck = $('.coin-check'),
|
|
|
$coinUsed = $('.coin .used'),
|
|
|
$subBlock = $('.sub-block'),
|
|
|
$ticketsConfirm = $('#ticketsConfirm'),
|
|
|
$ticketsMobile = $('#mobile'),
|
|
|
payType,
|
|
|
queryString = $.queryString(),
|
|
|
orderInfo = order.orderInfo,
|
|
|
isSubmiting,
|
|
|
dispatchInfo,
|
|
|
total;
|
|
|
total,
|
|
|
isTickets = $('#ticketsPage').val(),
|
|
|
productSku = $('#productSku').val(),
|
|
|
buyNumber = $('#buyNumber').val();
|
|
|
|
|
|
require('../common');
|
|
|
|
...
|
...
|
@@ -357,6 +359,10 @@ $subBlock.on('touchstart', 'li', function() { |
|
|
|
|
|
|
|
|
$('.bill a').on('touchstart', function() {
|
|
|
if (isTickets) {
|
|
|
ticketsConfirm();
|
|
|
return ;
|
|
|
}
|
|
|
orderInfo('paymentTypeId', $('.delivery-id .icon-cb-radio').data('id'));
|
|
|
orderInfo('paymentType', $('.payment-type .icon-cb-radio').data('id'));
|
|
|
|
...
|
...
|
@@ -375,16 +381,32 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') { |
|
|
orderInfo('deliveryId', $('.delivery-id .icon-cb-radio').data('id'));
|
|
|
orderCompute();
|
|
|
}
|
|
|
//电子票下单
|
|
|
function ticketsConfirm () {
|
|
|
var data = {
|
|
|
productSku: productSku,
|
|
|
buyNumber: buyNumber,
|
|
|
mobile: $ticketsMobile.val(),
|
|
|
useYohoCoin: ''
|
|
|
};
|
|
|
|
|
|
$.ajax({
|
|
|
url: '/cart/index/submitTicket',
|
|
|
type: 'POST',
|
|
|
dataType: 'json',
|
|
|
data: data,
|
|
|
success: function(ticket) {
|
|
|
//下单成功调整支付页面
|
|
|
if (ticket.code === 200) {
|
|
|
|
|
|
function ticketsConfirm () {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//确认门票
|
|
|
$ticketsConfirm.on('touchstart', function() {
|
|
|
ticketsConfirm();
|
|
|
});
|
|
|
},
|
|
|
error: function () {
|
|
|
tip.show('网络异常~');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//校验手机号
|
|
|
$ticketsMobile.blur(function function_name (e) {
|
...
|
...
|
|