From 37e17fbe2d91cd25f0132861b1b641e5756776db Mon Sep 17 00:00:00 2001 From: mpuebla Date: Thu, 22 Aug 2019 12:54:35 -0300 Subject: [PATCH] Agregado flujo de pago efectivo. --- src/app/components/pago/pago.component.html | 4 +++- src/app/components/pago/pago.component.ts | 11 ++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/app/components/pago/pago.component.html b/src/app/components/pago/pago.component.html index c4f11c4..fd25909 100644 --- a/src/app/components/pago/pago.component.html +++ b/src/app/components/pago/pago.component.html @@ -27,7 +27,9 @@
-
+

Efectivo

diff --git a/src/app/components/pago/pago.component.ts b/src/app/components/pago/pago.component.ts index 32afe33..7bf41f0 100644 --- a/src/app/components/pago/pago.component.ts +++ b/src/app/components/pago/pago.component.ts @@ -31,6 +31,15 @@ export class PagoComponent implements OnInit { this.productos = this.productoService.productos; } + pagoEfectivo() { + + this.compraConEfectivofinalizada = true; + setTimeout(() => { + + this.router.navigate(['mensaje-final']); + }, 3000); + } + pagar() { this.verQR = true; @@ -38,7 +47,7 @@ export class PagoComponent implements OnInit { this.productoService.pagar() .subscribe(() => { - + // alert('Compra finalizada'); this.compraConQRfinalizada = true; setTimeout(() => { -- 1.9.1