Commit 8f3a6641b03c1a22fcc9b0c06b0856f74430c85d
1 parent
a7e65d1198
Exists in
develop
eliminar imagen de prueba
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.html
1 | <!-- FILTRO CATEGORIAS --> | 1 | <!-- FILTRO CATEGORIAS --> |
2 | <p class="h6 h-6 m-0 text-center"><small>CATEGORÍAS</small></p> | 2 | <p class="h6 h-6 m-0 text-center"><small>CATEGORÍAS</small></p> |
3 | <div class="row mx-0 h-94 justify-content-center align-items-center"> | 3 | <div class="row mx-0 h-94 justify-content-center align-items-center"> |
4 | <div class="col-auto btn-effect h-5 cat-btn"> | 4 | <div class="col-auto btn-effect h-5 cat-btn"> |
5 | <img | 5 | <img |
6 | draggable="false" | 6 | draggable="false" |
7 | ondragstart="return false;" | 7 | ondragstart="return false;" |
8 | (contextmenu)="false" | 8 | (contextmenu)="false" |
9 | class="h-100 d-block mx-auto rotate-90-neg" | 9 | class="h-100 d-block mx-auto rotate-90-neg" |
10 | src="assets/img/ir-color.svg" | 10 | src="assets/img/ir-color.svg" |
11 | (mousedown)="scrollY(templateCategorias, -100)" | 11 | (mousedown)="scrollY(templateCategorias, -100)" |
12 | (mouseup)="mouseup()" | 12 | (mouseup)="mouseup()" |
13 | (mouseleave)="mouseup()"> | 13 | (mouseleave)="mouseup()"> |
14 | </div> | 14 | </div> |
15 | <!-- CATEGORIAS --> | 15 | <!-- CATEGORIAS --> |
16 | <div | 16 | <div |
17 | #templateCategorias | 17 | #templateCategorias |
18 | class="col-12 px-0 mx-0 box-categorias border border-primary py-1 | 18 | class="col-12 px-0 mx-0 box-categorias border border-primary py-1 |
19 | border-left-0 rounded-right scroll-y cat-box" | 19 | border-left-0 rounded-right scroll-y cat-box" |
20 | (scroll)="scrollEvent($event)"> | 20 | (scroll)="scrollEvent($event)"> |
21 | <div | 21 | <div |
22 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" | 22 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" |
23 | [ngClass]="{ 'active rounded shadow px-2': allActive, 'border-bottom-effect': !allActive }" | 23 | [ngClass]="{ 'active rounded shadow px-2': allActive, 'border-bottom-effect': !allActive }" |
24 | (click)="selectCategoria(-1, 0)"> | 24 | (click)="selectCategoria(-1, 0)"> |
25 | <img | 25 | <img |
26 | draggable="false" | 26 | draggable="false" |
27 | ondragstart="return false;" | 27 | ondragstart="return false;" |
28 | (contextmenu)="false" | 28 | (contextmenu)="false" |
29 | class="col-12 img-fluid align-self-end d-none | 29 | class="col-12 img-fluid align-self-end d-none |
30 | d-sm-block rounded-circle w-100 h-auto" | 30 | d-sm-block rounded-circle w-100 h-auto" |
31 | src="assets/img/logo-spot.svg"> | 31 | src="assets/img/logo-spot.svg"> |
32 | <small class="col-12 px-0 my-1 h-100 h-md-25 align-self-end text-center text-truncate">Todos</small> | 32 | <small class="col-12 px-0 my-1 h-100 h-md-25 align-self-end text-center text-truncate">Todos</small> |
33 | </div> | 33 | </div> |
34 | <div | 34 | <div |
35 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" | 35 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" |
36 | [ngClass]="{ 'active rounded shadow px-2': categoria.selected, | 36 | [ngClass]="{ 'active rounded shadow px-2': categoria.selected, |
37 | 'border-bottom-effect': !categoria.selected, | 37 | 'border-bottom-effect': !categoria.selected, |
38 | 'media-pantalla': templateCategorias.classList.contains('media-pantalla')}" | 38 | 'media-pantalla': templateCategorias.classList.contains('media-pantalla')}" |
39 | (click)="selectCategoria(i, categoria.id)" | 39 | (click)="selectCategoria(i, categoria.id)" |
40 | id="cat-content" | 40 | id="cat-content" |
41 | *ngFor="let categoria of categorias; let i = index;"> | 41 | *ngFor="let categoria of categorias; let i = index;"> |
42 | <img | 42 | <img |
43 | draggable="false" | 43 | draggable="false" |
44 | ondragstart="return false;" | 44 | ondragstart="return false;" |
45 | (contextmenu)="false" | 45 | (contextmenu)="false" |
46 | class="col-12 img-fluid align-self-end d-none | 46 | class="col-12 img-fluid align-self-end d-none |
47 | d-sm-block rounded-circle w-100 h-auto" | 47 | d-sm-block rounded-circle w-100 h-auto" |
48 | src="assets/img/hamb.png" | 48 | src="{{urlImagenes}}{{categoria.path_imagen}}" |
49 | onerror="this.src='assets/img/image-not-found.jpg'"> | 49 | onerror="this.src='assets/img/image-not-found.jpg'"> |
50 | <!-- {{urlImagenes}}{{categoria.path_imagen}} --> | ||
51 | <small class="col-12 px-1 my-1 h-100 h-md-25 align-self-end text-center text-truncate">{{categoria.detalle}}</small> | 50 | <small class="col-12 px-1 my-1 h-100 h-md-25 align-self-end text-center text-truncate">{{categoria.detalle}}</small> |
52 | </div> | 51 | </div> |
53 | </div> | 52 | </div> |
54 | <div class="col-auto btn-effect h-5 cat-btn"> | 53 | <div class="col-auto btn-effect h-5 cat-btn"> |
55 | <img | 54 | <img |
56 | draggable="false" | 55 | draggable="false" |
57 | ondragstart="return false;" | 56 | ondragstart="return false;" |
58 | (contextmenu)="false" | 57 | (contextmenu)="false" |
59 | class="h-100 d-block mx-auto rotate-90" | 58 | class="h-100 d-block mx-auto rotate-90" |
60 | src="assets/img/ir-color.svg" | 59 | src="assets/img/ir-color.svg" |
61 | (mousedown)="scrollY(templateCategorias, 100)" | 60 | (mousedown)="scrollY(templateCategorias, 100)" |
62 | (mouseup)="mouseup()" | 61 | (mouseup)="mouseup()" |
63 | (mouseleave)="mouseup()"> | 62 | (mouseleave)="mouseup()"> |
64 | </div> | 63 | </div> |
65 | </div> | 64 | </div> |
66 | 65 |