
+
+
+
+
diff --git a/angular/src/app/pages/account/account.component.ts b/angular/src/app/pages/account/account.component.ts
index 2eb6c02..422c07a 100644
--- a/angular/src/app/pages/account/account.component.ts
+++ b/angular/src/app/pages/account/account.component.ts
@@ -83,7 +83,8 @@ export class AccountComponent implements OnInit {
phoneConfirmed(): void {
this.refSystem();
- this.checkAuthorization(false, true)
+ this.showAuthoriztion = false
+ this.checkAuthorization(true)
}
async refSystem() {
@@ -212,9 +213,13 @@ export class AccountComponent implements OnInit {
onConfirm() {
this.deleteToken();
this.showAuthoriztion = true;
+ this.messageService.clear('c')
}
- logout() {
+ logout(event?: MouseEvent) {
+ if (event) {
+ event.preventDefault()
+ }
this.messageService.add({ key: 'c', sticky: true, severity: 'warn', summary: 'Вы уверены, что хотите выйти?' });
}
}
diff --git a/angular/src/app/pages/account/bonus-program/bonus-program.component.ts b/angular/src/app/pages/account/bonus-program/bonus-program.component.ts
index 9a8c701..822fa87 100644
--- a/angular/src/app/pages/account/bonus-program/bonus-program.component.ts
+++ b/angular/src/app/pages/account/bonus-program/bonus-program.component.ts
@@ -1,4 +1,4 @@
-import { Component, EventEmitter, Inject, OnInit, Output } from '@angular/core';
+import { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';
import { lastValueFrom } from 'rxjs';
import { orderStatuses, PageList, PageListWithBonus } from 'src/app/app.constants';
import { BonusProgramAccount, Page, Purchase, Transaction } from 'src/app/interface/data';
@@ -18,6 +18,7 @@ import { WpJsonService } from 'src/app/services/wp-json.service';
styleUrls: ['./bonus-program.component.scss']
})
export class BonusProgramComponent implements OnInit {
+ @Input() currentPage!: Page;
@Output() deauthorization = new EventEmitter
(false)
public accountData!: BonusProgramAccount;
public purchases: Purchase[] = [];
@@ -25,7 +26,6 @@ export class BonusProgramComponent implements OnInit {
readonly orderStatuses = orderStatuses;
readonly moment = moment;
readonly pageList = environment.hasBonusProgram ? PageListWithBonus : PageList;
- public currentPage: Page = this.pageList[1];
public userName: string = '';
public deviceType: 'ios' | 'android' | null = null;
diff --git a/angular/src/app/pages/account/orders/orders.component.html b/angular/src/app/pages/account/orders/orders.component.html
index 19ce809..5edb57d 100644
--- a/angular/src/app/pages/account/orders/orders.component.html
+++ b/angular/src/app/pages/account/orders/orders.component.html
@@ -1,4 +1,5 @@
+
{{ currentPage.name }}
diff --git a/angular/src/app/pages/account/orders/orders.component.scss b/angular/src/app/pages/account/orders/orders.component.scss
index a2b302f..68d3bb8 100644
--- a/angular/src/app/pages/account/orders/orders.component.scss
+++ b/angular/src/app/pages/account/orders/orders.component.scss
@@ -1,70 +1,84 @@
.show-more-orders {
- text-align: center;
- cursor: pointer;
- color: #09467f;
- margin-top: 16px;
+ text-align: center;
+ cursor: pointer;
+ color: #09467f;
+ margin-top: 16px;
}
.woocommerce-MyAccount-content {
- max-width: 400px;
- margin-left: calc(50vw - 200px);
+ max-width: 400px;
+ margin-left: calc(50vw - 200px);
}
.woocommerce-orders-table {
- border: 2px solid #dee2e6;
- border-bottom: 0;
- border-radius: 0.25rem;
- border-collapse: separate;
- text-align: left;
- margin-top: 8px;
+ border: 2px solid #dee2e6;
+ border-bottom: 0;
+ border-radius: 0.25rem;
+ border-collapse: separate;
+ text-align: left;
+ margin-top: 8px;
+ width: 100%;
+ max-width: 400px;
+ margin-left: auto;
+ margin-right: auto;
+ thead {
+ display: none;
+ }
+ .woocommerce-orders-table {
+ &__cell {
+ padding: 0.7rem 1.5rem;
+ border-bottom: 2px solid #dee2e6;
+ text-align: right !important;
+ display: block;
+ &::before {
+ content: attr(data-title) ": ";
+ font-weight: 700;
+ float: left;
+ }
+ }
+ &__row {
+ display: block;
+ &:nth-child(even) {
+ background: #ebebeb;
+ }
+ }
+ // &__cell-order-actions::before {
+ // display: none;
+ // }
+ &__cell-order-actions {
+ &.red-color {
+ color: #ed0000;
+ }
+ &.green-color {
+ color: #00a700;
+ }
+ }
+ &__cell-order-number a {
+ text-decoration: none;
+ color: #009688;
+ }
+ }
+
+ .woocommerce-button {
+ display: inline-block;
+ color: #ffffff;
+ background-color: #009688;
+ padding: 13px;
+ border-radius: 4px;
+ text-decoration: none;
width: 100%;
- max-width: 400px;
- margin-left: auto;
- margin-right: auto;
- thead {
- display: none;
+ text-align: center;
+ }
+}
+
+:host {
+ .orders {
+ h2 {
+ font-style: normal;
+ font-weight: 700;
+ font-size: 20px;
+ line-height: 24px;
+ max-width: 400px;
+ margin: 0 auto;
+ width: 100%;
}
- .woocommerce-orders-table {
- &__cell {
- padding: 0.7rem 1.5rem;
- border-bottom: 2px solid #dee2e6;
- text-align: right!important;
- display: block;
- &::before {
- content: attr(data-title) ": ";
- font-weight: 700;
- float: left;
- }
- }
- &__row {
- display: block;
- &:nth-child(even) {
- background: #ebebeb;
- }
- }
- // &__cell-order-actions::before {
- // display: none;
- // }
- &__cell-order-actions {
- &.red-color {
- color: #ed0000;
- }
- &.green-color {
- color: #00a700
- }
- }
- &__cell-order-number a {
- text-decoration: none;
- color: #009688;
- }
- }
-
- .woocommerce-button {
- display: inline-block;
- color: #ffffff;
- background-color: #009688;
- padding: 13px;
- border-radius: 4px;
- text-decoration: none;
- width: 100%;
- text-align: center;
- }
-}
\ No newline at end of file
+ }
+}
diff --git a/angular/src/app/pages/account/orders/orders.component.ts b/angular/src/app/pages/account/orders/orders.component.ts
index d0a8476..5f36463 100644
--- a/angular/src/app/pages/account/orders/orders.component.ts
+++ b/angular/src/app/pages/account/orders/orders.component.ts
@@ -1,7 +1,7 @@
import { HttpErrorResponse } from '@angular/common/http';
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
-import { Purchase } from 'src/app/interface/data';
+import { Page, Purchase } from 'src/app/interface/data';
import * as moment from 'moment-timezone';
import { lastValueFrom } from 'rxjs';
import { JsonrpcService, RpcService } from 'src/app/services/jsonrpc.service';
@@ -15,6 +15,7 @@ import { CookiesService } from 'src/app/services/cookies.service';
styleUrls: ['./orders.component.scss']
})
export class OrdersComponent implements OnInit {
+ @Input() currentPage!: Page;
@Input() handleHttpError!: (error: HttpErrorResponse) => void;
@Output() deauthorization = new EventEmitter(false)
public lastViewOrder: number = 3;
diff --git a/angular/src/app/pages/cart/cart.component.ts b/angular/src/app/pages/cart/cart.component.ts
index 17c658a..d909528 100644
--- a/angular/src/app/pages/cart/cart.component.ts
+++ b/angular/src/app/pages/cart/cart.component.ts
@@ -41,6 +41,7 @@ export class CartComponent implements OnInit {
toggleSideBar(): void{
this.visibleSidebar = !this.visibleSidebar;
+ this.orderConfirmed = false;
this.loadCart()
}
@@ -98,6 +99,7 @@ export class CartComponent implements OnInit {
onConfirm() {
this.cartService.clearCart()
this.loadCart()
+ this.visibleSidebar = false
this.messageService.clear('c');
}
diff --git a/angular/src/app/pages/products/products.component.scss b/angular/src/app/pages/products/products.component.scss
index c1ce23f..3feb093 100644
--- a/angular/src/app/pages/products/products.component.scss
+++ b/angular/src/app/pages/products/products.component.scss
@@ -52,10 +52,10 @@
justify-content: space-between;
font-size: 14px;
align-items: center;
- // margin-left: -24px;
overflow-x: auto;
width: 100%;
margin-right: 16px;
+ gap: 8px;
&::-webkit-scrollbar {
width: 0;
@@ -63,9 +63,12 @@
.group-container {
font-weight: 600;
- padding: 6px 24px;
- transition: all .5s;
+ padding: 8px 24px;
+ transition: all 0.5s;
border-radius: 1.125rem;
+ text-align: center;
+ background: #ededed;
+ border: none;
cursor: pointer;
&.non-visible {