Авторизация

  1. Главная
  2. Мой кабинет
№ заказа Услуга Окончание Статус Способ оплаты / доставки Стоимость Действия
+ '
Дата вылета '+ '

'+ 'Дата вылета'+ '
'+ '
'+ 'Выберите класс'+ ''+ '
'+ ''+'Отправить
'; var authPopup = BX.PopupWindowManager.create("getTickets", null, { autoHide: false, // zIndex: 0, offsetLeft: 0, offsetTop: 0, overlay : true, draggable: {restrict:true}, closeByEsc: false, closeIcon: { right : "17px", top : "16px"}, content: content_window, events: { onAfterPopupShow: function() { $('#getTickets select').chosen({no_results_text: 'Не нашлось'}); $('input[name="departure"]').asDatepicker({ namespace: 'calendar', date: $dataCurent['departure'], lang: 'ru' }); $('input[name="comeback"]').asDatepicker({ namespace: 'calendar', date: $dataCurent['comeback'], lang: 'ru' }); $('#getTickets .but_sity').on('click',function() { var $ajax_img = $("
"); $('.popup-window').css('opacity',0.2); $ajax_img.appendTo($('#getTickets')); $dataCurent['departure'] = $('#getTickets input[name="departure"]').val(); $dataCurent['comeback'] = $('#getTickets input[name="comeback"]').val(); $dataCurent['cabin'] = $('#getTickets select[name="cabin"]').val(); $dataCurent['order_sity_from'] = $('#getTickets select[name="order_sity_from"]').val(); $dataCurent['order_sity_to'] = $('#getTickets select[name="order_sity_to"]').val(); var st = JSON.stringify($dataCurent); $.ajax({ type: 'POST', url: '/bitrix/templates/rukurort/components/bitrix/sale.personal.order.list/order/functions.php', data: 'data='+st+'&search=Y', success: function(data){ authPopup.close(); getTicketsFinal(data); //$('a.popup-window-close-icon').triggetclick(); $('.ajax_img').detach(); $('.popup-window').css('opacity',1); /*$('#popup-window-content-getTickets .sity_block').html(data).parents('#getTickets').addClass('getTicketFinal');*/ } }); }); }, onPopupClose : function(authPopup){ authPopup.destroy(); } } }); authPopup.show(); } function getTicketsFinal($mas) { $temp = $.parseJSON($mas); var content_window = $temp['text']; var authPopup = BX.PopupWindowManager.create("getTicketsFinal", null, { autoHide: false, // zIndex: 0, offsetLeft: 0, offsetTop: 0, overlay : true, draggable: {restrict:true}, closeByEsc: false, closeIcon: { right : "17px", top : "9px"}, content: content_window, events: { onAfterPopupShow: function() { $('.show_item:first table.table_info input[type="radio"]').on('click',function() { $(this).parents('table.table_info').next().show(); }); $('.show_item:last table.table_info input[type="radio"]').on('click',function() { $(this).parents('.show_item').next().show(); }); $('#getTicketsFinal .but_sity.first_step').on('click',function() { $('.show_item:first').hide(); $('.show_item:last').show(); }); $('#getTicketsFinal .but_sity.back_step').on('click',function() { $('.show_item:last').hide(); $('.show_item:first').show(); }); $('.but_sity.final_step').on('click',function() { var $ajax_img = $("
"); $('.popup-window').css('opacity',0.2); $ajax_img.appendTo($('#getTicketsFinal')); $seg1 = $('.show_item:first').find('input[type="radio"]:checked').parents('.segments').attr('data-seg'); $seg2 = $('.show_item:last').find('input[type="radio"]:checked').parents('.segments').attr('data-seg'); $booking_codes1 = $('.show_item:first').find('input[type="radio"]:checked').parent().attr('data-booking_codes'); $booking_codes2 = $('.show_item:last').find('input[type="radio"]:checked').parent().attr('data-booking_codes'); var st = JSON.stringify($temp['data']); $.ajax({ type: 'POST', url: '/bitrix/templates/rukurort/components/bitrix/sale.personal.order.list/order/functions.php', data: 'data='+st+'&final=Y&seg1='+$seg1+'&seg2='+$seg2+'&booking_codes1='+$booking_codes1+'&booking_codes2='+$booking_codes2, success: function(data){ var dateEnd = JSON.parse(data); authPopup.destroy(); var payment_url = dateEnd['success']; if(payment_url == true) { //window.open(dateEnd['data']['payment_url'], '_blank'); authPopup.close(); $d = "Y"; $link = dateEnd['data']['payment_url']; getTicketsAero($d,$link); } else { $d = "N"; $link = false; getTicketsAero($d,$link); } } }); }); }, onPopupClose : function(authPopup){ authPopup.destroy(); } } }); authPopup.show(); } function getTicketsAero($data, $link) { if($data == 'Y') { var content_window = ''+ '
'+ '

Спасибо за оформление билета

'+ '

Для оформления билетов

'+ '

перейдите по ссылке

'+ '
'; } else { var content_window = ''+ '
'+ '

Повторите попытку позже. Проблемы со связью

'+ '
'; } var authPopup = BX.PopupWindowManager.create("getTickets", null, { autoHide: false, // zIndex: 0, offsetLeft: 0, offsetTop: 0, overlay : true, draggable: {restrict:true}, closeByEsc: false, closeIcon: { right : "17px", top : "16px"}, content: content_window, events: { onAfterPopupShow: function() { $('#getTickets').addClass('small_aero'); }, onPopupClose : function(authPopup){ authPopup.destroy(); } } }); authPopup.show(); }