Commit 841076904d9dc99aafe24a1d5ed6e07dd8f10831
1 parent
da1fa303aa
Exists in
develop
indicaciones pago tarjeta
Showing
4 changed files
with
32 additions
and
19 deletions
Show diff stats
src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.component.html
1 | <div class="h-92 bg-white fade-in-left"> | 1 | <div class="h-92 bg-white fade-in-left"> |
2 | <div class="row mx-0 h-15"> | 2 | <div class="row mx-0 h-15"> |
3 | <div class="col-12 px-0 h-80 my-auto"> | 3 | <div class="col-12 px-0 h-80 my-auto"> |
4 | <img | 4 | <img |
5 | draggable="false" | 5 | draggable="false" |
6 | ondragstart="return false;" | 6 | ondragstart="return false;" |
7 | (contextmenu)="(false)" | 7 | (contextmenu)="(false)" |
8 | class="d-block mx-auto h-100" | 8 | class="d-block mx-auto h-100" |
9 | src="assets/img/logo-spot.svg"/> | 9 | src="assets/img/logo-spot.svg"/> |
10 | </div> | 10 | </div> |
11 | </div> | 11 | </div> |
12 | <div class="h-85"> | 12 | <div class="h-85"> |
13 | <div class="row h-auto mt-6 mx-0 justify-content-center text-center"> | 13 | <div class="row h-auto mt-6 mx-0 justify-content-center text-center"> |
14 | <div | 14 | <div |
15 | class="col-12 col-sm-10 col-md-7 p-5 m-5 h-auto align-self-center | 15 | class="col-12 col-sm-10 col-md-4 p-5 ml-auto h-auto align-self-center |
16 | btn-effect border border-primary rounded reduce-card-2"> | 16 | btn-effect border border-primary rounded reduce-card-1"> |
17 | <div class="row h-auto"> | 17 | <div class="row h-auto"> |
18 | <div class="col-12 col-md-4"> | 18 | <div class="col-12 col-md-12"> |
19 | <img | 19 | <img |
20 | draggable="false" | 20 | draggable="false" |
21 | ondragstart="return false;" | 21 | ondragstart="return false;" |
22 | (contextmenu)="(false)" | 22 | (contextmenu)="(false)" |
23 | class="w-100 h-auto bg-white" | 23 | class="w-100 h-auto bg-white" |
24 | src="assets/img/tarjeta-banda.jpg"/> | 24 | src="assets/img/tarjeta-banda.jpg"/> |
25 | </div> | 25 | </div> |
26 | <div class="col-12 col-md-8 h-auto"> | 26 | <div class="col-12 col-md-12 h-auto"> |
27 | <p class="h2 m-0 text-primary">Banda Magnética</p> | 27 | <p class="h2 m-0 text-primary">Banda Magnética</p> |
28 | <small class=" m-0"> | 28 | <small class=" m-0"> |
29 | DESLIZÁ LA TARJETA POR LA RANURA<br> | 29 | DESLIZÁ LA TARJETA POR LA RANURA<br> |
30 | CUANDO LA PANTALLA LO INDIQUE | 30 | CUANDO LA PANTALLA LO INDIQUE |
31 | </small> | 31 | </small> |
32 | <div class="btn-effect col-10 px-0 bg-white mt-4 mx-auto"> | 32 | <div class="btn-effect col-12 px-0 bg-white mt-4 mx-auto"> |
33 | <div class="row mx-0 bg-primary badge-pill h-auto"> | 33 | <div class="row mx-0 bg-primary badge-pill h-auto"> |
34 | <div class="col-10 align-self-center text-center text-white"> | 34 | <div class="col-10 align-self-center text-center text-white"> |
35 | Continuar | 35 | Continuar |
36 | </div> | 36 | </div> |
37 | <div class="col-2 align-self-center p-0"> | 37 | <div class="col-2 align-self-center p-0"> |
38 | <img | 38 | <img |
39 | draggable="false" | 39 | draggable="false" |
40 | ondragstart="return false;" | 40 | ondragstart="return false;" |
41 | (contextmenu)="(false)" | 41 | (contextmenu)="(false)" |
42 | class="p-1 icon-50" | 42 | class="p-1 icon-50" |
43 | src="assets/img/ir.svg"/> | 43 | src="assets/img/ir.svg"/> |
44 | </div> | 44 | </div> |
45 | </div> | 45 | </div> |
46 | </div> | 46 | </div> |
47 | </div> | 47 | </div> |
48 | </div> | 48 | </div> |
49 | </div> | 49 | </div> |
50 | <div | 50 | <div |
51 | class="col-12 col-sm-10 col-md-7 p-5 m-5 h-auto align-self-center | 51 | class="col-12 col-sm-10 col-md-4 p-5 my-auto mx-3 h-auto align-self-center |
52 | btn-effect border border-primary rounded reduce-card-2"> | 52 | btn-effect border border-primary rounded reduce-card-1"> |
53 | <div class="row h-auto"> | 53 | <div class="row h-auto"> |
54 | <div class="col-12 col-md-4"> | 54 | <div class="col-12 col-md-12"> |
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="w-100 h-auto bg-white" | 59 | class="w-100 h-auto bg-white" |
60 | src="assets/img/tarjeta-chip.jpg"/> | 60 | src="assets/img/tarjeta-chip.jpg"/> |
61 | </div> | 61 | </div> |
62 | <div class="col-12 col-md-8 h-auto"> | 62 | <div class="col-12 col-md-12 h-auto"> |
63 | <p class="h2 m-0 text-primary">Chip</p> | 63 | <p class="h2 m-0 text-primary">Chip</p> |
64 | <small class=" m-0"> | 64 | <small class=" m-0"> |
65 | INTRODUCÍ TU TARJETA POR LA<br> | 65 | INTRODUCÍ TU TARJETA POR LA<br> |
66 | PARTE INFERIOR DE LECTOR <br> | 66 | PARTE INFERIOR DE LECTOR <br> |
67 | CUANDO LA PANTALLA LO INDIQUE | 67 | CUANDO LA PANTALLA LO INDIQUE |
68 | </small> | 68 | </small> |
69 | <div class="btn-effect col-10 px-0 bg-white mt-4 mx-auto"> | 69 | <div class="btn-effect col-12 px-0 bg-white mt-4 mx-auto"> |
70 | <div class="row mx-0 bg-primary badge-pill h-auto"> | 70 | <div class="row mx-0 bg-primary badge-pill h-auto"> |
71 | <div class="col-10 align-self-center text-center text-white"> | 71 | <div class="col-10 align-self-center text-center text-white"> |
72 | Continuar | 72 | Continuar |
73 | </div> | 73 | </div> |
74 | <div class="col-2 align-self-center p-0"> | 74 | <div class="col-2 align-self-center p-0"> |
75 | <img | 75 | <img |
76 | draggable="false" | 76 | draggable="false" |
77 | ondragstart="return false;" | 77 | ondragstart="return false;" |
78 | (contextmenu)="(false)" | 78 | (contextmenu)="(false)" |
79 | class="p-1 icon-50" | 79 | class="p-1 icon-50" |
80 | src="assets/img/ir.svg"/> | 80 | src="assets/img/ir.svg"/> |
81 | </div> | 81 | </div> |
82 | </div> | 82 | </div> |
83 | </div> | 83 | </div> |
84 | </div> | 84 | </div> |
85 | </div> | 85 | </div> |
86 | </div> | 86 | </div> |
87 | <div | 87 | <div |
88 | class="col-12 col-sm-10 col-md-7 p-5 m-5 h-auto align-self-center | 88 | class="col-12 col-sm-10 col-md-4 p-5 mr-auto h-auto align-self-center |
89 | btn-effect border border-primary rounded reduce-card-2"> | 89 | btn-effect border border-primary rounded reduce-card-1"> |
90 | <div class="row h-auto"> | 90 | <div class="row h-auto"> |
91 | <div class="col-12 col-md-4"> | 91 | <div class="col-12 col-md-12"> |
92 | <img | 92 | <img |
93 | draggable="false" | 93 | draggable="false" |
94 | ondragstart="return false;" | 94 | ondragstart="return false;" |
95 | (contextmenu)="(false)" | 95 | (contextmenu)="(false)" |
96 | class="w-100 h-auto bg-white" | 96 | class="w-100 h-auto bg-white" |
97 | src="assets/img/tarjeta-contact-less.jpg"/> | 97 | src="assets/img/tarjeta-contact-less.jpg"/> |
98 | </div> | 98 | </div> |
99 | <div class="col-12 col-md-8 h-auto"> | 99 | <div class="col-12 col-md-12 h-auto"> |
100 | <p class="h2 m-0 text-primary">Contact-less</p> | 100 | <p class="h2 m-0 text-primary">Contact-less</p> |
101 | <small class=" m-0"> | 101 | <small class=" m-0"> |
102 | ACERCÁ LA TARJETA AL POSNET<br> | 102 | ACERCÁ LA TARJETA AL POSNET<br> |
103 | CUANDO LA PANTALLA LO INDIQUE | 103 | CUANDO LA PANTALLA LO INDIQUE |
104 | </small> | 104 | </small> |
105 | <div class="btn-effect col-10 px-0 bg-white mt-4 mx-auto"> | 105 | <div class="btn-effect col-12 px-0 bg-white mt-4 mx-auto"> |
106 | <div class="row mx-0 bg-primary badge-pill h-auto"> | 106 | <div class="row mx-0 bg-primary badge-pill h-auto"> |
107 | <div class="col-10 align-self-center text-center text-white"> | 107 | <div class="col-10 align-self-center text-center text-white"> |
108 | Continuar | 108 | <small>Continuar</small> |
109 | </div> | 109 | </div> |
110 | <div class="col-2 align-self-center p-0"> | 110 | <div class="col-2 align-self-center p-0"> |
111 | <img | 111 | <img |
112 | draggable="false" | 112 | draggable="false" |
113 | ondragstart="return false;" | 113 | ondragstart="return false;" |
114 | (contextmenu)="(false)" | 114 | (contextmenu)="(false)" |
115 | class="p-1 icon-50" | 115 | class="p-1 icon-50" |
116 | src="assets/img/ir.svg"/> | 116 | src="assets/img/ir.svg"/> |
117 | </div> | 117 | </div> |
118 | </div> | 118 | </div> |
119 | </div> | 119 | </div> |
120 | </div> | 120 | </div> |
121 | </div> | 121 | </div> |
122 | </div> | 122 | </div> |
123 | </div> | 123 | </div> |
124 | </div> | 124 | </div> |
125 | </div> | 125 | </div> |
126 | 126 |
src/app/modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.component.scss
1 | .reduce-card-1.media-pantalla { | ||
2 | max-width: 30% !important; | ||
3 | margin: 0px 15px !important; | ||
4 | height: 670px !important; | ||
5 | } | ||
6 |
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 | mediaPantalla: boolean; | ||
10 | constructor() { } | 9 | constructor() { } |
11 | 10 | ||
12 | ngOnInit() {} | 11 | ngOnInit() { |
12 | this.mediaPantalla(); | ||
13 | } | ||
14 | |||
15 | mediaPantalla() { | ||
16 | if ($('body').hasClass('media-pantalla')) { | ||
17 | $('.reduce-card').addClass('media-pantalla') | ||
18 | } | ||
19 | } | ||
13 | } | 20 | } |
src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.ts
1 | import { Component, OnInit, HostListener, Output, EventEmitter } from '@angular/core'; | 1 | import { Component, OnInit, HostListener, Output, EventEmitter } from '@angular/core'; |
2 | import { ICategoria } from 'src/app/interfaces/ICategoria'; | 2 | import { ICategoria } from 'src/app/interfaces/ICategoria'; |
3 | import { InactiveScreenService } from 'src/app/services/inactive-screen/inactive-screen.service'; | 3 | import { InactiveScreenService } from 'src/app/services/inactive-screen/inactive-screen.service'; |
4 | import { CategoriaService } from 'src/app/services/categoria/categoria.service'; | 4 | import { CategoriaService } from 'src/app/services/categoria/categoria.service'; |
5 | import { APP_SETTINGS } from 'src/etc/AppSettings'; | 5 | import { APP_SETTINGS } from 'src/etc/AppSettings'; |
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
8 | selector: 'app-filtro-categorias', | 8 | selector: 'app-filtro-categorias', |
9 | templateUrl: './filtro-categorias.component.html', | 9 | templateUrl: './filtro-categorias.component.html', |
10 | styleUrls: ['./filtro-categorias.component.scss'] | 10 | styleUrls: ['./filtro-categorias.component.scss'] |
11 | }) | 11 | }) |
12 | export class FiltroCategoriasComponent implements OnInit { | 12 | export class FiltroCategoriasComponent implements OnInit { |
13 | @Output() getProductos = new EventEmitter<any>(); | 13 | @Output() getProductos = new EventEmitter<any>(); |
14 | @Output() setProductos = new EventEmitter<any>(); | 14 | @Output() setProductos = new EventEmitter<any>(); |
15 | @Output() filterItems = new EventEmitter<any>(); | 15 | @Output() filterItems = new EventEmitter<any>(); |
16 | categorias: ICategoria[] = []; | 16 | categorias: ICategoria[] = []; |
17 | timeoutHandler: any; | 17 | timeoutHandler: any; |
18 | categoriaActive = null; | 18 | categoriaActive = null; |
19 | allActive = true; | 19 | allActive = true; |
20 | queMostrar = 'todos'; | 20 | queMostrar = 'todos'; |
21 | urlImagenes = `${APP_SETTINGS.apiImagenes}/imagenes/`; | 21 | urlImagenes = `${APP_SETTINGS.apiImagenes}/imagenes/`; |
22 | 22 | ||
23 | constructor( | 23 | constructor( |
24 | private categoriaService: CategoriaService, | 24 | private categoriaService: CategoriaService, |
25 | private inactiveScreen: InactiveScreenService, | 25 | private inactiveScreen: InactiveScreenService |
26 | ) { } | 26 | ) { } |
27 | 27 | ||
28 | ngOnInit() { | 28 | ngOnInit() { |
29 | this.mediaPantalla(); | 29 | this.mediaPantalla(); |
30 | } | 30 | } |
31 | 31 | ||
32 | getCategorias() { | 32 | getCategorias() { |
33 | this.categoriaService.getAll() | 33 | this.categoriaService.getAll() |
34 | .subscribe((categorias: ICategoria[]) => { | 34 | .subscribe((categorias: ICategoria[]) => { |
35 | switch (this.queMostrar) { | 35 | switch (this.queMostrar) { |
36 | case 'todos': | 36 | case 'todos': |
37 | this.categorias = categorias; | 37 | this.categorias = categorias; |
38 | this.categoriaActive = 0; | 38 | this.categoriaActive = 0; |
39 | break; | 39 | break; |
40 | case 'promociones': | 40 | case 'promociones': |
41 | this.categorias = categorias; | 41 | this.categorias = categorias; |
42 | this.categoriaActive = 19; | 42 | this.categoriaActive = 19; |
43 | break; | 43 | break; |
44 | case 'ordenar': | 44 | case 'ordenar': |
45 | this.categorias = categorias.filter((categoria: ICategoria) => { | 45 | this.categorias = categorias.filter((categoria: ICategoria) => { |
46 | return categoria.ES_PEDIDO; | 46 | return categoria.ES_PEDIDO; |
47 | }); | 47 | }); |
48 | this.categoriaActive = 4; | 48 | this.categoriaActive = 4; |
49 | break; | 49 | break; |
50 | default: | 50 | default: |
51 | this.categorias = categorias; | 51 | this.categorias = categorias; |
52 | this.categoriaActive = 0; | 52 | this.categoriaActive = 0; |
53 | break; | 53 | break; |
54 | } | 54 | } |
55 | !localStorage.getItem('articulos') ? | 55 | !localStorage.getItem('articulos') ? |
56 | this.getProductos.emit() : | 56 | this.getProductos.emit() : |
57 | this.setProductos.emit(); | 57 | this.setProductos.emit(); |
58 | }); | 58 | }); |
59 | this.mediaPantalla(); | 59 | this.mediaPantalla(); |
60 | } | 60 | } |
61 | 61 | ||
62 | selectCategoria(index: number, idCategoria?: number) { | 62 | selectCategoria(index: number, idCategoria?: number) { |
63 | if (this.categoriaActive === idCategoria) return; | 63 | if (this.categoriaActive === idCategoria) return; |
64 | this.categoriaActive = idCategoria; | 64 | this.categoriaActive = idCategoria; |
65 | this.allActive = idCategoria === 0 ? true : false; | 65 | this.allActive = idCategoria === 0 ? true : false; |
66 | this.categorias.forEach((categoria, i) => { | 66 | this.categorias.forEach((categoria, i) => { |
67 | categoria.selected = index === i ? true : false; | 67 | categoria.selected = index === i ? true : false; |
68 | }); | 68 | }); |
69 | this.filterItems.emit(); | 69 | this.filterItems.emit(); |
70 | |||
70 | } | 71 | } |
71 | 72 | ||
72 | @HostListener('scroll', ['$event']) | 73 | @HostListener('scroll', ['$event']) |
73 | scrollEvent(event: Event) { | 74 | scrollEvent(event: Event) { |
74 | clearTimeout(this.inactiveScreen.timerReposo); | 75 | clearTimeout(this.inactiveScreen.timerReposo); |
75 | this.inactiveScreen.startTimeOutInactividad(); | 76 | this.inactiveScreen.startTimeOutInactividad(); |
76 | } | 77 | } |
77 | 78 | ||
78 | mouseup() { | 79 | mouseup() { |
79 | if (!this.timeoutHandler) return; | 80 | if (!this.timeoutHandler) return; |
80 | clearInterval(this.timeoutHandler); | 81 | clearInterval(this.timeoutHandler); |
81 | } | 82 | } |
82 | 83 | ||
83 | scrollY(el: HTMLElement, value) { | 84 | scrollY(el: HTMLElement, value) { |
84 | el.scroll({ behavior: 'smooth', top: value + el.scrollTop }); | 85 | el.scroll({ behavior: 'smooth', top: value + el.scrollTop }); |
85 | this.timeoutHandler = setInterval(() => { | 86 | this.timeoutHandler = setInterval(() => { |
86 | el.scroll({ behavior: 'smooth', top: value + el.scrollTop }); | 87 | el.scroll({ behavior: 'smooth', top: value + el.scrollTop }); |
87 | }, 500); | 88 | }, 500); |
88 | } | 89 | } |
89 | 90 | ||
90 | mediaPantalla() { | 91 | mediaPantalla() { |
91 | if ($('body').hasClass('media-pantalla')) { | 92 | if ($('body').hasClass('media-pantalla')) { |
92 | $('.cat-content,#cat-content') | 93 | $('.cat-content,#cat-content') |
93 | .addClass('media-pantalla') | 94 | .addClass('media-pantalla') |
94 | .addBack('media-pantalla'); | 95 | .addBack('media-pantalla'); |
95 | } | 96 | } |
96 | } | 97 | } |
97 | } | 98 | } |
98 | 99 |