Commit 69dd093ceec3c7db347b081d606446b3bae9c895
1 parent
5ae1878a32
Exists in
develop
Add
Mensaje/Modal de ir a caja al seleccionar pago en efectivo
Showing
2 changed files
with
19 additions
and
9 deletions
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 col-lg-4 p-5 m-5 h-auto | 16 | class="col-11 col-sm-10 col-md-7 col-lg-4 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 class="col-11 col-sm-10 col-md-7 col-lg-4 p-5 m-5 h-auto align-self-center | 44 | <div |
45 | btn-effect border border-primary rounded reduce-card-2"> | 45 | class="col-11 col-sm-10 col-md-7 col-lg-4 p-5 m-5 h-auto align-self-center |
46 | btn-effect border border-primary rounded reduce-card-2" | ||
47 | (click)="openGoCaja(templateGoCaja)"> | ||
46 | <img | 48 | <img |
47 | draggable="false" | 49 | draggable="false" |
48 | ondragstart="return false;" | 50 | ondragstart="return false;" |
49 | (contextmenu)="false" | 51 | (contextmenu)="false" |
50 | class="img-in-top px-4 bg-white" | 52 | class="img-in-top px-4 bg-white" |
51 | src="assets/img/icono-efectivo.svg"> | 53 | src="assets/img/icono-efectivo.svg"> |
52 | <p class="h6 m-0">SI PREFERIS PAGAR EN EFECTIVO</p> | 54 | <p class="h6 m-0">SI PREFERIS PAGAR EN EFECTIVO</p> |
53 | <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> |
54 | </div> | 56 | </div> |
55 | </div> | 57 | </div> |
56 | </div> | 58 | </div> |
57 | </div> | 59 | </div> |
60 | |||
61 | <ng-template #templateGoCaja> | ||
62 | <div class="bg-primary rounded shadow text-white"> | ||
63 | <div class="modal-body text-center"> | ||
64 | Por favor, hace tu pedido en la caja. | ||
65 | </div> | ||
66 | </div> | ||
67 | </ng-template> | ||
58 | 68 |
src/app/modules/info-formas-pago/info-formas-pago.component.ts
1 | import { Component, OnInit } from '@angular/core'; | 1 | import { Component, OnInit, TemplateRef } from '@angular/core'; |
2 | import { BsModalService } from 'ngx-bootstrap/modal'; | ||
2 | 3 | ||
3 | @Component({ | 4 | @Component({ |
4 | selector: 'app-formas-pago', | 5 | selector: 'app-formas-pago', |
5 | templateUrl: './info-formas-pago.component.html', | 6 | templateUrl: './info-formas-pago.component.html', |
6 | styleUrls: ['./info-formas-pago.component.scss'] | 7 | styleUrls: ['./info-formas-pago.component.scss'] |
7 | }) | 8 | }) |
8 | export class InfoFormasPagoComponent implements OnInit { | 9 | export class InfoFormasPagoComponent implements OnInit { |
9 | mediaPantalla = false; | 10 | mediaPantalla = false; |
10 | 11 | ||
11 | constructor() { } | 12 | constructor( |
13 | private modalService: BsModalService, | ||
14 | ) { } | ||
12 | 15 | ||
13 | ngOnInit() { | 16 | ngOnInit() { |
14 | this.reducirPantalla(); | ||
15 | } | 17 | } |
16 | 18 | ||
17 | reducirPantalla() { | 19 | openGoCaja(templateRef: TemplateRef<any>) { |
18 | if ($('body').hasClass('media-pantalla')) { | 20 | this.modalService.show(templateRef, { class: 'modal-promo modal-sm modal-dialog-centered' }); |
19 | $('.reduce-card-1,.reduce-card-2').addClass('media-pantalla'); | ||
20 | } |