From 7fe4b6de529b815311ebeccffa056780bd7c28ea Mon Sep 17 00:00:00 2001 From: nikolay Date: Tue, 4 Jul 2023 15:03:57 +0400 Subject: [PATCH] =?UTF-8?q?dev=20#14607=20=D0=9C=D0=BE=D1=80=D0=B5.=20?= =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF=D0=BE=20=D1=81?= =?UTF-8?q?=D0=B0=D0=B9=D1=82=D1=83:=20add=20agree=20information;=20remove?= =?UTF-8?q?=20uncessary=20user=20update;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/login/login.component.html | 5 +++ .../pages/login/login.component.scss | 6 ++++ angular/src/app/services/auth.service.ts | 33 +++++-------------- 3 files changed, 19 insertions(+), 25 deletions(-) diff --git a/angular/src/app/presentation-options/default-option/pages/login/login.component.html b/angular/src/app/presentation-options/default-option/pages/login/login.component.html index 90d3211..49318f8 100644 --- a/angular/src/app/presentation-options/default-option/pages/login/login.component.html +++ b/angular/src/app/presentation-options/default-option/pages/login/login.component.html @@ -32,6 +32,11 @@ +

+ Используя приложение, вы принимаете условия + соглашения и соглашаетесь на получение рекламно-информационных + сообщений +

diff --git a/angular/src/app/presentation-options/default-option/pages/login/login.component.scss b/angular/src/app/presentation-options/default-option/pages/login/login.component.scss index a508c7b..51336ef 100644 --- a/angular/src/app/presentation-options/default-option/pages/login/login.component.scss +++ b/angular/src/app/presentation-options/default-option/pages/login/login.component.scss @@ -14,6 +14,12 @@ left: 50%; transform: translate(-50%, -50%); } + .agree-info { + text-align: center; + margin: 0 auto; + margin-top: 40px; + max-width: 80%; + } .logo { text-align: center; margin-bottom: 40px; diff --git a/angular/src/app/services/auth.service.ts b/angular/src/app/services/auth.service.ts index a89351b..21dc06b 100644 --- a/angular/src/app/services/auth.service.ts +++ b/angular/src/app/services/auth.service.ts @@ -172,33 +172,16 @@ export class AuthService { false ) .subscribe({ - next: (result) => { + next: async (result) => { if (result.code === 0) { this.cookiesService.setCookie('token', result?.data?.token); - this.jsonrpc.rpc( - { - method: 'updateAdditionalInfo', - params: [ - { - first_name: name, - birth_day: '01.01.1999' - }, - ], - }, - RpcService.authService, - true - ).subscribe({ - next: async () => { - this.router.navigate(['/']); - await this.getUserInfo(); - if(getTypeDevice() === DeviceType.ios) { - this.appleWalletService.addCardToWallet(); - } - }, - error: (err) => { - console.error(err); - }, - }) + this.router.navigate(['/']); + + await this.getUserInfo(); + + if(getTypeDevice() === DeviceType.ios) { + this.appleWalletService.addCardToWallet(); + } } else if (result.code === 230) { this.messageService.clear(); this.messageService.add({