Commit 17a60eab71b8b67c26e0751726a1abe97602c21b
1 parent
0fe454ec4c
Exists in
develop
cambio texto en mensaje final y alargo timeout
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
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 |