dev #14305 Изменение дизайна WPA Кофе-лайка: change loading
This commit is contained in:
parent
b81ee7f713
commit
ca0fa2bfa6
@ -1,2 +1 @@
|
||||
<router-outlet></router-outlet>
|
||||
<app-footer></app-footer>
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
padding-bottom: 100px;
|
||||
padding-top: 52px;
|
||||
h3 {
|
||||
margin: 0;
|
||||
font-family: Montserrat;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<app-navbar title="Карта гостя" (backEvent)="logout()"></app-navbar>
|
||||
|
||||
<ng-container *ngIf="!this.loyaltyProgram.purchaseData.$loading">
|
||||
<ng-container *ngIf="!this.loyaltyProgram.purchaseData.$loading && customerInfo">
|
||||
<div class="guest-card">
|
||||
<div class="top-info">
|
||||
<div class="top-info__level">
|
||||
@ -93,13 +93,16 @@
|
||||
Программы лояльности</a
|
||||
>
|
||||
</div>
|
||||
<app-footer></app-footer>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="this.loyaltyProgram.purchaseData.$loading">
|
||||
<ng-container *ngIf="this.loyaltyProgram.purchaseData.$loading || !customerInfo">
|
||||
<ng-container
|
||||
*ngTemplateOutlet="spinner; context: { $implicit: 85 }"
|
||||
></ng-container>
|
||||
></ng-container>
|
||||
</ng-container>
|
||||
|
||||
<ng-template #spinner let-diameter>
|
||||
<mat-spinner [strokeWidth]="3" [diameter]="diameter"></mat-spinner>
|
||||
<ng-template #spinner let-diameter>
|
||||
<div class="center wrapper">
|
||||
<mat-spinner [strokeWidth]="3" [diameter]="diameter"></mat-spinner>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
:host {
|
||||
:host {
|
||||
.guest-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -199,9 +199,13 @@
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
text-decoration: none;
|
||||
margin: 17px 0 22px;
|
||||
margin: 17px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
padding-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
app-accordion {
|
||||
|
||||
@ -105,3 +105,4 @@
|
||||
</ng-container>
|
||||
</p>
|
||||
</ng-template>
|
||||
<app-footer></app-footer>
|
||||
|
||||
@ -97,3 +97,5 @@
|
||||
</ng-container>
|
||||
</app-accordion>
|
||||
</div>
|
||||
|
||||
<app-footer></app-footer>
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
.loyality-program {
|
||||
margin-bottom: 20px;
|
||||
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<app-navbar title="Карта гостя" (backEvent)="logout()"></app-navbar>
|
||||
|
||||
<ng-container *ngIf="!purchaseData.$loading">
|
||||
<div class="guest-card">
|
||||
<div class="guest-card__qr" (click)="qrCodeClick()">
|
||||
<ng-container *ngIf="customerInfo">
|
||||
@ -192,7 +193,16 @@
|
||||
Программы лояльности</a
|
||||
>
|
||||
</div>
|
||||
<app-footer></app-footer>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="purchaseData.$loading">
|
||||
<ng-container
|
||||
*ngTemplateOutlet="spinner; context: { $implicit: 85 }"
|
||||
></ng-container>
|
||||
</ng-container>
|
||||
|
||||
<ng-template #spinner let-diameter>
|
||||
<mat-spinner [strokeWidth]="3" [diameter]="diameter"></mat-spinner>
|
||||
<div class="center wrapper">
|
||||
<mat-spinner [strokeWidth]="3" [diameter]="diameter"></mat-spinner>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
@ -188,6 +188,10 @@
|
||||
margin: 17px 0 22px;
|
||||
}
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
padding-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
app-accordion {
|
||||
|
||||
@ -105,3 +105,4 @@
|
||||
</ng-container>
|
||||
</p>
|
||||
</ng-template>
|
||||
<app-footer></app-footer>
|
||||
|
||||
@ -17,6 +17,11 @@ table{border-collapse:collapse;border-spacing:0}
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
}
|
||||
|
||||
.center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
background-color: #231F20;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user