|
|
|
|
@ -31,6 +31,11 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
isSupportAr:boolean=false;
|
|
|
|
|
isAppleStore:boolean=false;
|
|
|
|
|
memberLogin: any = {};
|
|
|
|
|
private currentLang : any;
|
|
|
|
|
private patientOutSA: boolean;
|
|
|
|
|
private loginTokenID: string;
|
|
|
|
|
private isMobileFingerPrint: boolean;
|
|
|
|
|
private FingerPrintPatientIdentificationID: string;
|
|
|
|
|
constructor(
|
|
|
|
|
public cs: CommonService,
|
|
|
|
|
public authService: AuthenticationService,
|
|
|
|
|
@ -51,6 +56,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
this.checkIfLoggedInBefore();
|
|
|
|
|
// this.splash.hide();
|
|
|
|
|
}, 100);
|
|
|
|
|
this.currentLang = TranslatorService.getCurrentLanguageCode();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ngOnDestroy(): void {
|
|
|
|
|
@ -58,6 +64,8 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
}
|
|
|
|
|
public changeLanguage(){
|
|
|
|
|
this.ts.switchLanguage();
|
|
|
|
|
this.currentLang = TranslatorService.getCurrentLanguageCode();
|
|
|
|
|
console.log(this.currentLang);
|
|
|
|
|
}
|
|
|
|
|
private checkIfLoggedInBefore() {
|
|
|
|
|
this.cs.startLoading();
|
|
|
|
|
@ -393,11 +401,6 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
}, null, title);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private patientOutSA: boolean;
|
|
|
|
|
private loginTokenID: string;
|
|
|
|
|
private isMobileFingerPrint: boolean;
|
|
|
|
|
private FingerPrintPatientIdentificationID: string;
|
|
|
|
|
|
|
|
|
|
private checkActivationCode(readedCode?) {
|
|
|
|
|
const request = new CheckActivationCodeRequest();
|
|
|
|
|
request.IsMobileFingerPrint = this.isMobileFingerPrint;
|
|
|
|
|
@ -440,7 +443,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
|
|
|
|
if (this.authService.isAgreedBefore()) {
|
|
|
|
|
this.cs.openHome();
|
|
|
|
|
} else {
|
|
|
|
|
this.cs.openAgreement();
|
|
|
|
|
// this.cs.openAgreement();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|