dev #14384 Правка ошибок отображения WPA КофеЛайк:
fix header; add link to banner; fix last purchase loading;
This commit is contained in:
parent
e5ae004a29
commit
b7cc0ed72d
@ -17,7 +17,9 @@
|
||||
</ng-container>
|
||||
</p>
|
||||
</div>
|
||||
<img src="./assets/970х250_3.png" alt="" width="100%" />
|
||||
<a href="https://promo.coffee-like.com/?utm_medium=prilozhenie">
|
||||
<img src="./assets/970х250_3.png" alt="" width="100%" />
|
||||
</a>
|
||||
<a href="https://yandex.ru/profile/151770398186" target="_blank">
|
||||
<button class="evaluate-order">Оценить заказ</button>
|
||||
</a>
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
<div class="container">
|
||||
<div class="back">
|
||||
<mat-icon *ngIf="backEvent" style="cursor: pointer;" aria-hidden="false" aria-label="Назад" fontIcon="arrow_back_ios" class="back-arrow" (click)="back()"></mat-icon>
|
||||
</div>
|
||||
<div class="block">
|
||||
<h1 class="title">{{title}}</h1>
|
||||
</div>
|
||||
<div class="block">
|
||||
<div class="back">
|
||||
<mat-icon *ngIf="backEvent" style="cursor: pointer;" aria-hidden="false" aria-label="Назад" fontIcon="arrow_back_ios" class="back-arrow" (click)="back()"></mat-icon>
|
||||
</div>
|
||||
<!-- <div class="plug"></div> -->
|
||||
<div *ngIf="showDropdown" class="backdrop" (click)="closeMenu()"></div>
|
||||
<div *ngIf="showMenu" class="menu">
|
||||
@ -44,4 +47,5 @@
|
||||
</button>
|
||||
<button mat-stroked-button appDownloadApp>Установить</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -9,69 +9,75 @@
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
box-sizing: border-box;
|
||||
padding: 12px 16px;
|
||||
width: 100%;
|
||||
background: var(--button-color);
|
||||
color: var(--button-text-color);
|
||||
display: grid;
|
||||
justify-content: space-between;
|
||||
grid-template-columns: auto auto auto;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
.back {
|
||||
width: 40px;
|
||||
}
|
||||
.back-arrow {
|
||||
font-size: 16px;
|
||||
.container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
padding: 12px 16px;
|
||||
width: 100%;
|
||||
background: var(--button-color);
|
||||
color: var(--button-text-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.plug {
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
visibility: hidden;
|
||||
}
|
||||
.title {
|
||||
font-weight: 700;
|
||||
font-size: 17px;
|
||||
line-height: 22px;
|
||||
margin: 0;
|
||||
}
|
||||
.wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 40px;
|
||||
}
|
||||
.menu {
|
||||
position: relative;
|
||||
|
||||
.menu__dropdown {
|
||||
z-index: 110;
|
||||
position: fixed;
|
||||
background-color: white;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
right: 20px;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0px 2px 5px -3px black;
|
||||
|
||||
.item_title {
|
||||
color: var(--text-color);
|
||||
font-size: 14px;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
.backdrop {
|
||||
z-index: 100;
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
}
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
.block {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.back {
|
||||
width: 40px;
|
||||
}
|
||||
.back-arrow {
|
||||
font-size: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.plug {
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
visibility: hidden;
|
||||
}
|
||||
.title {
|
||||
font-weight: 700;
|
||||
font-size: 17px;
|
||||
line-height: 22px;
|
||||
margin: 0 auto;
|
||||
|
||||
}
|
||||
.wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 40px;
|
||||
}
|
||||
.menu {
|
||||
position: relative;
|
||||
|
||||
.menu__dropdown {
|
||||
z-index: 110;
|
||||
position: fixed;
|
||||
background-color: white;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
right: 20px;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0px 2px 5px -3px black;
|
||||
|
||||
.item_title {
|
||||
color: var(--text-color);
|
||||
font-size: 14px;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
.backdrop {
|
||||
z-index: 100;
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
}
|
||||
}
|
||||
|
||||
@ -97,9 +97,6 @@ export class AuthService {
|
||||
error: (e) => {
|
||||
this.error = e;
|
||||
},
|
||||
complete: () => {
|
||||
this.loading = false;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@ -251,11 +248,15 @@ export class AuthService {
|
||||
}
|
||||
|
||||
getLastPurchase() {
|
||||
this.loading = true;
|
||||
if (this.userInfo) {
|
||||
this.wpJsonService.getLastPurchase(environment.systemId, this.token!).subscribe({
|
||||
next: (res) => {
|
||||
this.purchaseData.lastPurchase = res[this.userInfo!.id][0];
|
||||
},
|
||||
complete: () => {
|
||||
this.loading = false;
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user