|
|
|
@ -45,6 +45,9 @@ export class MobileAppQrcodeWidgetComponent extends PageComponent implements OnI |
|
|
|
private deepLinkTTL: number; |
|
|
|
private deepLinkTTLTimeoutID: NodeJS.Timeout; |
|
|
|
|
|
|
|
googlePlayLink: string; |
|
|
|
appStoreLink: string; |
|
|
|
|
|
|
|
previewMode = false; |
|
|
|
|
|
|
|
badgePosition = BadgePosition; |
|
|
|
@ -108,6 +111,10 @@ export class MobileAppQrcodeWidgetComponent extends PageComponent implements OnI |
|
|
|
} else { |
|
|
|
this.previewMode = true; |
|
|
|
} |
|
|
|
this.mobileAppService.getMobileAppStoreLinks().subscribe(storeLinks => { |
|
|
|
this.googlePlayLink = storeLinks.googlePlayLink; |
|
|
|
this.appStoreLink = storeLinks.appStoreLink; |
|
|
|
}); |
|
|
|
this.initMobileAppQRCode(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -130,6 +137,13 @@ export class MobileAppQrcodeWidgetComponent extends PageComponent implements OnI |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
navigateByStoreLink($event, storeLink: string) { |
|
|
|
if ($event) { |
|
|
|
$event.stopPropagation(); |
|
|
|
} |
|
|
|
window.open(storeLink, '_blank'); |
|
|
|
} |
|
|
|
|
|
|
|
private initMobileAppQRCode() { |
|
|
|
if (this.deepLinkTTLTimeoutID) { |
|
|
|
clearTimeout(this.deepLinkTTLTimeoutID); |
|
|
|
|