finlab + custom form, css fixes, seo fixes
This commit is contained in:
parent
f236840031
commit
36338120e5
@ -9,28 +9,28 @@ $aMenuLinks = Array(
|
|||||||
),
|
),
|
||||||
Array(
|
Array(
|
||||||
"Спецпредложения",
|
"Спецпредложения",
|
||||||
"/special",
|
"/special/",
|
||||||
Array(),
|
Array(),
|
||||||
Array(),
|
Array(),
|
||||||
""
|
""
|
||||||
),
|
),
|
||||||
Array(
|
Array(
|
||||||
"Сервисы",
|
"Сервисы",
|
||||||
"/services",
|
"/services/",
|
||||||
Array(),
|
Array(),
|
||||||
Array(),
|
Array(),
|
||||||
""
|
""
|
||||||
),
|
),
|
||||||
Array(
|
Array(
|
||||||
"Каталог автомобилей",
|
"Каталог автомобилей",
|
||||||
"/catalog",
|
"/catalog/",
|
||||||
Array(),
|
Array(),
|
||||||
Array(),
|
Array(),
|
||||||
""
|
""
|
||||||
),
|
),
|
||||||
Array(
|
Array(
|
||||||
"О компании",
|
"О компании",
|
||||||
"/about",
|
"/about/",
|
||||||
Array(),
|
Array(),
|
||||||
Array(),
|
Array(),
|
||||||
""
|
""
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
<pre>1 => MO1</pre><pre>2 => SP1</pre><pre>3 => BN1</pre><pre>4 => BG1</pre><pre>5 => VL1</pre><pre>6 => VR1</pre><pre>7 => EK1</pre><pre>8 => IR1</pre><pre>9 => KZ1</pre><pre>10 => KG1</pre><pre>11 => KL1</pre><pre>12 => KM1</pre><pre>13 => KR1</pre><pre>14 => KS2</pre><pre>15 => KS1</pre><pre>16 => LP1</pre><pre>17 => NC1</pre><pre>18 => NN1</pre><pre>19 => NV1</pre><pre>20 => NR1</pre><pre>21 => NS1</pre><pre>22 => OM1</pre><pre>23 => OR1</pre><pre>24 => PR1</pre><pre>25 => RD1</pre><pre>26 => RZ1</pre><pre>27 => SM1</pre><pre>28 => SR1</pre><pre>29 => SG1</pre><pre>30 => ST1</pre><pre>31 => TL1</pre><pre>32 => TM1</pre><pre>33 => UF1</pre><pre>34 => CB1</pre><pre>35 => CL1</pre><pre>36 => YR1</pre><pre></pre><pre></pre>Ok! Сохранено по <a href='https://www.evoleasing.ru/upload/docs/yasprav.xml'>ссылке!</a> 15.04.2022
|
<pre>1 => MO1</pre><pre>2 => SP1</pre><pre>3 => BN1</pre><pre>4 => BG1</pre><pre>5 => VL1</pre><pre>6 => VR1</pre><pre>7 => EK1</pre><pre>8 => IR1</pre><pre>9 => KZ1</pre><pre>10 => KG1</pre><pre>11 => KL1</pre><pre>12 => KM1</pre><pre>13 => KR1</pre><pre>14 => KS2</pre><pre>15 => KS1</pre><pre>16 => LP1</pre><pre>17 => NC1</pre><pre>18 => NN1</pre><pre>19 => NV1</pre><pre>20 => NR1</pre><pre>21 => NS1</pre><pre>22 => OM1</pre><pre>23 => OR1</pre><pre>24 => PR1</pre><pre>25 => RD1</pre><pre>26 => RZ1</pre><pre>27 => SM1</pre><pre>28 => SR1</pre><pre>29 => SC1</pre><pre>30 => ST1</pre><pre>31 => SG1</pre><pre>32 => TL1</pre><pre>33 => TM1</pre><pre>34 => UF1</pre><pre>35 => CB1</pre><pre>36 => CL1</pre><pre>37 => YR1</pre><pre></pre><pre></pre>Ok! Сохранено по <a href='https://www.evoleasing.ru/upload/docs/yasprav.xml'>ссылке!</a> 02.06.2022
|
||||||
3
finlab/.section.php
Normal file
3
finlab/.section.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?
|
||||||
|
$sSectionName="МКБ";
|
||||||
|
?>
|
||||||
56
finlab/index.php
Normal file
56
finlab/index.php
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
<?
|
||||||
|
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
|
||||||
|
$APPLICATION->SetTitle("Эволюция автолизинга: finlab");
|
||||||
|
?><section data-page="about">
|
||||||
|
|
||||||
|
|
||||||
|
<section class="gray">
|
||||||
|
<div class="container">
|
||||||
|
<h2>Лизинговые предложения</h2>
|
||||||
|
<div class="leasing_offers_list">
|
||||||
|
<div class="offer_item">
|
||||||
|
<img src="/images/leasing/icon-1.svg" alt="">
|
||||||
|
<p>
|
||||||
|
<b>Параметры финансирования</b>
|
||||||
|
</p>
|
||||||
|
<ul class="custom-dots">
|
||||||
|
<li><b>Аванс от 0%</b></li>
|
||||||
|
<li>Срок <b>от 12 до 60 месяцев</b></li>
|
||||||
|
<li>Решение в день обращения</li>
|
||||||
|
</ul> </div>
|
||||||
|
<div class="offer_item">
|
||||||
|
<img src="/images/leasing/icon-2.svg" alt="">
|
||||||
|
<p>
|
||||||
|
<b>Финансовые преимущества</b>
|
||||||
|
</p>
|
||||||
|
<ul class="custom-dots">
|
||||||
|
<li>Возврат <b>20% НДС</b> от стоимости автомобиля</li>
|
||||||
|
<li>Включение в расходы лизинговых платежей</li>
|
||||||
|
<li>Любые графики под Ваши цели</li>
|
||||||
|
</ul> </div>
|
||||||
|
<div class="offer_item">
|
||||||
|
<img src="/images/leasing/icon-3.svg" alt="">
|
||||||
|
<p>
|
||||||
|
<b>Условия</b>
|
||||||
|
</p>
|
||||||
|
<ul class="custom-dots">
|
||||||
|
<li>Вам <b>от 3 месяцев</b></li>
|
||||||
|
<li>Без залога</li>
|
||||||
|
<li>Минимум документов</li>
|
||||||
|
</ul> </div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<article>
|
||||||
|
<?$APPLICATION->IncludeComponent(
|
||||||
|
"evolution:form.leasing.nomail",
|
||||||
|
"",
|
||||||
|
Array()
|
||||||
|
);?>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
|
||||||
18
local/components/evolution/form.leasing.nomail/component.php
Normal file
18
local/components/evolution/form.leasing.nomail/component.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?
|
||||||
|
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
|
||||||
|
/** @var CBitrixComponent $this */
|
||||||
|
/** @var array $arParams */
|
||||||
|
/** @var array $arResult */
|
||||||
|
/** @var string $componentPath */
|
||||||
|
/** @var string $componentName */
|
||||||
|
/** @var string $componentTemplate */
|
||||||
|
/** @global CDatabase $DB */
|
||||||
|
/** @global CUser $USER */
|
||||||
|
/** @global CMain $APPLICATION */
|
||||||
|
|
||||||
|
use Bitrix\Main\Context,
|
||||||
|
Bitrix\Main\Type\DateTime,
|
||||||
|
Bitrix\Main\Loader,
|
||||||
|
Bitrix\Iblock;
|
||||||
|
|
||||||
|
$this->includeComponentTemplate();
|
||||||
@ -0,0 +1,119 @@
|
|||||||
|
var leasing_form_submitting = false;
|
||||||
|
|
||||||
|
function check_errors()
|
||||||
|
{
|
||||||
|
var valid = true;
|
||||||
|
|
||||||
|
if(!$("#FORM_FIELD_FIO").val())
|
||||||
|
{
|
||||||
|
valid = false;
|
||||||
|
$("#FORM_FIELD_FIO_wrapper").addClass("error").attr("data-error", "Необходимо указать Ваши ФИО");
|
||||||
|
}
|
||||||
|
if(!$("#FORM_FIELD_PHONE").val())
|
||||||
|
{
|
||||||
|
valid = false;
|
||||||
|
$("#FORM_FIELD_PHONE_wrapper").addClass("error").attr("data-error", "Необходимо указать номер Вашего телефона");
|
||||||
|
}
|
||||||
|
if(!$("#FORM_FIELD_EMAIL").val())
|
||||||
|
{
|
||||||
|
valid = false;
|
||||||
|
$("#FORM_FIELD_EMAIL_wrapper").addClass("error").attr("data-error", "Необходимо указать Ваш адрес E-mail");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(!is_email($("#FORM_FIELD_EMAIL").val()))
|
||||||
|
{
|
||||||
|
valid = false;
|
||||||
|
$("#FORM_FIELD_EMAIL_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите правильный адрес E-mail");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return valid;
|
||||||
|
}
|
||||||
|
|
||||||
|
function form_leasing_request_submit()
|
||||||
|
{
|
||||||
|
var accept = $("#policy").is(':checked');
|
||||||
|
if(!leasing_form_submitting && accept)
|
||||||
|
{
|
||||||
|
if(check_errors())
|
||||||
|
{
|
||||||
|
leasing_form_submitting = true;
|
||||||
|
$("#send_button_text").css("display", "none");
|
||||||
|
$("#send_button_spinner").css("display", "block");
|
||||||
|
|
||||||
|
$("#form_leasing_request").find("input").removeClass("error");
|
||||||
|
|
||||||
|
var formData = new FormData($("#form_leasing_request")[0]);
|
||||||
|
formData.append("form", "FORM_LEASING_REQUESTS");
|
||||||
|
formData.append("FORM_FIELD_PAGE_NAME", document.title);
|
||||||
|
formData.append("FORM_FIELD_PAGE_URL", window.location.href);
|
||||||
|
formData.append("FORM_FIELD_BRAND", $("#FORM_FIELD_BRAND").val() ? $("#FORM_FIELD_BRAND").val() : "");
|
||||||
|
formData.append("FORM_FIELD_MODEL", $("#FORM_FIELD_MODEL").val() ? $("#FORM_FIELD_MODEL").val() : "");
|
||||||
|
formData.append("FORM_FIELD_MODIFICATION", $("#FORM_FIELD_MODIFICATION").val() ? $("#FORM_FIELD_MODIFICATION").val() : "");
|
||||||
|
formData.append("FORM_FIELD_PRICE", $("#FORM_FIELD_PRICE").val() ? $("#FORM_FIELD_PRICE").val() : "");
|
||||||
|
formData.append("FORM_FIELD_PREPAID", $("#FORM_FIELD_PREPAID").val() ? $("#FORM_FIELD_PREPAID").val() : "");
|
||||||
|
formData.append("FORM_FIELD_TERM", $("#FORM_FIELD_TERM").val() ? $("#FORM_FIELD_TERM").val() : "");
|
||||||
|
formData.append("FORM_FIELD_REDEMPTION", $("#FORM_FIELD_REDEMPTION").val() ? $("#FORM_FIELD_REDEMPTION").val() : "");
|
||||||
|
|
||||||
|
$.ajax(
|
||||||
|
{
|
||||||
|
url: "/api/forms/", type: 'POST', success: function(response)
|
||||||
|
{
|
||||||
|
if(response.status == "complete")
|
||||||
|
{
|
||||||
|
$("#form_leasing_process").css("display","none");
|
||||||
|
$("#form_leasing_success").css("display","flex");
|
||||||
|
|
||||||
|
$("#send_button_text").css("display", "block");
|
||||||
|
$("#send_button_spinner").css("display", "none");
|
||||||
|
|
||||||
|
leasing_form_submitting = false;
|
||||||
|
}
|
||||||
|
else if(response.status == "error")
|
||||||
|
{
|
||||||
|
for(var i in response.errors)
|
||||||
|
{
|
||||||
|
$("#form_leasing_request").find("*[name="+response.errors[i]+"]").addClass("error");
|
||||||
|
|
||||||
|
leasing_form_submitting = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, data: formData,
|
||||||
|
dataType: "json",
|
||||||
|
cache: false, contentType: false, processData: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$(function()
|
||||||
|
{
|
||||||
|
$("#form_leasing_request").find("input").on("keypress", function()
|
||||||
|
{
|
||||||
|
$(this).parent().removeClass("error").attr("data-error", null);
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#form_leasing_send_button").on("click", function()
|
||||||
|
{
|
||||||
|
form_leasing_request_submit();
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#form_leasing_request").on("submit", function(event)
|
||||||
|
{
|
||||||
|
event.preventDefault();
|
||||||
|
form_leasing_request_submit();
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#policy").on("change", function()
|
||||||
|
{
|
||||||
|
if($(this).is(':checked'))
|
||||||
|
{
|
||||||
|
$("#leasing_send_button").attr("disabled", false);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$("#leasing_send_button").attr("disabled", true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,90 @@
|
|||||||
|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
|
||||||
|
/** @var array $arParams */
|
||||||
|
/** @var array $arResult */
|
||||||
|
/** @global CMain $APPLICATION */
|
||||||
|
/** @global CUser $USER */
|
||||||
|
/** @global CDatabase $DB */
|
||||||
|
/** @var CBitrixComponentTemplate $this */
|
||||||
|
/** @var string $templateName */
|
||||||
|
/** @var string $templateFile */
|
||||||
|
/** @var string $templateFolder */
|
||||||
|
/** @var string $componentPath */
|
||||||
|
/** @var CBitrixComponent $component */
|
||||||
|
$this->setFrameMode(true);
|
||||||
|
?>
|
||||||
|
<style type="text/css">
|
||||||
|
@keyframes send_button_spinner_animation {
|
||||||
|
0% { transform: translate(-50%,-50%) rotate(0deg); }
|
||||||
|
100% { transform: translate(-50%,-50%) rotate(360deg); }
|
||||||
|
}
|
||||||
|
.send_button_spinner_animation div {
|
||||||
|
position: absolute;
|
||||||
|
width: 65px;
|
||||||
|
height: 65px;
|
||||||
|
border: 5px solid #1c01a9;
|
||||||
|
border-top-color: transparent;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
.send_button_spinner_animation div {
|
||||||
|
animation: send_button_spinner_animation 1s linear infinite;
|
||||||
|
top: 50px;
|
||||||
|
left: 50px
|
||||||
|
}
|
||||||
|
#send_button_spinner {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
display: inline-block;
|
||||||
|
overflow: hidden;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
.send_button_spinner_animation {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
transform: translateZ(0) scale(0.28);
|
||||||
|
backface-visibility: hidden;
|
||||||
|
transform-origin: 0 0; /* see note above */
|
||||||
|
}
|
||||||
|
.send_button_spinner_animation div { box-sizing: content-box; }
|
||||||
|
</style>
|
||||||
|
<section id="order">
|
||||||
|
<div class="container">
|
||||||
|
<h2 class="section_title">Купить в лизинг?</h2>
|
||||||
|
<div class="order_form">
|
||||||
|
<div class="order_email">
|
||||||
|
<p><b>Заполните форму</b> и наш менеджер в ближайшее время свяжется с Вами</p>
|
||||||
|
</div>
|
||||||
|
<form id="form_leasing_request">
|
||||||
|
<div id="form_leasing_process">
|
||||||
|
<div class="form_field" id="FORM_FIELD_FIO_wrapper">
|
||||||
|
<input type="text" id="FORM_FIELD_FIO" name="FORM_FIELD_FIO" value="" placeholder="Имя *"/>
|
||||||
|
</div>
|
||||||
|
<div class="form_field" id="FORM_FIELD_PHONE_wrapper">
|
||||||
|
<input type="tel" id="FORM_FIELD_PHONE" name="FORM_FIELD_PHONE" value="" placeholder="Телефон *"/>
|
||||||
|
</div>
|
||||||
|
<div class="form_field" id="FORM_FIELD_EMAIL_wrapper">
|
||||||
|
<input type="text" id="FORM_FIELD_EMAIL" name="FORM_FIELD_EMAIL" value="" placeholder="E-mail *"/>
|
||||||
|
</div>
|
||||||
|
<div class="form_field" id="FORM_FIELD_COMPANY_wrapper">
|
||||||
|
<input type="text" id="FORM_FIELD_COMPANY" name="FORM_FIELD_COMPANY" value="" placeholder="Организация" />
|
||||||
|
</div>
|
||||||
|
<div class="policy">
|
||||||
|
<input type="checkbox" name="policy" id="policy" hidden checked/>
|
||||||
|
<label for="policy">Даю свое согласие на обработку <u class="personal_data_link" id="personal_data_link">моих персональных данных</u></label>
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="button" id="leasing_send_button" style="width:110px; display: flex; justify-content: center;">
|
||||||
|
<div id="send_button_spinner" style="display:none;">
|
||||||
|
<div class="send_button_spinner_animation">
|
||||||
|
<div></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<span id="send_button_text" style="display:block;">Отправить</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div id="form_leasing_success" style="min-height: 400px; align-items: center; justify-content: center; display: none;">
|
||||||
|
<p style="color: #fff; font-size: 24px; line-height: 34px;">Благодарим Вас за обращение, наши специалисты свяжутся с Вами в ближайшее время.</p>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
File diff suppressed because one or more lines are too long
@ -26,7 +26,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "<";
|
content: ">";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
}
|
}
|
||||||
|
|||||||
6
yandex_6ebbafb7eae584f1.html
Normal file
6
yandex_6ebbafb7eae584f1.html
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
</head>
|
||||||
|
<body>Verification: 6ebbafb7eae584f1</body>
|
||||||
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user