Commit 6d1adb5f2034f279eb958b0b849852f95faffda9
1 parent
93d40bc42e
Exists in
develop
agrandar boton en mensaje-final
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>PRESENTÁ EL TICKET EN CAJA Y AGUARDÁ 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 justify-content-center"> | 52 | <div class="row justify-content-center"> | 
| 53 | <div class="col-5"> | 53 | <div class="col-5"> | 
| 54 | <div class="row justify-content-between"> | 54 | <div class="row justify-content-between"> | 
| 55 | <div class="col-12"> | 55 | <div class="col-12"> | 
| 56 | <div | 56 | <div | 
| 57 | class="d-inline-block py-1 btn-effect bg-primary badge-pill text-white" | 57 | class="d-inline-block py-1 btn-effect bg-primary badge-pill text-white w-100" | 
| 58 | (click)="goToSplash()"> | 58 | (click)="goToSplash()"> | 
| 59 | <div class="row mx-0 bg-primary badge-pill heigth-80"> | 59 | <div class="row mx-0 bg-primary badge-pill heigth-80"> | 
| 60 | <div class="col-10 align-self-center text-center text-white h3">finalizar</div> | 60 | <div class="col-10 align-self-center text-center text-white h3">finalizar</div> | 
| 61 | <div class="col-2 align-self-center p-0"> | 61 | <div class="col-2 align-self-center p-0"> | 
| 62 | <img | 62 | <img | 
| 63 | draggable="false" | 63 | draggable="false" | 
| 64 | ondragstart="return false;" | 64 | ondragstart="return false;" | 
| 65 | (contextmenu)="false" | 65 | (contextmenu)="false" | 
| 66 | class="icon-50" | 66 | class="icon-50" | 
| 67 | src="assets/img/ir.svg"> | 67 | src="assets/img/ir.svg"> | 
| 68 | </div> | 68 | </div> | 
| 69 | </div> | 69 | </div> | 
| 70 | </div> | 70 | </div> | 
| 71 | </div> | 71 | </div> | 
| 72 | </div> | 72 | </div> | 
| 73 | </div> | 73 | </div> | 
| 74 | </div> | 74 | </div> | 
| 75 | </div> | 75 | </div> | 
| 76 | </div> | 76 | </div> | 
| 77 | 77 | 
src/app/modules/pago-electronico/pago-electronico.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 | import { APP_SETTINGS } from 'src/etc/AppSettings'; | 4 | import { APP_SETTINGS } from 'src/etc/AppSettings'; | 
| 5 | 5 | ||
| 6 | @Component({ | 6 | @Component({ | 
| 7 | selector: 'app-pago-electronico', | 7 | selector: 'app-pago-electronico', | 
| 8 | templateUrl: './pago-electronico.component.html', | 8 | templateUrl: './pago-electronico.component.html', | 
| 9 | styleUrls: ['./pago-electronico.component.scss'] | 9 | styleUrls: ['./pago-electronico.component.scss'] | 
| 10 | }) | 10 | }) | 
| 11 | export class PagoElectronicoComponent implements OnInit { | 11 | export class PagoElectronicoComponent implements OnInit { | 
| 12 | urlQr = `${APP_SETTINGS.apiDeboSuite}/qr/${APP_SETTINGS.deploy}/${APP_SETTINGS.codigoP}/tienda/${APP_SETTINGS.terminal}`; | 12 | urlQr = `${APP_SETTINGS.apiDeboSuite}/qr/${APP_SETTINGS.numeroPlanilla}/${APP_SETTINGS.codigoP}/tienda/${APP_SETTINGS.terminal}`; | 
| 13 | 13 | ||
| 14 | constructor( | 14 | constructor( | 
| 15 | private articuloService: ArticuloService, | 15 | private articuloService: ArticuloService, | 
| 16 | private router: Router, | 16 | private router: Router, | 
| 17 | ) { } | 17 | ) { } | 
| 18 | 18 | ||
| 19 | ngOnInit() { | 19 | ngOnInit() { | 
| 20 | if (!this.articuloService.carrito.length) { | 20 | if (!this.articuloService.carrito.length) { | 
| 21 | this.router.navigate(['']); | 21 | this.router.navigate(['']); | 
| 22 | return; | 22 | return; | 
| 23 | } | 23 | } | 
| 24 | const dataPago = { | 24 | const dataPago = { | 
| 25 | pedidoAnombreDe: '' | 25 | pedidoAnombreDe: '' | 
| 26 | }; | 26 | }; | 
| 27 | dataPago.pedidoAnombreDe = ''; | 27 | dataPago.pedidoAnombreDe = ''; | 
| 28 | this.articuloService.pay(dataPago) | 28 | this.articuloService.pay(dataPago) | 
| 29 | .subscribe((res: any) => { | 29 | .subscribe((res: any) => { | 
| 30 | this.articuloService.idComanda = res.data; | 30 | this.articuloService.idComanda = res.data; | 
| 31 | this.router.navigate(['mensaje-final']); | 31 | this.router.navigate(['mensaje-final']); | 
| 32 | }, err => console.error(err)); | 32 | }, err => console.error(err)); | 
| 33 | this.mediaPantalla(); | 33 | this.mediaPantalla(); | 
| 34 | } | 34 | } | 
| 35 | mediaPantalla() { | 35 | mediaPantalla() { | 
| 36 | if ($('body').hasClass('media-pantalla')) { | 36 | if ($('body').hasClass('media-pantalla')) { | 
| 37 | $('.qr-mt').addClass('media-pantalla'); | 37 | $('.qr-mt').addClass('media-pantalla'); | 
| 38 | } | 38 | } | 
| 39 | } | 39 | } | 
| 40 | } | 40 | } | 
| 41 | 41 |