dev #14607 Море. Правки по сайту:
add agree information; remove uncessary user update;
This commit is contained in:
parent
55c98f5aa1
commit
7fe4b6de52
@ -32,6 +32,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<button mat-raised-button color="primary">Принять участие</button>
|
<button mat-raised-button color="primary">Принять участие</button>
|
||||||
</form>
|
</form>
|
||||||
|
<p class="agree-info">
|
||||||
|
Используя приложение, вы принимаете условия
|
||||||
|
соглашения и соглашаетесь на получение рекламно-информационных
|
||||||
|
сообщений
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<ng-template #smsCode>
|
<ng-template #smsCode>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|||||||
@ -14,6 +14,12 @@
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
|
.agree-info {
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 40px;
|
||||||
|
max-width: 80%;
|
||||||
|
}
|
||||||
.logo {
|
.logo {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
|
|||||||
@ -172,33 +172,16 @@ export class AuthService {
|
|||||||
false
|
false
|
||||||
)
|
)
|
||||||
.subscribe({
|
.subscribe({
|
||||||
next: (result) => {
|
next: async (result) => {
|
||||||
if (result.code === 0) {
|
if (result.code === 0) {
|
||||||
this.cookiesService.setCookie('token', result?.data?.token);
|
this.cookiesService.setCookie('token', result?.data?.token);
|
||||||
this.jsonrpc.rpc(
|
this.router.navigate(['/']);
|
||||||
{
|
|
||||||
method: 'updateAdditionalInfo',
|
await this.getUserInfo();
|
||||||
params: [
|
|
||||||
{
|
if(getTypeDevice() === DeviceType.ios) {
|
||||||
first_name: name,
|
this.appleWalletService.addCardToWallet();
|
||||||
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);
|
|
||||||
},
|
|
||||||
})
|
|
||||||
} else if (result.code === 230) {
|
} else if (result.code === 230) {
|
||||||
this.messageService.clear();
|
this.messageService.clear();
|
||||||
this.messageService.add({
|
this.messageService.add({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user