diff --git a/src/app/modules/cancelar-compra/cancelar-compra.component.ts b/src/app/modules/cancelar-compra/cancelar-compra.component.ts index ba00fd8..5bfabea 100644 --- a/src/app/modules/cancelar-compra/cancelar-compra.component.ts +++ b/src/app/modules/cancelar-compra/cancelar-compra.component.ts @@ -20,9 +20,8 @@ export class CancelarCompraComponent implements OnInit { setTimeout(() => { this.limpiarCarritoYvolver(); }, 90000); - if ($("body").hasClass("lash")) { - $("#cancelImg,#cancelCard").addClass("lash"); - } + this.mediaPantalla(); + } volverPreviousPage() { @@ -33,4 +32,10 @@ export class CancelarCompraComponent implements OnInit { this.articuloService.carrito = undefined; this.router.navigate(['/']); } + + mediaPantalla(){ + if ($("body").hasClass("lash")) { + $("#cancelImg,#cancelCard").addClass("lash"); + } + } } diff --git a/src/app/modules/carrito/carrito.component.html b/src/app/modules/carrito/carrito.component.html index f501c81..43e2fd7 100644 --- a/src/app/modules/carrito/carrito.component.html +++ b/src/app/modules/carrito/carrito.component.html @@ -13,14 +13,14 @@ -
+

No hay artículos en el carrito

diff --git a/src/app/modules/carrito/carrito.component.scss b/src/app/modules/carrito/carrito.component.scss index 136aa08..0de3bcf 100644 --- a/src/app/modules/carrito/carrito.component.scss +++ b/src/app/modules/carrito/carrito.component.scss @@ -2,3 +2,11 @@ width: 75px; border-radius: 1.5rem; } + + #art-carrito.lash{ + min-height: 130px !important; +} + +#carrito.lash{ + max-height: 60% !important; +} \ No newline at end of file diff --git a/src/app/modules/carrito/carrito.component.ts b/src/app/modules/carrito/carrito.component.ts index 5a766cb..6cde46e 100644 --- a/src/app/modules/carrito/carrito.component.ts +++ b/src/app/modules/carrito/carrito.component.ts @@ -26,7 +26,7 @@ import { Router } from '@angular/router'; export class CarritoComponent implements OnInit { urlImagenes = `${APP_SETTINGS.apiDeboSuite}/imagenes/`; maxCantidad = 50; - + flagPantalla:boolean = false; constructor( public articuloService: ArticuloService, private location: Location, @@ -38,6 +38,7 @@ export class CarritoComponent implements OnInit { this.router.navigate(['']); return; } + this.mediaPantalla() } deleteArticulo(index: number) { @@ -60,5 +61,10 @@ export class CarritoComponent implements OnInit { goBack() { this.location.back(); } - + mediaPantalla(){ + if ($("body").hasClass("lash")) { + $("#carrito").addClass("lash"); + this.flagPantalla = true; + } + } } diff --git a/src/app/modules/forma-pago/forma-pago.component.html b/src/app/modules/forma-pago/forma-pago.component.html index afc9869..9545bcd 100644 --- a/src/app/modules/forma-pago/forma-pago.component.html +++ b/src/app/modules/forma-pago/forma-pago.component.html @@ -18,7 +18,7 @@
-
+
-
+
-
Pago con tarjeta
+
Pago con tarjeta
-
+
+ (click)="selectCategoria(-1, 0)" id=""> Todos
+ *ngFor="let categoria of categorias; let i = index;" id="">
-
+

ARTÍCULOS EN TÚ CARRITO DE COMPRAS

@@ -194,8 +194,10 @@
+ class=" p-0 mt-2 ml-auto h-20" + *ngIf="articuloService.carrito.length" + [ngClass]="boxCarrito.classList.contains('col-8') ? 'col-4' : 'col-auto'" + id="bagsCarrito">
@@ -204,8 +206,10 @@

{{articuloService.subTotal | currency}}

-
VER CARRITO
-
+
VER CARRITO
+