...
|
...
|
@@ -25,7 +25,9 @@ var $invoice = $('.invoice'), |
|
|
total,
|
|
|
isTickets = $('#ticketsPage').val(),
|
|
|
productSku = $('#productSku').val(),
|
|
|
buyNumber = $('#buyNumber').val();
|
|
|
buyNumber = $('#buyNumber').val(),
|
|
|
headerTop = $("#yoho-header").outerHeight(),
|
|
|
addressTop = $(".address-wrap").outerHeight();
|
|
|
|
|
|
var orderCont = window.cookie('order-info') && JSON.parse(window.cookie('order-info'));
|
|
|
var invoiceCont = {
|
...
|
...
|
@@ -184,6 +186,7 @@ function orderCompute() { |
|
|
yohoCoin: yohoCoin,
|
|
|
skuList: isLimitGood() ? orderInfo('skuList') : undefined
|
|
|
};
|
|
|
|
|
|
//门票
|
|
|
if (isTickets) {
|
|
|
data = {
|
...
|
...
|
@@ -412,6 +415,7 @@ $('.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'));
|
...
|
...
|
@@ -431,6 +435,7 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') { |
|
|
orderInfo('deliveryId', $('.delivery-id .icon-cb-radio').data('id'));
|
|
|
orderCompute();
|
|
|
}
|
|
|
|
|
|
//电子票下单
|
|
|
function ticketsConfirm () {
|
|
|
|
...
|
...
|
@@ -438,6 +443,7 @@ function ticketsConfirm () { |
|
|
tip.show('手机号必填');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var data = {
|
|
|
productSku: productSku,
|
|
|
buyNumber: buyNumber,
|
...
|
...
|
@@ -451,6 +457,7 @@ function ticketsConfirm () { |
|
|
dataType: 'json',
|
|
|
data: data,
|
|
|
success: function(ticket) {
|
|
|
|
|
|
//下单成功调整支付页面
|
|
|
if (ticket.code === 200) {
|
|
|
window.location.href = '/home/orders/pay?order_code=' + ticket.data.order_code
|
...
|
...
|
@@ -474,4 +481,13 @@ $ticketsMobile.blur(function function_name (e) { |
|
|
}
|
|
|
})
|
|
|
// 初始化发票信息内容
|
|
|
invoiceInit(); |
|
|
\ No newline at end of file |
|
|
invoiceInit();
|
|
|
|
|
|
$(window).scroll(function() {
|
|
|
|
|
|
if ($(this).scrollTop() >= (headerTop + addressTop)) {
|
|
|
$('.address-bottom').show();
|
|
|
} else {
|
|
|
$('.address-bottom').hide();
|
|
|
}
|
|
|
}); |
...
|
...
|
|