Commit 171af3cdfd2d647dea53beaf79f87933192b7301
Exists in
develop
Merge branch 'master' into 'develop'
Master(benjamin) See merge request !96
Showing
3 changed files
Show diff stats
src/app/modules/info-formas-pago/info-formas-pago.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 | [routerLink]="['/opcion-pedido']" | 15 | [routerLink]="['/opcion-pedido']" |
16 | class="col-11 col-sm-10 col-md-7 p-5 m-5 h-auto | 16 | class="col-11 col-sm-10 col-md-7 p-5 m-5 h-auto |
17 | btn-effect align-self-end border border-secondary rounded reduce-card-1"> | 17 | btn-effect align-self-end border border-secondary rounded reduce-card-1"> |
18 | <img | 18 | <img |
19 | draggable="false" | 19 | draggable="false" |
20 | ondragstart="return false;" | 20 | ondragstart="return false;" |
21 | (contextmenu)="false" | 21 | (contextmenu)="false" |
22 | class="img-in-top px-4 bg-white" | 22 | class="img-in-top px-4 bg-white" |
23 | src="assets/img/icono-tarjetas.svg"> | 23 | src="assets/img/icono-tarjetas.svg"> |
24 | <p class="h6 m-0">ESTA TERMINAL OPERA CON</p> | 24 | <p class="h6 m-0">ESTA TERMINAL OPERA CON</p> |
25 | <p class="h2 mb-3 text-secondary"> | 25 | <p class="h2 mb-3 text-secondary"> |
26 | tarjetas y | 26 | tarjetas y |
27 | <img | 27 | <img |
28 | draggable="false" | 28 | draggable="false" |
29 | ondragstart="return false;" | 29 | ondragstart="return false;" |
30 | (contextmenu)="false" | 30 | (contextmenu)="false" |
31 | class="icon-150" | 31 | class="icon-150" |
32 | src="assets/img/icono-mercado-pago.svg"> | 32 | src="assets/img/icono-mercado-pago.svg"> |
33 | </p> | 33 | </p> |
34 | <div class="d-inline-block py-1 btn-effect bg-secondary badge-pill text-white"> | 34 | <div class="d-inline-block py-1 btn-effect bg-secondary badge-pill text-white"> |
35 | CONTINUAR | 35 | CONTINUAR |
36 | <img | 36 | <img |
37 | draggable="false" | 37 | draggable="false" |
38 | ondragstart="return false;" | 38 | ondragstart="return false;" |
39 | (contextmenu)="false" | 39 | (contextmenu)="false" |
40 | class="icon-30" | 40 | class="icon-30" |
41 | src="assets/img/ir.svg"> | 41 | src="assets/img/ir.svg"> |
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | <div | 44 | <div |
45 | class="col-11 col-sm-10 col-md-7 p-5 m-5 h-auto align-self-center | 45 | class="col-11 col-sm-10 col-md-7 p-5 m-5 h-auto align-self-center |
46 | btn-effect border border-primary rounded reduce-card-2" | 46 | btn-effect border border-primary rounded reduce-card-2" |
47 | (click)="openGoCaja(templateGoCaja)"> | 47 | (click)="openGoCaja(templateGoCaja)"> |
48 | <img | 48 | <img |
49 | draggable="false" | 49 | draggable="false" |
50 | ondragstart="return false;" | 50 | ondragstart="return false;" |
51 | (contextmenu)="false" | 51 | (contextmenu)="false" |
52 | class="img-in-top px-4 bg-white" | 52 | class="img-in-top px-4 bg-white" |
53 | src="assets/img/icono-efectivo.svg"> | 53 | src="assets/img/icono-efectivo.svg"> |
54 | <p class="h6 m-0">SI PREFERIS PAGAR EN EFECTIVO</p> | 54 | <p class="h6 m-0">SI PREFERIS PAGAR EN EFECTIVO</p> |
55 | <p class="h2 m-0 text-primary">haga su pedido<br>en caja</p> | 55 | <p class="h2 m-0 text-primary">haga su pedido<br>en caja</p> |
56 | </div> | 56 | </div> |
57 | </div> | 57 | </div> |
58 | </div> | 58 | </div> |
59 | </div> | 59 | </div> |
60 | 60 | ||
61 | <ng-template #templateGoCaja> | 61 | <ng-template #templateGoCaja> |
62 | <div class="col-12 bg-primary rounded shadow text-white"> | 62 | <div class="col-12 bg-primary rounded shadow text-white"> |
63 | <div class="row justify-content-center"> | 63 | <div class="row justify-content-center"> |
64 | <img | 64 | <img |
65 | draggable="false" | 65 | draggable="false" |
66 | ondragstart="return false;" | 66 | ondragstart="return false;" |
67 | (contextmenu)="false" | 67 | (contextmenu)="false" |
68 | class="align-self-center icon-60 mt-4" | 68 | class="align-self-center icon-60 mt-4" |
69 | src="assets/img/icono-cajero.svg"> | 69 | src="assets/img/icono-cajero.svg"> |
70 | </div> | 70 | </div> |
71 | <div class="modal-body text-center h1 mt-2 mb-4"> | 71 | <div class="modal-body text-center h1 mt-2 mb-4"> |
72 | Por favor, hacé tu pedido en la caja. | 72 | haga su pedido<br>en caja. |
73 | </div> | 73 | </div> |
74 | </div> | 74 | </div> |
75 | </ng-template> | 75 | </ng-template> |
76 | 76 |
src/app/modules/mensaje-final/mensaje-final.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 mt-5 mx-3 h-auto"> | 13 | <div class="row mt-5 mx-3 h-auto"> |
14 | <div class="col-12 px-0 py-2 align-self-center text-center"> | 14 | <div class="col-12 px-0 py-2 align-self-center text-center"> |
15 | <p class="h6 text-truncate">SEGUÍ ESTOS PASOS PARA</p> | 15 | <p class="h6 text-truncate">SEGUÍ ESTOS PASOS PARA</p> |
16 | <p class="h2 text-truncate text-secondary">retirar tu comida</p> | 16 | <p class="h2 text-truncate text-secondary">retirar tu comida</p> |
17 | </div> | 17 | </div> |
18 | </div> | 18 | </div> |
19 | <div class="row h-auto mt-5 mx-0 justify-content-center text-center"> | 19 | <div class="row h-auto mt-5 mx-0 justify-content-center text-center"> |
20 | <div class="col-8 p-5 h-auto align-self-end border border-primary rounded"> | 20 | <div class="col-8 p-5 h-auto align-self-end border border-primary rounded"> |
21 | <img | 21 | <img |
22 | draggable="false" | 22 | draggable="false" |
23 | ondragstart="return false;" | 23 | ondragstart="return false;" |
24 | (contextmenu)="false" | 24 | (contextmenu)="false" |
25 | class="img-in-top px-4 bg-white" | 25 | class="img-in-top px-4 bg-white" |
26 | src="assets/img/ticket.svg"> | 26 | src="assets/img/ticket.svg"> |
27 | <p class="h6 mb-2"><small>PRESENTÁ EL TICKET EN CAJA Y AGUARDÁ TU PEDIDO</small></p> | 27 | <p class="h6 mb-2"><small>NO TE VAYAS SIN TU TICKET.<br>PRESENTALO AL RETIRAR TU PEDIDO.</small></p> |
28 | <p class="h2 text-primary">Número de pedido {{articuloService.idComanda}}</p> | 28 | <p class="h2 text-primary">Número de pedido {{articuloService.idComanda}}</p> |
29 | </div> | 29 | </div> |
30 | </div> | 30 | </div> |
31 | <div class="row h-auto mt-6 mx-0 justify-content-center text-center"> | 31 | <div class="row h-auto mt-6 mx-0 justify-content-center text-center"> |
32 | <div class="col-8 p-5 h-auto align-self-end border border-primary rounded"> | 32 | <div class="col-8 p-5 h-auto align-self-end border border-primary rounded"> |
33 | <img | 33 | <img |
34 | draggable="false" | 34 | draggable="false" |
35 | ondragstart="return false;" | 35 | ondragstart="return false;" |
36 | (contextmenu)="false" | 36 | (contextmenu)="false" |
37 | class="img-in-top px-4 bg-white" | 37 | class="img-in-top px-4 bg-white" |
38 | src="assets/img/bebidas.svg"> | 38 | src="assets/img/bebidas.svg"> |
39 | <p class="h6"> | 39 | <p class="h6"> |
40 | <small>TUS BEBIDAS Y COMIDAS FRÍAS RETIRALAS EN LAS HELADERAS Y DISPENSERS</small> | 40 | <small>TUS BEBIDAS Y COMIDAS FRÍAS RETIRALAS EN LAS HELADERAS Y DISPENSERS</small> |
41 | </p> | 41 | </p> |
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | <div class="row h-auto mt-5 mx-0 justify-content-center text-center"> | 44 | <div class="row h-auto mt-5 mx-0 justify-content-center text-center"> |
45 | <div class="col-8 p-5 h-auto align-self-end"> | 45 | <div class="col-8 p-5 h-auto align-self-end"> |
46 | <p class="h2 text-info"> | 46 | <p class="h2 text-info"> |
47 | ¡Listo!<br> | 47 | ¡Listo!<br> |
48 | Que lo disfrutes | 48 | Que lo disfrutes |
49 | </p> | 49 | </p> |
50 | </div> | 50 | </div> |
51 | </div> | 51 | </div> |
52 | <div class="row mx-0 justify-content-center"> | 52 | <div class="row mx-0 justify-content-center"> |
53 | <div | 53 | <div |
54 | class="col-5 py-3 btn-effect bg-primary badge-pill text-white text-center" | 54 | class="col-5 py-3 btn-effect bg-primary badge-pill text-white text-center" |
55 | (click)="goToSplash()"> | 55 | (click)="goToSplash()"> |
56 | <span class="h3 m-0">Finalizar</span> | 56 | <span class="h3 m-0">Finalizar</span> |
57 | <img | 57 | <img |
58 | draggable="false" | 58 | draggable="false" |
59 | ondragstart="return false;" | 59 | ondragstart="return false;" |
60 | (contextmenu)="false" | 60 | (contextmenu)="false" |
61 | class="float-right icon-40" | 61 | class="float-right icon-40" |
62 | src="assets/img/ir.svg"> | 62 | src="assets/img/ir.svg"> |
63 | </div> | 63 | </div> |
64 | </div> | 64 | </div> |
65 | </div> | 65 | </div> |
66 | </div> | 66 | </div> |
67 | 67 |
src/app/modules/mensaje-final/mensaje-final.component.ts
1 | import { Component, OnInit } from '@angular/core'; | 1 | import { Component, OnInit } from '@angular/core'; |
2 | import { ArticuloService } from 'src/app/services/articulo/articulo.service'; | 2 | import { ArticuloService } from 'src/app/services/articulo/articulo.service'; |
3 | import { Router } from '@angular/router'; | 3 | import { Router } from '@angular/router'; |
4 | 4 | ||
5 | @Component({ | 5 | @Component({ |
6 | selector: 'app-mensaje-final', | 6 | selector: 'app-mensaje-final', |
7 | templateUrl: './mensaje-final.component.html', | 7 | templateUrl: './mensaje-final.component.html', |
8 | styleUrls: ['./mensaje-final.component.scss'] | 8 | styleUrls: ['./mensaje-final.component.scss'] |
9 | }) | 9 | }) |
10 | export class MensajeFinalComponent implements OnInit { | 10 | export class MensajeFinalComponent implements OnInit { |
11 | timer: any; | 11 | timer: any; |
12 | 12 | ||
13 | constructor( | 13 | constructor( |
14 | public articuloService: ArticuloService, | 14 | public articuloService: ArticuloService, |
15 | private router: Router, | 15 | private router: Router, |
16 | ) { } | 16 | ) { } |
17 | 17 | ||
18 | ngOnInit() { | 18 | ngOnInit() { |
19 | this.timer = setTimeout(() => { | 19 | this.timer = setTimeout(() => { |
20 | this.goToSplash(); | 20 | this.goToSplash(); |
21 | }, 10000); | 21 | }, 15000); |
22 | this.mediaPantalla(); | 22 | this.mediaPantalla(); |
23 | } | 23 | } |
24 | 24 | ||
25 | OnDestroy() { | 25 | OnDestroy() { |
26 | clearTimeout(this.timer); | 26 | clearTimeout(this.timer); |
27 | } | 27 | } |
28 | 28 | ||
29 | goToSplash() { | 29 | goToSplash() { |
30 | this.articuloService.cleanShoppingCar(); | 30 | this.articuloService.cleanShoppingCar(); |
31 | this.router.navigate(['']); | 31 | this.router.navigate(['']); |
32 | } | 32 | } |
33 | 33 | ||
34 | mediaPantalla() { | 34 | mediaPantalla() { |
35 | if ($('body').hasClass('media-pantalla')) { | 35 | if ($('body').hasClass('media-pantalla')) { |
36 | $('body').removeClass('media-pantalla'); | 36 | $('body').removeClass('media-pantalla'); |
37 | } | 37 | } |
38 | } | 38 | } |
39 | } | 39 | } |
40 | 40 |