dev #14607 Море. Правки по сайту:
add agree information; remove uncessary user update;
This commit is contained in:
parent
55c98f5aa1
commit
7fe4b6de52
@ -32,6 +32,11 @@
|
||||
</div>
|
||||
<button mat-raised-button color="primary">Принять участие</button>
|
||||
</form>
|
||||
<p class="agree-info">
|
||||
Используя приложение, вы принимаете условия
|
||||
соглашения и соглашаетесь на получение рекламно-информационных
|
||||
сообщений
|
||||
</p>
|
||||
</div>
|
||||
<ng-template #smsCode>
|
||||
<div class="wrapper">
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user