Skip to content

Commit 3e0129c

Browse files
authored
Merge pull request #22 from zirreal/main
2 parents 58a7bd9 + 07a4359 commit 3e0129c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/components/FormPopup.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ function formatPhone(e: Event) {
103103
let digits = input.replace(/\D/g, '');
104104
105105
106-
if (digits.startsWith('8') || digits.startsWith('9')) {
107-
digits = '7' + digits.slice(1);
106+
if (digits.startsWith('8')) {
107+
digits = '78' + digits.slice(1);
108+
} else if(digits.startsWith('9')) {
109+
digits = '79' + digits.slice(1);
108110
} else if (digits.startsWith('7')) {
109111
} else if (!digits.startsWith('7')) {
110112
digits = '7' + digits;
@@ -165,7 +167,6 @@ function submitForm() {
165167
return;
166168
}
167169
if (hcaptchaRef.value) {
168-
console.log('here')
169170
hcaptchaRef.value.execute();
170171
}
171172
}

src/components/Header.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<li class="nav__item link-remote">
2222
<button class="popup-trigger" aria-label="Оставить заявку" >Получить карту в подарок</button>
2323
</li>
24-
<li class="nav__item">
24+
<li class="nav__item nav__item--tg">
2525
<a href="https://t.me/MultiAgent_io" class="home-page__link--tg" target="_blank" aria-label="Запланировать замер для вашего умного дома"></a>
2626
</li>
2727
</ul>
@@ -148,6 +148,10 @@ const mainUrl = withBase('/')
148148
color: #191919;
149149
}
150150
151+
.nav__item--tg {
152+
line-height: 0;
153+
}
154+
151155
.home-page__link--tg {
152156
display: block;
153157
width: 40px;

0 commit comments

Comments
 (0)