Commit 7997e6b456d794b2ae5a5301747cc9bd7eb8940f
1 parent
54e55eee47
Exists in
develop
Imagen por defecto cuando no exista la imagen de categorias
Showing
1 changed file
with
9 additions
and
7 deletions
Show diff stats
src/app/modules/seleccion-articulos/seleccion-articulos.component.html
| ... | ... | @@ -56,7 +56,8 @@ |
| 56 | 56 | ondragstart="return false;" |
| 57 | 57 | (contextmenu)="false" |
| 58 | 58 | class="col-12 h-50 align-self-end d-none d-sm-block rounded-circle" |
| 59 | - src="{{urlImagenes}}{{categoria.path_imagen}}"> | |
| 59 | + src="{{urlImagenes}}{{categoria.path_imagen}}" | |
| 60 | + onerror="this.src='assets/img/image-not-found.jpg'"> | |
| 60 | 61 | <small class="col-12 px-0 my-1 h-25 align-self-end text-center text-truncate">{{categoria.detalle}}</small> |
| 61 | 62 | </div> |
| 62 | 63 | </div> |
| ... | ... | @@ -81,9 +82,6 @@ |
| 81 | 82 | class="col px-2 my-1 my-md-3 h-auto" |
| 82 | 83 | *ngFor="let articulo of auxArticulos | slice:0:showQuantity;"> |
| 83 | 84 | <div class="swing-in-top-fwd card h-auto"> |
| 84 | - <div *ngIf="articulo.PRO"> | |
| 85 | - <i class="fas fa-piggy-bank"></i> | |
| 86 | - </div> | |
| 87 | 85 | <img |
| 88 | 86 | draggable="false" |
| 89 | 87 | ondragstart="return false;" |
| ... | ... | @@ -92,14 +90,18 @@ |
| 92 | 90 | onerror="this.src='assets/img/image-not-found.jpg'" |
| 93 | 91 | class="card-img-top h-55 rounded-sm"> |
| 94 | 92 | <div class="row mx-0 py-1 h-auto justify-content-center"> |
| 95 | - <p class="col-12 px-1 h6 h-auto text-primary text-center min-h-60">{{articulo.DetArt}}</p> | |
| 93 | + <p | |
| 94 | + [ngClass]="{'text-primary': articulo.PRO, 'text-secondary': !articulo.PRO}" | |
| 95 | + class="col-12 px-1 h6 h-auto text-center min-h-60"> | |
| 96 | + {{articulo.DetArt}} | |
| 97 | + </p> | |
| 96 | 98 | <p class="col-12 px-1 h-auto text-center line-height-sm min-h-50"> |
| 97 | 99 | <small>{{articulo.DET_LAR}}</small> |
| 98 | 100 | </p> |
| 99 | 101 | <div class="col-12 px-1 align-self-end btn-effect h-auto"> |
| 100 | 102 | <div |
| 101 | - [ngClass]="{'bg-secondary': articulo.PRO}" | |
| 102 | - class="row mx-0 justify-content-between bg-primary badge-pill" | |
| 103 | + [ngClass]="{'bg-primary': articulo.PRO, 'bg-secondary': !articulo.PRO}" | |
| 104 | + class="row mx-0 justify-content-between badge-pill" | |
| 103 | 105 | (click)="elegirArticulo(articulo)"> |
| 104 | 106 | <div class="col px-0 align-self-center text-white text-right"> |
| 105 | 107 | {{articulo.PreVen | currency}} |