Commit 34e404b83f89b5a3068e63b2703791d1e250374f
1 parent
f3b1df0283
Exists in
master
src de imagenes apuntando a la api.
Showing
2 changed files
with
8 additions
and
7 deletions
Show diff stats
src/app/components/busqueda-productos/busqueda-productos.component.html
... | ... | @@ -90,14 +90,13 @@ |
90 | 90 | </button> |
91 | 91 | </div> |
92 | 92 | </div> |
93 | - | |
94 | 93 | <!-- LISTA DE PRODUCTOS --> |
95 | 94 | <div class="row align-items-start vh-70 overflow-scroll disable-user-select"> |
96 | 95 | <div |
97 | 96 | class="col-4 p-2" |
98 | 97 | *ngFor="let producto of auxProductos"> |
99 | 98 | <div class="card-effect bg-white rounded-sm shadow border-0"> |
100 | - <img src="../../../assets/img/descarga.jpg" class="w-75 m-auto"> | |
99 | + <img src="{{apiUrl}}/imagenes/accesoPLAYA.png" class="w-75 m-auto"> | |
101 | 100 | <div class="p-2"> |
102 | 101 | <p class="h6 text-left m-0">{{producto.DetArt}}</p> |
103 | 102 | <div class="row justify-content-between m-0"> |
src/app/components/busqueda-productos/busqueda-productos.component.ts
1 | 1 | import { Component, OnInit } from '@angular/core'; |
2 | 2 | import { ProductoService } from 'src/app/services/producto.service'; |
3 | 3 | import { Producto } from 'src/app/wrappers/producto'; |
4 | +import { appSettings } from 'src/etc/AppSettings'; | |
4 | 5 | |
5 | 6 | @Component({ |
6 | 7 | selector: 'app-busqueda-productos', |
... | ... | @@ -9,11 +10,12 @@ import { Producto } from 'src/app/wrappers/producto'; |
9 | 10 | }) |
10 | 11 | export class BusquedaProductosComponent implements OnInit { |
11 | 12 | |
12 | - productos: Producto[] = []; | |
13 | - auxProductos: Producto[] = []; | |
14 | - searchTerm: string = ''; | |
15 | - showSpinner: boolean = true; | |
16 | - categoria: Categorias = Categorias.todos; | |
13 | + private productos: Producto[] = []; | |
14 | + private auxProductos: Producto[] = []; | |
15 | + private searchTerm: string = ''; | |
16 | + private showSpinner: boolean = true; | |
17 | + private categoria: Categorias = Categorias.todos; | |
18 | + private apiUrl : string = appSettings.apiUrl; | |
17 | 19 | |
18 | 20 | constructor(private productoService: ProductoService) { } |
19 | 21 |