Commit bea5ae5ad96272ef8da030d8616372719129a8bc
1 parent
82667f75fe
Exists in
master
and in
1 other branch
imágenes promociones2
Showing
4 changed files
with
7 additions
and
4 deletions
Show diff stats
src/app/components/busqueda-productos/busqueda-productos.component.ts
| ... | ... | @@ -65,11 +65,13 @@ export class BusquedaProductosComponent implements OnInit { |
| 65 | 65 | |
| 66 | 66 | if (producto.PRO) { |
| 67 | 67 | |
| 68 | + let imagenes = producto.imagenes; | |
| 68 | 69 | this.productoService.getPromocionByCodigos(producto.CodSec, producto.CodArt) |
| 69 | 70 | .subscribe(res => { |
| 70 | 71 | |
| 71 | 72 | this.productoService.productoAcargar = res[0]; |
| 72 | - this.router.navigate(['inicio']); | |
| 73 | + this.productoService.productoAcargar.imagenes = imagenes; | |
| 74 | + this.router.navigate(['inicio']); | |
| 73 | 75 | }, |
| 74 | 76 | error => { console.error(error); } |
| 75 | 77 | ); |
src/app/components/inicio/inicio.component.html
| ... | ... | @@ -129,9 +129,9 @@ |
| 129 | 129 | |
| 130 | 130 | <!-- PROMO A CARGAR --> |
| 131 | 131 | <div class="fade-in m-0" *ngIf="promoAcargar"> |
| 132 | - <!-- <img | |
| 132 | + <img | |
| 133 | 133 | class="card-img-top d-block w-100 mx-auto rounded-sm" |
| 134 | - src="{{apiUrl}}/imagenes/{{promoAcargar. imagenes[0].imagen}}"> --> | |
| 134 | + src="{{apiUrl}}/imagenes/{{promoAcargar.imagenes[0].imagen}}"> | |
| 135 | 135 | |
| 136 | 136 | <div class="row justify-content-between m-3"> |
| 137 | 137 | <div class="col-12 text-left px-1"> |
src/app/components/sidebar/sidebar.component.html
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | <div |
| 12 | 12 | class="slide-in-bl my-2 bg-white border-0 rounded-sm" |
| 13 | 13 | *ngFor="let producto of productosCarrito.slice().reverse(); let i = index"> |
| 14 | - <!-- <img class="w-100 m-auto rounded-sm shadow" src="{{apiUrl}}/imagenes/{{producto.imagenes[0].imagen}}"> --> | |
| 14 | + <img class="w-100 m-auto rounded-sm shadow" src="{{apiUrl}}/imagenes/{{producto.imagenes[0].imagen}}"> | |
| 15 | 15 | <div class="row m-0 p-0 px-1 py-1 shadow rounded-sm"> |
| 16 | 16 | <div class="col-12 p-0 pt-2 text-left my-auto"> |
| 17 | 17 | <p class="m-0 h6"><small>{{producto.DetArt}}</small></p> |