vizitka page

This commit is contained in:
merelendor 2022-08-29 10:57:55 +03:00
parent a763e02744
commit c93f602d92
23 changed files with 321 additions and 7 deletions

1
.gitignore vendored
View File

@ -7,4 +7,3 @@ sitemap*
.xml .xml
.htsecure .htsecure
cron/yasprav.log cron/yasprav.log
local/yasprav.log

View File

@ -5,9 +5,9 @@ $APPLICATION->SetTitle("Эволюция автолизинга: Вместе с
<div class="container"> <div class="container">
<h1 class="section_title">Вместе с МКБ</h1> <h1 class="section_title">Вместе с МКБ</h1>
<article> <article>
<h2><img width="500" alt="mkblogo500v2.png" src="/upload/medialibrary/33a/sd4iqi4n21vfqg00k5dhpolto24gmqro.png" height="210" title="mkblogo500v2.png" style="max-width:100%"><br> <h2><img alt="mkb500.png" src="/upload/medialibrary/a73/c7qhj78kedljpx74jkcbsr5zylm6qd8d.png" title="mkb500.png" style="max-width:100%"><br>
</h2> </h2>
<h2><span style="color: #e81c62;">2% - субсидия на авансовый платёж для клиентов МКБ</span></h2> <h2><span style="color: #e81c62;">Специальные условия по лизингу для клиентов МКБ</span></h2>
<h2>Лучшие условия финансирования среди лизинговых компаний за счет собственного фондирования</h2> <h2>Лучшие условия финансирования среди лизинговых компаний за счет собственного фондирования</h2>
<ul class="special_desc list-column"> <ul class="special_desc list-column">
<li>Рассмотрение заявки по 2-м документам (анкета и паспорт).</li> <li>Рассмотрение заявки по 2-м документам (анкета и паспорт).</li>

View File

@ -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 => SC1</pre><pre>30 => SK1</pre><pre>31 => ST1</pre><pre>32 => SG1</pre><pre>33 => TL1</pre><pre>34 => TM1</pre><pre>35 => UF1</pre><pre>36 => CB1</pre><pre>37 => CL1</pre><pre>38 => YR1</pre><pre></pre><pre></pre>Ok! Сохранено по <a href='https://www.evoleasing.ru/upload/docs/yasprav.xml'>ссылке!</a> 24.06.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 => SK1</pre><pre>31 => ST1</pre><pre>32 => SG1</pre><pre>33 => TL1</pre><pre>34 => TM1</pre><pre>35 => UF1</pre><pre>36 => CB1</pre><pre>37 => CL1</pre><pre>38 => YR1</pre><pre></pre><pre></pre>Ok! Сохранено по <a href='https://www.evoleasing.ru/upload/docs/yasprav.xml'>ссылке!</a> 29.08.2022

View File

@ -69,6 +69,16 @@ function form_leasing_request_submit()
$("#send_button_spinner").css("display", "none"); $("#send_button_spinner").css("display", "none");
leasing_form_submitting = false; leasing_form_submitting = false;
try
{
ym(66905533,'reachGoal','leasingform')
}
catch(e)
{
console.error(e);
}
} }
else if(response.status == "error") else if(response.status == "error")
{ {

View File

@ -69,6 +69,16 @@ function form_leasing_request_submit()
$("#send_button_spinner").css("display", "none"); $("#send_button_spinner").css("display", "none");
leasing_form_submitting = false; leasing_form_submitting = false;
try
{
ym(66905533,'reachGoal','leasingform')
}
catch(e)
{
console.error(e);
}
} }
else if(response.status == "error") else if(response.status == "error")
{ {

View File

@ -20,7 +20,7 @@
<? endif ?> <? endif ?>
</ul> </ul>
</nav> </nav>
<a href="tel:88003337575">8 800 333 75 75</a> <a id="comagic1" href="tel:88003337575">8 800 333 75 75</a>
</div> </div>
<a href="https://lk.evoleasing.ru/" class="lk" title="Личный кабинет"></a> <a href="https://lk.evoleasing.ru/" class="lk" title="Личный кабинет"></a>
</div> </div>

View File

@ -41,7 +41,7 @@
<a href="mailto:buy@evoleasing.ru">buy@evoleasing.ru</a> <a href="mailto:buy@evoleasing.ru">buy@evoleasing.ru</a>
</div> </div>
<div> <div>
<a href="tel:88003337575">8 800 333 75 75</a> <a id="comagic2" href="tel:88003337575">8 800 333 75 75</a>
</div> </div>
<div class="socials"> <div class="socials">
<!--<a href="https://www.instagram.com/evoleasing/" target="_blank" rel="nofollow noopener"> <!--<a href="https://www.instagram.com/evoleasing/" target="_blank" rel="nofollow noopener">

3
vizitka/.section.php Normal file
View File

@ -0,0 +1,3 @@
<?
$sSectionName="Boston Auto";
?>

BIN
vizitka/aepifanov_200.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
vizitka/boston.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

13
vizitka/data.json Normal file

File diff suppressed because one or more lines are too long

3
vizitka/img/.section.php Normal file
View File

@ -0,0 +1,3 @@
<?
$sSectionName="img";
?>

1
vizitka/img/Telegram.svg Normal file
View File

@ -0,0 +1 @@
<svg id="Icons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 215 215"><defs><style>.cls-1{fill:url(#Безымянный_градиент_2);}.cls-2{fill:#fff;fill-rule:evenodd;}</style><linearGradient id=езымянный_градиент_2" y1="107.5" x2="215" y2="107.5" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2aabee"/><stop offset="1" stop-color="#229ed9"/></linearGradient></defs><g id="Telegram"><circle id="Background" class="cls-1" cx="107.5" cy="107.5" r="107.5"/><path id="Telegram-2" data-name="Telegram" class="cls-2" d="M603.31,105.65q46.89-20.43,62.53-26.94c29.78-12.38,36-14.53,40-14.61A7.09,7.09,0,0,1,710,65.35a4.49,4.49,0,0,1,1.53,2.9,19.25,19.25,0,0,1,.18,4.23c-1.61,17-8.6,58.09-12.15,77.08-1.5,8-4.46,10.73-7.33,11-6.22.57-11-4.12-17-8.07-9.44-6.19-14.77-10-23.93-16.08-10.59-7-3.72-10.81,2.31-17.07,1.58-1.64,29-26.6,29.54-28.86a2.18,2.18,0,0,0-.5-1.9,2.49,2.49,0,0,0-2.22-.21q-1.41.31-45.22,29.89-6.42,4.41-11.63,4.3c-3.83-.09-11.19-2.17-16.67-4-6.71-2.18-12-3.33-11.58-7Q595.7,108.68,603.31,105.65Z" transform="translate(-554)"/></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

1
vizitka/img/WhatsApp.svg Normal file
View File

@ -0,0 +1 @@
<svg id="Icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 215 215"><defs><style>.cls-1{fill:#25d366;}.cls-2,.cls-3{fill:#fff;}.cls-3{fill-rule:evenodd;}</style></defs><g id="WhatsApp"><circle id="Background" class="cls-1" cx="107.5" cy="107.5" r="107.5"/><g id="WhatsApp-2" data-name="WhatsApp"><path id="WhatsApp-3" data-name="WhatsApp" class="cls-2" d="M885.91,161l7.55-27.56a53.18,53.18,0,1,1,46.09,26.64h0a53.18,53.18,0,0,1-25.41-6.48Zm29.5-17,1.62,1a44.21,44.21,0,0,0,22.5,6.17h0a44.22,44.22,0,1,0-37.45-20.72l1,1.67-4.47,16.31Z" transform="translate(-831)"/><path id="WhatsApp-4" data-name="WhatsApp" class="cls-3" d="M966.34,119.54c-.33-.56-1.22-.89-2.55-1.55s-7.86-3.88-9.08-4.33-2.1-.66-3,.67-3.43,4.32-4.2,5.21-1.56,1-2.88.33A36.31,36.31,0,0,1,934,113.28a40,40,0,0,1-7.39-9.21c-.78-1.33-.09-2,.58-2.71s1.33-1.56,2-2.33a8.84,8.84,0,0,0,1.33-2.22,2.47,2.47,0,0,0-.11-2.33c-.33-.66-3-7.2-4.1-9.86s-2.17-2.24-3-2.29-1.66,0-2.54,0A4.89,4.89,0,0,0,917.17,84,14.91,14.91,0,0,0,912.52,95c0,6.54,4.76,12.86,5.43,13.75s9.37,14.31,22.7,20.06a75.55,75.55,0,0,0,7.58,2.8,18.27,18.27,0,0,0,8.37.53c2.55-.38,7.86-3.22,9-6.32S966.67,120.09,966.34,119.54Z" transform="translate(-831)"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
vizitka/img/facelogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

226
vizitka/index.php Normal file
View File

@ -0,0 +1,226 @@
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Эволюция автолизинга: Приятно познакомиться");
require_once($_SERVER["DOCUMENT_ROOT"].'/bitrix/php_interface/phpqrcode/qrlib.php');
?>
<?
$request = \Bitrix\Main\Context::getCurrent()->getRequest();
$request->getQueryList()->toArray();
$guid = $request->get("userid");
$ourData = file_get_contents("data.json");
$object = json_decode($ourData);
//Очищаем временную директорию от файлоы старше 2 дней
$tmpfolders = $_SERVER["DOCUMENT_ROOT"].'/vizitka/tmp/';
$fileSystemIterator = new FilesystemIterator($tmpfolders);
$now = time();
foreach ($fileSystemIterator as $file) {
if ($now - $file->getCTime() >= 60 * 60 * 24 * 2) // 2 days
unlink($tmpfolders.$file->getFilename());
}
?>
<style>
.offer_item_boston {
#width: calc(33% - 20px);
width: auto !important;
padding-bottom: 30px;
#margin-right: 40px;
position: relative;
}
.offer_item_boston img{
border-radius: 50%;
#margin-left: 42px;
#margin-top: 15px;
}
.offer_item {
width: auto !important;
padding-left: 0 !important;
padding-right: 20px;
}
.leasing_offers_list {
margin-top: 30px;
#margin-bottom: 60px;
}
.offer_item .qrimage {
position: relative !important;
width: 260px !important;
height: 260px !important;
}
.offer_item .vcfbutton {
background-color: #1c01a9;
color: #fff;
padding: 5px 15px;
width: fit-content;
font-weight: bold;
}
.messenger {
position: relative !important;
width: 30px;
height: 30px;
vertical-align: bottom;
}
</style>
<section data-page="about">
<?
//Разбираем данные из json
if ($guid & $object->fullName) {
$name = $object->fullName;
$post = $object->post;
$dept = $object->department;
$company = "Эволюция Автолизинга";
$mob = $object->mobilePhone;
$mobcl = preg_replace('/[^0-9]/', '', $mob);
$tel = $object->workPhone;
$telcl = preg_replace('/[^0-9]/', '', $tel);
$teladd = $object->workPhoneCode;
$mail = $object->email;
$address = $object->address;
$whatsapp = $object->whatsAppOn;
$telegram = $object->telegram;
$www = "https://www.evoleasing.ru";
//VCF для QR кода
$qrtext = 'BEGIN:VCARD
VERSION:4.0
N;CHARSET=UTF-8:;'.$name.';;;
FN;CHARSET=UTF-8:'.$name.'
TITLE;CHARSET=UTF-8:'.$post.'
EMAIL:'.$mail.'
ORG;CHARSET=UTF-8:'.$company.'
TEL:'.$mob.'
URL;type=PREF:'.$www.'
LANG:ru-RU
END:VCARD';
$qrimg = QRcode::png($qrtext, $_SERVER["DOCUMENT_ROOT"].'/vizitka/tmp/'.$guid.'.png', 'L', 4, 2);
$im = imagecreatefrompng($_SERVER["DOCUMENT_ROOT"].'/vizitka/tmp/'.$guid.'.png');
//Формируем vcf файл визитки для телефонов
$vcarddata = 'BEGIN:VCARD
VERSION:4.0
N;CHARSET=UTF-8:;'.$name.';;;
FN;CHARSET=UTF-8:'.$name.'
TITLE;CHARSET=UTF-8:'.$post.'
EMAIL:'.$mail.'
ORG;CHARSET=UTF-8:'.$company.'
TEL:'.$mob.'
URL;type=PREF:'.$www.'
PHOTO;ENCODING=BASE64;TYPE=JPEG:'.$object->image.'
LANG:ru-RU
END:VCARD';
$vcarddata = mb_convert_encoding($vcarddata, "UTF-8");
$vcffile = './tmp/'.$guid.'.vcf';
$fp = fopen($vcffile, "w");
fwrite($fp, $vcarddata);
fclose($fp);
//Формируем vcf файл визитки для компьютера
$vcarddatawin = 'BEGIN:VCARD
VERSION:4.0
N;CHARSET=windows-1252:;'.$name.';;;
FN;CHARSET=windows-1252:'.$name.'
TITLE;CHARSET=windows-1252:'.$post.'
EMAIL:'.$mail.'
ORG;CHARSET=windows-1252:'.$company.'
TEL:'.$mob.'
URL;type=PREF:'.$www.'
PHOTO;ENCODING=BASE64;TYPE=JPEG:'.$object->image.'
LANG:ru-RU
END:VCARD';
$vcarddatawin = iconv("utf-8", "windows-1251", $vcarddatawin);
$vcffilewin = './tmp/'.$guid.'-win.vcf';
$fp = fopen($vcffilewin, "w");
fwrite($fp, $vcarddatawin);
fclose($fp);
//Дальше вёрстка
?>
<section class="gray">
<div class="container">
<h2><span style="color: #1c01a9;"><?=$name?></span></h2>
<p><b><?=$post?></b></p>
<p><?=$dept?></p>
<div class="leasing_offers_list">
<div class="offer_item_boston">
<?if($object->image){?>
<img src="data:image/jpeg;base64,<?=$object->image;?>" alt="" />
<?}else{?>
<img src="./img/facelogo.png" alt="" />
<?}?>
</div>
<div class="offer_item">
<p>
<b>Свяжитесь со мной</b>
</p>
<p>
<?if($mob){?><a href="tel:+<?=$mobcl;?>"><?=$mob;?> </a><?}?>
<?if($whatsapp=true){?><a href="https://wa.me/<?=$mobcl;?>" target="_blank"><img class="messenger" src="./img/WhatsApp.svg" /></a><?}?>
<?if($telegram){?><a href="https://t.me/<?=$telegram;?>" target="_blank"><img class="messenger" src="./img/Telegram.svg" /></a><?}?>
</p>
<?if($tel){?><p><a href="tel:+<?=$telcl;?>"><?=$tel;?></a> доб. <?=$teladd;?></p><?}?>
<?if($mail){?><p><a href="mailto:<?=$mail;?>"><?=$mail;?></a></p><?}?>
<?if($address){?><p><?=$address;?></p><?}?>
<a href=<?=$vcffile?>>
<p class="vcfbutton">Скачать визитку на телефон .vcf</p>
</a>
<a href=<?=$vcffilewin?>>
<p class="vcfbutton">Скачать визитку на компьютер .vcf</p>
</a>
</div>
<div class="offer_item">
<p>
<b>Сохраните контакт на телефон</b>
</p>
<img class="qrimage" src="./tmp/<?=$guid?>.png" />
</div>
</div></div>
</section>
<?} else {?>
<section class="gray">
<div class="container">
<div class="leasing_offers_list">
<div class="offer_item">
<p style="font-size: 2rem; line-height: 2rem;">
<b>Такой<br />визитки<br />не существует</b>
</p>
</div>
<div class="offer_item">
<p style="font-size: 2rem; line-height: 2rem;">
<b>Просто позвоните<br />по номеру<br /><a href="tel:88003337575">8&nbsp;800&nbsp;333&nbsp;75&nbsp;75</a></b>
</p>
</div>
<div class="offer_item">
<p style="font-size: 2rem; line-height: 2rem;">
<b>или отправьте<br />заявку на лизинг<br />из формы ниже</b>
</p>
</div>
</div>
</div>
</section>
<?}?>
<article>
<?$APPLICATION->IncludeComponent(
"evolution:form.leasing.nomail",
"",
Array()
);?>
</article>
</section>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>

BIN
vizitka/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

12
vizitka/tmp/-win.vcf Normal file

File diff suppressed because one or more lines are too long

BIN
vizitka/tmp/.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

12
vizitka/tmp/.vcf Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

File diff suppressed because one or more lines are too long