From 98423be0c35c668c163973ee9f84bb9e18db8e28 Mon Sep 17 00:00:00 2001 From: sdarbinyan Date: Wed, 6 May 2026 17:37:55 +0400 Subject: [PATCH] link Co-authored-by: Copilot --- src/app/pages/fastcheck-page/fastcheck-page.html | 14 +++++++------- src/app/pages/fastcheck-page/fastcheck-page.ts | 10 +++++++++- src/app/pages/legacy-pay-page/legacy-pay-page.html | 13 ++++++++++++- src/app/pages/legacy-pay-page/legacy-pay-page.ts | 11 ++++++++++- 4 files changed, 38 insertions(+), 10 deletions(-) diff --git a/src/app/pages/fastcheck-page/fastcheck-page.html b/src/app/pages/fastcheck-page/fastcheck-page.html index ab1cdcc..baa0ac4 100644 --- a/src/app/pages/fastcheck-page/fastcheck-page.html +++ b/src/app/pages/fastcheck-page/fastcheck-page.html @@ -145,13 +145,13 @@ -
- @if (popupLoading() && !webSessionId()) { -
{{ 'fastcheck.modal_loading' | translate }}
- } @else if (webSessionId()) { - QR Telegram - } -
+ @if (popupLoading() && !webSessionId()) { +
{{ 'fastcheck.modal_loading' | translate }}
+ } + + @if (webSessionId() && !isMobile) { + QR Telegram + } @if (webSessionId()) { diff --git a/src/app/pages/fastcheck-page/fastcheck-page.ts b/src/app/pages/fastcheck-page/fastcheck-page.ts index 3c3114f..90b5f0d 100644 --- a/src/app/pages/fastcheck-page/fastcheck-page.ts +++ b/src/app/pages/fastcheck-page/fastcheck-page.ts @@ -78,6 +78,10 @@ export class FastcheckPage { return `https://api.qrserver.com/v1/create-qr-code/?size=240x240&margin=8&data=${encodeURIComponent(link)}`; }); + get isMobile(): boolean { + return typeof window !== 'undefined' && window.innerWidth < 768; + } + constructor() { // Pull autofill data: prefer router navigation state, fall back to service. const navState = typeof window !== 'undefined' ? (window.history?.state ?? {}) : {}; @@ -122,7 +126,11 @@ export class FastcheckPage { next: (res) => { this.popupLoading.set(false); this.webSessionId.set(res.sessionId); - this.startPolling(res.sessionId); + if (this.isMobile) { + window.location.href = `https://t.me/${this.telegramBot}?start=${encodeURIComponent(res.sessionId)}`; + } else { + this.startPolling(res.sessionId); + } }, error: () => { this.popupLoading.set(false); diff --git a/src/app/pages/legacy-pay-page/legacy-pay-page.html b/src/app/pages/legacy-pay-page/legacy-pay-page.html index 000a7bb..963379b 100644 --- a/src/app/pages/legacy-pay-page/legacy-pay-page.html +++ b/src/app/pages/legacy-pay-page/legacy-pay-page.html @@ -53,7 +53,18 @@ > -