Commit f9ea45223a20ee5831caa04b8748a94111b55156
1 parent
cdc952c974
Exists in
develop
agrando totales y icono volver en footer
Showing
3 changed files
with
8 additions
and
8 deletions
Show diff stats
src/app/modules/carrito/carrito.component.html
1 | <div class="h-92 bg-white fade-in-left"> | 1 | <div class="h-92 bg-white fade-in-left"> |
2 | <!-- PUBLICIDADES --> | 2 | <!-- PUBLICIDADES --> |
3 | <app-header-publicidad></app-header-publicidad> | 3 | <app-header-publicidad></app-header-publicidad> |
4 | 4 | ||
5 | <div class="h-75 carrito-content" #carritoContent> | 5 | <div class="h-75 carrito-content" #carritoContent> |
6 | <!-- CABECERA --> | 6 | <!-- CABECERA --> |
7 | <div class="row mx-3 h-auto border border-primary rounded-sm"> | 7 | <div class="row mx-3 h-auto border border-primary rounded-sm"> |
8 | <div class="col-12 px-0 py-2 align-self-center"> | 8 | <div class="col-12 px-0 py-2 align-self-center"> |
9 | <div class="px-3"> | 9 | <div class="px-3"> |
10 | <p class="h6 text-truncate">ESTE ES TÚ CARRITO DE COMPRAS</p> | 10 | <p class="h6 text-truncate">ESTE ES TÚ CARRITO DE COMPRAS</p> |
11 | </div> | 11 | </div> |
12 | </div> | 12 | </div> |
13 | </div> | 13 | </div> |
14 | 14 | ||
15 | <!-- CARRITO --> | 15 | <!-- CARRITO --> |
16 | <div | 16 | <div |
17 | class="row mx-2 mt-4 h-80 h-lg-60 align-content-start scroll-y-visible" | 17 | class="row mx-2 mt-4 h-80 h-lg-60 align-content-start scroll-y-visible" |
18 | (scroll)="scrollEvent($event)"> | 18 | (scroll)="scrollEvent($event)"> |
19 | <!-- MENSAJE DE ADVERTENCIA --> | 19 | <!-- MENSAJE DE ADVERTENCIA --> |
20 | <div class="col-10 align-self-center alert alert-primary" *ngIf="!articuloService.carrito.length"> | 20 | <div class="col-10 align-self-center alert alert-primary" *ngIf="!articuloService.carrito.length"> |
21 | <p class="h5 text-center">No hay artículos en el carrito</p> | 21 | <p class="h5 text-center">No hay artículos en el carrito</p> |
22 | </div> | 22 | </div> |
23 | <!-- ARTICULOS --> | 23 | <!-- ARTICULOS --> |
24 | <div | 24 | <div |
25 | class="col-12 col-xl-6 p-2 h-50 h-md-25 h-xl-40 text-center text-truncate carrito-articulo" | 25 | class="col-12 col-xl-6 p-2 h-50 h-md-25 h-xl-40 text-center text-truncate carrito-articulo" |
26 | [ngClass]="{'media-pantalla': carritoContent.classList.contains('media-pantalla')}" | 26 | [ngClass]="{'media-pantalla': carritoContent.classList.contains('media-pantalla')}" |
27 | *ngFor="let articulo of articuloService.carrito; let i = index;" | 27 | *ngFor="let articulo of articuloService.carrito; let i = index;" |
28 | @EnterLeaveX> | 28 | @EnterLeaveX> |
29 | <!-- ARTICULO --> | 29 | <!-- ARTICULO --> |
30 | <div class="h-100 border border-primary rounded-sm"> | 30 | <div class="h-100 border border-primary rounded-sm"> |
31 | <div class="row align-items-center mx-0 h-100"> | 31 | <div class="row align-items-center mx-0 h-100"> |
32 | <!-- NOMBRE E IMAGEN --> | 32 | <!-- NOMBRE E IMAGEN --> |
33 | <div class="col-6 col-md-3 h-50 h-md-100 border-right border-primary"> | 33 | <div class="col-6 col-md-3 h-50 h-md-100 border-right border-primary"> |
34 | <img | 34 | <img |
35 | draggable="false" | 35 | draggable="false" |
36 | ondragstart="return false;" | 36 | ondragstart="return false;" |
37 | (contextmenu)="false" | 37 | (contextmenu)="false" |
38 | class="d-none d-md-block mx-auto h-55 rounded-sm shadow-sm" | 38 | class="d-none d-md-block mx-auto h-55 rounded-sm shadow-sm" |
39 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}" | 39 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}" |
40 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'"> | 40 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'"> |
41 | <div class="row mx-0 h-100 h-md-45"> | 41 | <div class="row mx-0 h-100 h-md-45"> |
42 | <p class="col text-primary text-truncate align-self-center"> | 42 | <p class="col text-primary text-truncate align-self-center"> |
43 | <small>{{articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase()}}</small> | 43 | <small>{{articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase()}}</small> |
44 | </p> | 44 | </p> |
45 | </div> | 45 | </div> |
46 | </div> | 46 | </div> |
47 | <!-- CANTIDAD --> | 47 | <!-- CANTIDAD --> |
48 | <div class="col-6 col-md-3 h-50 h-md-100 border-right border-primary"> | 48 | <div class="col-6 col-md-3 h-50 h-md-100 border-right border-primary"> |
49 | <p class="h-40"><small>CANT</small></p> | 49 | <p class="h-40"><small>CANT</small></p> |
50 | <app-articulo-cantidad [articulo]="articulo"></app-articulo-cantidad> | 50 | <app-articulo-cantidad [articulo]="articulo"></app-articulo-cantidad> |
51 | </div> | 51 | </div> |
52 | <!-- PRECIO --> | 52 | <!-- PRECIO --> |
53 | <div class="col-6 col-md-3 h-50 h-md-100 border-right border-primary"> | 53 | <div class="col-6 col-md-3 h-50 h-md-100 border-right border-primary"> |
54 | <p class="h-40"><small>PRECIO</small></p> | 54 | <p class="h-40"><small>PRECIO</small></p> |
55 | <div class="py-1 badge-pill bg-dark text-white"> | 55 | <div class="py-1 badge-pill bg-dark text-white"> |
56 | <p><small>{{articulo.PreVen | currency}}</small></p> | 56 | <p><small>{{articulo.PreVen | currency}}</small></p> |
57 | </div> | 57 | </div> |
58 | </div> | 58 | </div> |
59 | <!-- ELIMINAR --> | 59 | <!-- ELIMINAR --> |
60 | <div class="col-6 col-md-3 align-self-center"> | 60 | <div class="col-6 col-md-3 align-self-center"> |
61 | <div class="row mx-0 justify-content-center"> | 61 | <div class="row mx-0 justify-content-center"> |
62 | <div | 62 | <div |
63 | class="col-auto px-3 py-1 btn-effect bg-primary badge-pill text-white" | 63 | class="col-auto px-3 py-1 btn-effect bg-primary badge-pill text-white" |
64 | (click)="deleteArticulo(i)"> | 64 | (click)="deleteArticulo(i)"> |
65 | <span> | 65 | <span> |
66 | <small class="pr-2">ELIMINAR</small> | 66 | <small class="pr-2">ELIMINAR</small> |
67 | <img | 67 | <img |
68 | draggable="false" | 68 | draggable="false" |
69 | ondragstart="return false;" | 69 | ondragstart="return false;" |
70 | (contextmenu)="false" | 70 | (contextmenu)="false" |
71 | class="icon-20 rotate-45" | 71 | class="icon-20 rotate-45" |
72 | src="assets/img/mas-blanco.svg"> | 72 | src="assets/img/mas-blanco.svg"> |
73 | </span> | 73 | </span> |
74 | </div> | 74 | </div> |
75 | </div> | 75 | </div> |
76 | </div> | 76 | </div> |
77 | </div> | 77 | </div> |
78 | </div> | 78 | </div> |
79 | </div> | 79 | </div> |
80 | </div> | 80 | </div> |
81 | <!-- TOTAL --> | 81 | <!-- TOTAL --> |
82 | <div class="row mx-3 mt-2 h-auto justify-content-end"> | 82 | <div class="row mx-3 mt-2 h-auto justify-content-end"> |
83 | <div class="col-auto align-self-center text-primary"><small>TOTAL</small></div> | 83 | <div class="col-auto font-weight-bold align-self-center text-primary py-2 h3">TOTAL</div> |
84 | <div class="col-auto px-3 bg-primary badge-pill"> | 84 | <div class="col-auto align-self-center bg-primary badge-pill"> |
85 | <p class="text-center text-white py-1">{{articuloService.subTotal | currency}}</p> | 85 | <p class="text-center font-weight-bold text-white py-2 h3 px-2">{{articuloService.subTotal | currency}}</p> |
86 | </div> | 86 | </div> |
87 | </div> | 87 | </div> |
88 | <!-- CONTINUAR --> | 88 | <!-- CONTINUAR --> |
89 | <div | 89 | <div |
90 | *ngIf="articuloService.carrito.length" | 90 | *ngIf="articuloService.carrito.length" |
91 | class="row mx-3 mt-4 h-auto justify-content-end"> | 91 | class="row mx-3 mt-4 h-auto justify-content-end"> |
92 | <div | 92 | <div |
93 | class="col-auto py-2 px-3 align-self-center btn-effect bg-primary badge-pill text-white" | 93 | class="col-auto py-2 px-3 align-self-center btn-effect bg-primary badge-pill text-white" |
94 | [routerLink]="['/forma-pago']"> | 94 | [routerLink]="['/forma-pago']"> |
95 | <span> | 95 | <span> |
96 | <small class="pr-2">CONTINUAR</small> | 96 | <small class="pr-2">CONTINUAR</small> |
97 | <img | 97 | <img |
98 | draggable="false" | 98 | draggable="false" |
99 | ondragstart="return false;" | 99 | ondragstart="return false;" |
100 | (contextmenu)="false" | 100 | (contextmenu)="false" |
101 | class="icon-20" | 101 | class="icon-20" |
102 | src="assets/img/ir.svg"> | 102 | src="assets/img/ir.svg"> |
103 | </span> | 103 | </span> |
104 | </div> | 104 | </div> |
105 | </div> | 105 | </div> |
106 | </div> | 106 | </div> |
107 | 107 | ||
108 | </div> | 108 | </div> |
109 | 109 |
src/app/modules/seleccion-articulos/seleccion-articulos.component.html
1 | <div class="h-92 bg-white fade-in-left"> | 1 | <div class="h-92 bg-white fade-in-left"> |
2 | <!-- PUBLICIDADES --> | 2 | <!-- PUBLICIDADES --> |
3 | <app-header-publicidad></app-header-publicidad> | 3 | <app-header-publicidad></app-header-publicidad> |
4 | 4 | ||
5 | <div class="row mx-0 align-items-end" | 5 | <div class="row mx-0 align-items-end" |
6 | [ngClass]="boxCarrito.classList.contains('media-pantalla') | 6 | [ngClass]="boxCarrito.classList.contains('media-pantalla') |
7 | ? 'h-68' : 'h-80'"> | 7 | ? 'h-68' : 'h-80'"> |
8 | <!-- CABECERA --> | 8 | <!-- CABECERA --> |
9 | <div class="row w-100 mx-3 h-auto border border-primary rounded-sm"> | 9 | <div class="row w-100 mx-3 h-auto border border-primary rounded-sm"> |
10 | <div class="col-12 p-2 align-self-center"> | 10 | <div class="col-12 p-2 align-self-center"> |
11 | <div class="px-3"> | 11 | <div class="px-3"> |
12 | <p class="h6 text-truncate">SELECCIONÁ TÚ COMIDA Y/O BEBIDA</p> | 12 | <p class="h6 text-truncate">SELECCIONÁ TÚ COMIDA Y/O BEBIDA</p> |
13 | </div> | 13 | </div> |
14 | </div> | 14 | </div> |
15 | </div> | 15 | </div> |
16 | <!-- CUERPO --> | 16 | <!-- CUERPO --> |
17 | <div class="row w-100 mr-4 h-50 h-md-70" id="content"> | 17 | <div class="row w-100 mr-4 h-50 h-md-70" id="content"> |
18 | <div class="col-12 h-100 px-0 py-3"> | 18 | <div class="col-12 h-100 px-0 py-3"> |
19 | <div class="row mx-0 h-100"> | 19 | <div class="row mx-0 h-100"> |
20 | <app-filtro-categorias | 20 | <app-filtro-categorias |
21 | class="col-5 col-sm-3 col-xl-2 h-100" | 21 | class="col-5 col-sm-3 col-xl-2 h-100" |
22 | #filtroCategorias | 22 | #filtroCategorias |
23 | (getProductos)="getProductos()" | 23 | (getProductos)="getProductos()" |
24 | (setProductos)="setProductos()" | 24 | (setProductos)="setProductos()" |
25 | (filterItems)="filterItems()"> | 25 | (filterItems)="filterItems()"> |
26 | </app-filtro-categorias> | 26 | </app-filtro-categorias> |
27 | <!-- LISTA DE ARTICULOS --> | 27 | <!-- LISTA DE ARTICULOS --> |
28 | <div | 28 | <div |
29 | class="col-7 col-sm-9 col-xl-10 pb-3 h-100 align-self-center scroll-y-visible" | 29 | class="col-7 col-sm-9 col-xl-10 pb-3 h-100 align-self-center scroll-y-visible" |
30 | (scroll)="scrollEvent($event)"> | 30 | (scroll)="scrollEvent($event)"> |
31 | <div class="row row-cols-1 row-cols-sm-3 row-cols-xl-6"> | 31 | <div class="row row-cols-1 row-cols-sm-3 row-cols-xl-6"> |
32 | <!-- ARTICULO --> | 32 | <!-- ARTICULO --> |
33 | <div | 33 | <div |
34 | *ngFor="let articulo of auxArticulos | slice:0:showQuantity;" | 34 | *ngFor="let articulo of auxArticulos | slice:0:showQuantity;" |
35 | class="col px-2 my-1 my-md-3 h-auto"> | 35 | class="col px-2 my-1 my-md-3 h-auto"> |
36 | <div | 36 | <div |
37 | class="swing-in-top-fwd btn-effect card h-auto" | 37 | class="swing-in-top-fwd btn-effect card h-auto" |
38 | (click)="selectArticulo(articulo)"> | 38 | (click)="selectArticulo(articulo)"> |
39 | <img | 39 | <img |
40 | draggable="false" | 40 | draggable="false" |
41 | ondragstart="return false;" | 41 | ondragstart="return false;" |
42 | (contextmenu)="false" | 42 | (contextmenu)="false" |
43 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}" | 43 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}" |
44 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'" | 44 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'" |
45 | class="card-img-top w-100 h-auto h-md-55 rounded-sm"> | 45 | class="card-img-top w-100 h-auto h-md-55 rounded-sm"> |
46 | <div class="row mx-0 py-1 h-auto justify-content-center"> | 46 | <div class="row mx-0 py-1 h-auto justify-content-center"> |
47 | <p class="col-12 px-1 h6 h-auto text-primary text-center min-h-60"> | 47 | <p class="col-12 px-1 h6 h-auto text-primary text-center min-h-60"> |
48 | {{articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase()}} | 48 | {{articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase()}} |
49 | </p> | 49 | </p> |
50 | <div class="col-12 px-1 align-self-end h-auto"> | 50 | <div class="col-12 px-1 align-self-end h-auto"> |
51 | <div class="row mx-0 justify-content-between bg-primary badge-pill"> | 51 | <div class="row mx-0 justify-content-between bg-primary badge-pill"> |
52 | <div class="col px-0 align-self-center text-white text-right"> | 52 | <div class="col px-0 align-self-center text-white text-right"> |
53 | {{articulo.PreVen | currency}} | 53 | {{articulo.PreVen | currency}} |
54 | </div> | 54 | </div> |
55 | <div class="col-5 px-0"> | 55 | <div class="col-5 px-0"> |
56 | <img | 56 | <img |
57 | draggable="false" | 57 | draggable="false" |
58 | ondragstart="return false;" | 58 | ondragstart="return false;" |
59 | (contextmenu)="false" | 59 | (contextmenu)="false" |
60 | class="d-block ml-auto py-1 icon-30" | 60 | class="d-block ml-auto py-1 icon-30" |
61 | src="assets/img/ir.svg"> | 61 | src="assets/img/ir.svg"> |
62 | </div> | 62 | </div> |
63 | </div> | 63 | </div> |
64 | </div> | 64 | </div> |
65 | </div> | 65 | </div> |
66 | </div> | 66 | </div> |
67 | </div> | 67 | </div> |
68 | </div> | 68 | </div> |
69 | <!-- BOTON VER MAS --> | 69 | <!-- BOTON VER MAS --> |
70 | <div class="row mx-0"> | 70 | <div class="row mx-0"> |
71 | <div | 71 | <div |
72 | *ngIf="showQuantity <= auxArticulos.slice(0, showQuantity).length" | 72 | *ngIf="showQuantity <= auxArticulos.slice(0, showQuantity).length" |
73 | class="col-12 px-0 mb-2"> | 73 | class="col-12 px-0 mb-2"> |
74 | <button | 74 | <button |
75 | (click)="increaseShow()" | 75 | (click)="increaseShow()" |
76 | class="btn btn-block btn-outline-primary"> | 76 | class="btn btn-block btn-outline-primary"> |
77 | Ver Más | 77 | Ver Más |
78 | </button> | 78 | </button> |
79 | </div> | 79 | </div> |
80 | </div> | 80 | </div> |
81 | </div> | 81 | </div> |
82 | </div> | 82 | </div> |
83 | </div> | 83 | </div> |
84 | </div> | 84 | </div> |
85 | <!-- FOOTER CARRITO DE COMPRAS --> | 85 | <!-- FOOTER CARRITO DE COMPRAS --> |
86 | <div class="row w-90 mx-auto h-auto justify-content-center"> | 86 | <div class="row w-90 mx-auto h-auto justify-content-center"> |
87 | <div class="h-75 px-0 border border-primary rounded" #boxCarrito | 87 | <div class="h-75 px-0 border border-primary rounded" #boxCarrito |
88 | [ngClass]="boxCarrito.classList.contains('media-pantalla') | 88 | [ngClass]="boxCarrito.classList.contains('media-pantalla') |
89 | ? 'col-8' : 'col-12'" id="boxCarrito"> | 89 | ? 'col-8' : 'col-12'" id="boxCarrito"> |
90 | <!-- CABECERA --> | 90 | <!-- CABECERA --> |
91 | <div class="row mx-0 h-15 border-bottom border-primary"> | 91 | <div class="row mx-0 h-15 border-bottom border-primary"> |
92 | <p class="col align-self-center text-truncate"><small>ARTÍCULOS EN TÚ CARRITO DE COMPRAS</small></p> | 92 | <p class="col align-self-center text-truncate"><small>ARTÍCULOS EN TÚ CARRITO DE COMPRAS</small></p> |
93 | </div> | 93 | </div> |
94 | <!-- CUERPO --> | 94 | <!-- CUERPO --> |
95 | <div class="row h-85 mx-0 justify-content-around"> | 95 | <div class="row h-85 mx-0 justify-content-around"> |
96 | <!-- BOTON SCROLL IZQUIERDA --> | 96 | <!-- BOTON SCROLL IZQUIERDA --> |
97 | <div *ngIf="articuloService.carrito.length" class="col-auto btn-effect h-20 align-self-center"> | 97 | <div *ngIf="articuloService.carrito.length" class="col-auto btn-effect h-20 align-self-center"> |
98 | <img | 98 | <img |
99 | draggable="false" | 99 | draggable="false" |
100 | ondragstart="return false;" | 100 | ondragstart="return false;" |
101 | (contextmenu)="false" | 101 | (contextmenu)="false" |
102 | class="icon-30 rotate-180-neg" | 102 | class="icon-30 rotate-180-neg" |
103 | src="assets/img/ir-fondo-color.svg" | 103 | src="assets/img/ir-fondo-color.svg" |
104 | (mousedown)="scrollX(templateCarrito, -100)" | 104 | (mousedown)="scrollX(templateCarrito, -100)" |
105 | (mouseup)="mouseup()" | 105 | (mouseup)="mouseup()" |
106 | (mouseleave)="mouseup()"> | 106 | (mouseleave)="mouseup()"> |
107 | </div> | 107 | </div> |
108 | <!-- CARRITO --> | 108 | <!-- CARRITO --> |
109 | <div class="col-6 col-sm-8 col-lg-10 h-100"> | 109 | <div class="col-6 col-sm-8 col-lg-10 h-100"> |
110 | <div | 110 | <div |
111 | #templateCarrito | 111 | #templateCarrito |
112 | class="row flex-row flex-nowrap h-100 mx-0 my-2 scroll-x" | 112 | class="row flex-row flex-nowrap h-100 mx-0 my-2 scroll-x" |
113 | (scroll)="scrollEvent($event)"> | 113 | (scroll)="scrollEvent($event)"> |
114 | <!-- ARTICULOS --> | 114 | <!-- ARTICULOS --> |
115 | <div | 115 | <div |
116 | class="col-10 col-sm-4 col-lg-2 px-2 px-xl-4 align-self-center border-right border-primary" | 116 | class="col-10 col-sm-4 col-lg-2 px-2 px-xl-4 align-self-center border-right border-primary" |
117 | *ngFor="let articulo of articuloService.carrito; let i = index;" | 117 | *ngFor="let articulo of articuloService.carrito; let i = index;" |
118 | @EnterLeaveY> | 118 | @EnterLeaveY> |
119 | <img | 119 | <img |
120 | class="btn-effect icon-20 mr-2 position-absolute right-0" | 120 | class="btn-effect icon-20 mr-2 position-absolute right-0" |
121 | src="assets/img/icono-cancelar-color.svg" | 121 | src="assets/img/icono-cancelar-color.svg" |
122 | (click)="deleteArticulo(i)"> | 122 | (click)="deleteArticulo(i)"> |
123 | <img | 123 | <img |
124 | draggable="false" | 124 | draggable="false" |
125 | ondragstart="return false;" | 125 | ondragstart="return false;" |
126 | (contextmenu)="false" | 126 | (contextmenu)="false" |
127 | class="d-block img-fluid p-2 mx-auto rounded w-100 h-auto" | 127 | class="d-block img-fluid p-2 mx-auto rounded w-100 h-auto" |
128 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}" | 128 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}" |
129 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'"> | 129 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'"> |
130 | <p class="d-block mt-auto text-center text-primary text-truncate"> | 130 | <p class="d-block mt-auto text-center text-primary text-truncate"> |
131 | <small>{{articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase()}}</small> | 131 | <small>{{articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase()}}</small> |
132 | </p> | 132 | </p> |
133 | <app-articulo-cantidad [articulo]="articulo"></app-articulo-cantidad> | 133 | <app-articulo-cantidad [articulo]="articulo"></app-articulo-cantidad> |
134 | </div> | 134 | </div> |
135 | <!-- MENSAJE DE ADVERTENCIA --> | 135 | <!-- MENSAJE DE ADVERTENCIA --> |
136 | <div *ngIf="!articuloService.carrito.length" class="col h-100"> | 136 | <div *ngIf="!articuloService.carrito.length" class="col h-100"> |
137 | <p class="text-center py-5">No hay articulos en el carrito</p> | 137 | <p class="text-center py-5">No hay articulos en el carrito</p> |
138 | </div> | 138 | </div> |
139 | </div> | 139 | </div> |
140 | </div> | 140 | </div> |
141 | <!-- BOTON SCROLL DERECHA --> | 141 | <!-- BOTON SCROLL DERECHA --> |
142 | <div *ngIf="articuloService.carrito.length" | 142 | <div *ngIf="articuloService.carrito.length" |
143 | class="col-auto btn-effect h-20 align-self-center d-contents"> | 143 | class="col-auto btn-effect h-20 align-self-center d-contents"> |
144 | <img | 144 | <img |
145 | draggable="false" | 145 | draggable="false" |
146 | ondragstart="return false;" | 146 | ondragstart="return false;" |
147 | (contextmenu)="false" | 147 | (contextmenu)="false" |
148 | class="icon-30" | 148 | class="icon-30" |
149 | src="assets/img/ir-fondo-color.svg" | 149 | src="assets/img/ir-fondo-color.svg" |
150 | (mousedown)="scrollX(templateCarrito, 100)" | 150 | (mousedown)="scrollX(templateCarrito, 100)" |
151 | (mouseup)="mouseup()" | 151 | (mouseup)="mouseup()" |
152 | (mouseleave)="mouseup()"> | 152 | (mouseleave)="mouseup()"> |
153 | </div> | 153 | </div> |
154 | </div> | 154 | </div> |
155 | </div> | 155 | </div> |
156 | <!-- TOTAL--> | 156 | <!-- TOTAL--> |
157 | <div | 157 | <div |
158 | class="col-auto mt-2 ml-auto h-20"> | 158 | class="col-auto mt-2 ml-auto h-20"> |
159 | <div class="row mx-0"> | 159 | <div class="row mx-0"> |
160 | <div class="col-auto align-self-center text-primary">TOTAL</div> | 160 | <div class="col-auto font-weight-bold align-self-center text-primary py-2 h3">TOTAL</div> |
161 | <div class="col-auto bg-primary badge-pill"> | 161 | <div class="col-auto align-self-center bg-primary badge-pill"> |
162 | <p class="text-center text-white mt-1 py-1">{{articuloService.subTotal | currency}}</p> | 162 | <p class="text-center font-weight-bold text-white py-2 h3 px-2">{{articuloService.subTotal | currency}}</p> |
163 | </div> | 163 | </div> |
164 | </div> | 164 | </div> |
165 | </div> | 165 | </div> |
166 | 166 | ||
167 | <!-- VER CARRITO --> | 167 | <!-- VER CARRITO --> |
168 | <div | 168 | <div |
169 | class="col-auto px-0 mt-2 h-20" | 169 | class="col-auto px-0 mt-3 h-20" |
170 | *ngIf="articuloService.carrito.length" | 170 | *ngIf="articuloService.carrito.length" |
171 | [ngClass]="{'ml-auto pb-3' : boxCarrito.classList.contains('media-pantalla')}"> | 171 | [ngClass]="{'ml-auto pb-3' : boxCarrito.classList.contains('media-pantalla')}"> |
172 | <div | 172 | <div |
173 | class="btn-effect col-auto px-0 align-self-center bg-white" | 173 | class="btn-effect col-auto px-0 align-self-center bg-white" |
174 | [routerLink]="['/carrito']"> | 174 | [routerLink]="['/carrito']"> |
175 | <div class="row mx-0 bg-light"> | 175 | <div class="row mx-0 bg-light"> |
176 | <div class="col-auto p-0 bg-primary"> | 176 | <div class="col-auto p-0 bg-primary"> |
177 | <img | 177 | <img |
178 | draggable="false" | 178 | draggable="false" |
179 | ondragstart="return false;" | 179 | ondragstart="return false;" |
180 | (contextmenu)="false" | 180 | (contextmenu)="false" |
181 | class="p-2 icon-40" | 181 | class="p-2 icon-40" |
182 | src="assets/img/carrito.svg"> | 182 | src="assets/img/carrito.svg"> |
183 | </div> | 183 | </div> |
184 | <div class="col-auto align-self-center text-primary d-none d-sm-block">IR AL CARRITO</div> | 184 | <div class="col-auto align-self-center text-primary d-none d-sm-block">IR AL CARRITO</div> |
185 | </div> | 185 | </div> |
186 | </div> | 186 | </div> |
187 | </div> | 187 | </div> |
188 | 188 | ||
189 | </div> | 189 | </div> |
190 | </div> | 190 | </div> |
191 | 191 | ||
192 | </div> | 192 | </div> |
193 | 193 |
src/app/shared/footer/footer.component.html
1 | <div class="row w-90 mx-auto h-100 w-100 justify-content-between bg-white"> | 1 | <div class="row w-90 mx-auto h-100 w-100 justify-content-between bg-white"> |
2 | <div class="col-auto align-self-center px-0 bg-white"> | 2 | <div class="col-auto align-self-center px-0 bg-white"> |
3 | <div class="btn-effect row mx-0 bg-light" (click)="reducirPantalla()"> | 3 | <div class="btn-effect row mx-0 bg-light" (click)="reducirPantalla()"> |
4 | <div class="col-auto align-self-center text-primary">ADAPTAR PANTALLA</div> | 4 | <div class="col-auto align-self-center text-primary">ADAPTAR PANTALLA</div> |
5 | <div class="col-auto p-0 bg-primary d-none d-sm-block"> | 5 | <div class="col-auto p-0 bg-primary d-none d-sm-block"> |
6 | <img | 6 | <img |
7 | draggable="false" | 7 | draggable="false" |
8 | ondragstart="return false;" | 8 | ondragstart="return false;" |
9 | (contextmenu)="false" | 9 | (contextmenu)="false" |
10 | class="p-2 icon-60" | 10 | class="p-2 icon-60" |
11 | src="assets/img/icono-silla-de-ruedas.svg"> | 11 | src="assets/img/icono-silla-de-ruedas.svg"> |
12 | </div> | 12 | </div> |
13 | </div> | 13 | </div> |
14 | </div> | 14 | </div> |
15 | <div | 15 | <div |
16 | class="btn-effect col-auto align-self-center px-0 bg-white" | 16 | class="btn-effect col-auto align-self-center px-0 bg-white" |
17 | (click)="goBack()"> | 17 | (click)="goBack()"> |
18 | <div class="row mx-0 bg-light"> | 18 | <div class="row mx-0 bg-light"> |
19 | <div class="col-auto align-self-center text-primary">VOLVER</div> | 19 | <div class="col-auto align-self-center text-primary">VOLVER</div> |
20 | <div class="col-auto p-0 bg-primary d-none d-sm-block"> | 20 | <div class="col-auto p-0 bg-primary d-none d-sm-block"> |
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="p-2 icon-40" | 25 | class="p-2 icon-60" |
26 | src="assets/img/icono-volver.svg"> | 26 | src="assets/img/icono-volver.svg"> |
27 | </div> | 27 | </div> |
28 | </div> | 28 | </div> |
29 | </div> | 29 | </div> |
30 | </div> | 30 | </div> |
31 | 31 |