Commit 37e17fbe2d91cd25f0132861b1b641e5756776db
1 parent
66f98fbcb5
Exists in
master
Agregado flujo de pago efectivo.
Showing
2 changed files
with
13 additions
and
2 deletions
 
Show diff stats
src/app/components/pago/pago.component.html
| ... | ... | @@ -27,7 +27,9 @@ | 
| 27 | 27 | <div class="col-sm-7"> | 
| 28 | 28 | <div class="row ml-4 pr-3 vh-70 overflow-scroll text-dark"> | 
| 29 | 29 | <div class="col-4 p-2"> | 
| 30 | - <div class="bg-white rounded-sm shadow border-0"> | |
| 30 | + <div | |
| 31 | + class="bg-white rounded-sm shadow border-0" | |
| 32 | + (click)="pagoEfectivo()"> | |
| 31 | 33 | <img src="{{apiUrl}}/imagenes/efectivo.png" class="rounded-sm w-75 py-2 mx-auto d-block"> | 
| 32 | 34 | <div class="p-2 card-text text-center"> | 
| 33 | 35 | <p class="h6 text-center m-0">Efectivo</p> | 
src/app/components/pago/pago.component.ts
| ... | ... | @@ -31,6 +31,15 @@ export class PagoComponent implements OnInit { | 
| 31 | 31 | this.productos = this.productoService.productos; | 
| 32 | 32 | } | 
| 33 | 33 | |
| 34 | + pagoEfectivo() { | |
| 35 | + | |
| 36 | + this.compraConEfectivofinalizada = true; | |
| 37 | + setTimeout(() => { | |
| 38 | + | |
| 39 | + this.router.navigate(['mensaje-final']); | |
| 40 | + }, 3000); | |
| 41 | + } | |
| 42 | + | |
| 34 | 43 | pagar() { | 
| 35 | 44 | |
| 36 | 45 | this.verQR = true; | 
| ... | ... | @@ -38,7 +47,7 @@ export class PagoComponent implements OnInit { | 
| 38 | 47 | |
| 39 | 48 | this.productoService.pagar() | 
| 40 | 49 | .subscribe(() => { | 
| 41 | - | |
| 50 | + | |
| 42 | 51 | // alert('Compra finalizada'); | 
| 43 | 52 | this.compraConQRfinalizada = true; | 
| 44 | 53 | setTimeout(() => { |