Commit 56365fb1f252fd2923a57d5d12caed14841e14a7

Authored by Luis Suarez
1 parent fb03f5d830
Exists in develop

correciones ng lint

src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.component.ts
1 import { Component, OnInit, OnChanges } from '@angular/core'; 1 import { Component, OnInit, OnChanges } from '@angular/core';
2 2
3 @Component({ 3 @Component({
4 selector: 'app-indicaciones-pago-tarjeta', 4 selector: 'app-indicaciones-pago-tarjeta',
5 templateUrl: './indicaciones-pago-tarjeta.component.html', 5 templateUrl: './indicaciones-pago-tarjeta.component.html',
6 styleUrls: ['./indicaciones-pago-tarjeta.component.scss'] 6 styleUrls: ['./indicaciones-pago-tarjeta.component.scss']
7 }) 7 })
8 export class IndicacionesPagoTarjetaComponent implements OnInit { 8 export class IndicacionesPagoTarjetaComponent implements OnInit {
9 constructor() { } 9 constructor() { }
10 10
11 ngOnInit() { 11 ngOnInit() {
12 this.mediaPantalla(); 12 this.mediaPantalla();
13 } 13 }
14 14
15 mediaPantalla() { 15 mediaPantalla() {
16 if ($('body').hasClass('media-pantalla')) { 16 if ($('body').hasClass('media-pantalla')) {
17 $('.reduce-card').addClass('media-pantalla') 17 $('.reduce-card').addClass('media-pantalla');
18 } 18 }
19 } 19 }
20 } 20 }
21 21
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 h-50" 30 d-sm-block rounded-circle h-50"
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 *ngFor="let categoria of categorias; let i = index;"> 34 <div *ngFor="let categoria of categorias; let i = index;">
35 <div 35 <div
36 class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" 36 class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content"
37 [ngClass]="{ 'active rounded shadow px-2': categoria.selected, 37 [ngClass]="{ 'active rounded shadow px-2': categoria.selected,
38 'border-bottom-effect': !categoria.selected, 38 'border-bottom-effect': !categoria.selected,
39 'media-pantalla': templateCategorias.classList.contains('media-pantalla')}" 39 'media-pantalla': templateCategorias.classList.contains('media-pantalla')}"
40 (click)="selectCategoria(i, categoria.id)" 40 (click)="selectCategoria(i, categoria.id)"
41 id="cat-content" 41 id="cat-content"
42 *ngIf="categoria.articulos > 0"> 42 *ngIf="categoria.articulos > 0">
43 <img 43 <img
44 draggable="false" 44 draggable="false"
45 ondragstart="return false;" 45 ondragstart="return false;"
46 (contextmenu)="false" 46 (contextmenu)="false"
47 class="d-none d-sm-block rounded-circle w-auto h-auto col-12" 47 class="d-none d-sm-block rounded-circle w-auto h-auto col-12"
48 src="{{urlImagenes}}{{categoria.path_imagen}}" 48 src="{{urlImagenes}}{{categoria.path_imagen}}"
49 onerror="this.src='assets/img/imagen-no-encontrada.jpg'"> 49 onerror="this.src='assets/img/imagen-no-encontrada.jpg'">
50 <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>
51 </div> 51 </div>
52 </div> 52 </div>
53 </div> 53 </div>
54 <div class="col-auto btn-effect h-5 cat-btn"> 54 <div class="col-auto btn-effect h-5 cat-btn">
55 <img 55 <img
56 draggable="false" 56 draggable="false"
57 ondragstart="return false;" 57 ondragstart="return false;"
58 (contextmenu)="false" 58 (contextmenu)="false"
59 class="h-100 d-block mx-auto rotate-90" 59 class="h-100 d-block mx-auto rotate-90"
60 src="assets/img/ir-color.svg" 60 src="assets/img/ir-color.svg"
61 (mousedown)="scrollY(templateCategorias, 100)" 61 (mousedown)="scrollY(templateCategorias, 100)"
62 (mouseup)="mouseup()" 62 (mouseup)="mouseup()"
63 (mouseleave)="mouseup()"> 63 (mouseleave)="mouseup()">
64 </div> 64 </div>
65 </div> 65 </div>
66 66