Commit 5e6eaad012aad113e327c6557c27a52793a91499
1 parent
a3c49e5d3e
Exists in
master
and in
1 other branch
Borrado cod.
Showing
1 changed file
with
0 additions
and
1 deletions
Show diff stats
src/app/components/sidebar/sidebar.component.html
1 | <div class="disable-user-select d-flex align-items-center flex-column h-100 pt-2 text-center"> | 1 | <div class="disable-user-select d-flex align-items-center flex-column h-100 pt-2 text-center"> |
2 | 2 | ||
3 | <!-- ENCABEZADO --> | 3 | <!-- ENCABEZADO --> |
4 | <p class="h4 border-bottom border-white text-white mt-4 pb-2"> | 4 | <p class="h4 border-bottom border-white text-white mt-4 pb-2"> |
5 | Mi compra | 5 | Mi compra |
6 | <i class="fa fa-shopping-cart" aria-hidden="true"></i> | 6 | <i class="fa fa-shopping-cart" aria-hidden="true"></i> |
7 | </p> | 7 | </p> |
8 | 8 | ||
9 | <div class="overflow-auto overflow-scroll mb-2 w-100"> | 9 | <div class="overflow-auto overflow-scroll mb-2 w-100"> |
10 | <!-- PRODUCTOS CARRITO --> | 10 | <!-- PRODUCTOS CARRITO --> |
11 | <div | 11 | <div |
12 | class="slide-in-bl my-2 bg-white border-0 rounded-sm" | 12 | class="slide-in-bl my-2 bg-white border-0 rounded-sm" |
13 | *ngFor="let producto of productosCarrito.slice().reverse(); let i = index"> | 13 | *ngFor="let producto of productosCarrito.slice().reverse(); let i = index"> |
14 | <img class="w-100 m-auto rounded-sm shadow" src="{{apiUrl}}/imagenes/{{producto.imagenes[0].imagen}}"> | 14 | <img class="w-100 m-auto rounded-sm shadow" src="{{apiUrl}}/imagenes/{{producto.imagenes[0].imagen}}"> |
15 | <div class="row m-0 p-0 px-1 py-1 shadow rounded-sm"> | 15 | <div class="row m-0 p-0 px-1 py-1 shadow rounded-sm"> |
16 | <div class="col-12 p-0 pt-2 text-left my-auto"> | 16 | <div class="col-12 p-0 pt-2 text-left my-auto"> |
17 | <p class="m-0 h6"><small>{{producto.DetArt}}</small></p> | 17 | <p class="m-0 h6"><small>{{producto.DetArt}}</small></p> |
18 | <p class="m-0 h6"><small>COD: {{producto.CodRub}}</small></p> | ||
19 | </div> | 18 | </div> |
20 | <div class="col-12 pr-1 text-right h6 my-auto "> | 19 | <div class="col-12 pr-1 text-right h6 my-auto "> |
21 | <p class="m-0">{{producto.PreVen | currency}}</p> | 20 | <p class="m-0">{{producto.PreVen | currency}}</p> |
22 | </div> | 21 | </div> |
23 | </div> | 22 | </div> |
24 | 23 | ||
25 | <!-- BOTONES --> | 24 | <!-- BOTONES --> |
26 | <div class="row m-0 d-flex justify-content-between"> | 25 | <div class="row m-0 d-flex justify-content-between"> |
27 | 26 | ||
28 | <!-- SUMAR - RESTAR CANTIDAD --> | 27 | <!-- SUMAR - RESTAR CANTIDAD --> |
29 | <div class="col-auto px-1 my-2"> | 28 | <div class="col-auto px-1 my-2"> |
30 | <div class="btn-group-sm btn-group float-left my-auto" role="group"> | 29 | <div class="btn-group-sm btn-group float-left my-auto" role="group"> |
31 | <button | 30 | <button |
32 | type="button" | 31 | type="button" |
33 | class="btn btn-light btn-sm my-auto border shadow" | 32 | class="btn btn-light btn-sm my-auto border shadow" |
34 | (click)="aumentarCantidad(producto)"> | 33 | (click)="aumentarCantidad(producto)"> |
35 | <i class="fa fa-plus" aria-hidden="true"></i> | 34 | <i class="fa fa-plus" aria-hidden="true"></i> |
36 | </button> | 35 | </button> |
37 | <div class="bg-white border border-white px-3 my-auto text-dark h5 shadow"> | 36 | <div class="bg-white border border-white px-3 my-auto text-dark h5 shadow"> |
38 | <small>{{producto.cantidad}}</small> | 37 | <small>{{producto.cantidad}}</small> |
39 | </div> | 38 | </div> |
40 | <button | 39 | <button |
41 | type="button" | 40 | type="button" |
42 | class="btn btn-light btn-sm my-auto border shadow" | 41 | class="btn btn-light btn-sm my-auto border shadow" |
43 | (click)="restarCantidad(producto)"> | 42 | (click)="restarCantidad(producto)"> |
44 | <i class="fa fa-minus" aria-hidden="true"></i> | 43 | <i class="fa fa-minus" aria-hidden="true"></i> |
45 | </button> | 44 | </button> |
46 | </div> | 45 | </div> |
47 | </div> | 46 | </div> |
48 | 47 | ||
49 | <!-- PERSONALIZAR --> | 48 | <!-- PERSONALIZAR --> |
50 | <div class="col-auto px-1 my-2"> | 49 | <div class="col-auto px-1 my-2"> |
51 | <button | 50 | <button |
52 | *ngIf="producto.tieneSinonimos" | 51 | *ngIf="producto.tieneSinonimos" |
53 | type="button" | 52 | type="button" |
54 | class="btn btn-light btn-sm my-auto float-left border shadow" | 53 | class="btn btn-light btn-sm my-auto float-left border shadow" |
55 | (click)="personalizarPromo(producto, i)"> | 54 | (click)="personalizarPromo(producto, i)"> |
56 | <i class="fa fa-refresh text-purple" aria-hidden="true"></i> | 55 | <i class="fa fa-refresh text-purple" aria-hidden="true"></i> |
57 | </button> | 56 | </button> |
58 | </div> | 57 | </div> |
59 | 58 | ||
60 | <!-- BORRAR --> | 59 | <!-- BORRAR --> |
61 | <div class="col-auto px-1 my-2"> | 60 | <div class="col-auto px-1 my-2"> |
62 | <button | 61 | <button |
63 | type="button" | 62 | type="button" |
64 | class="btn btn-secondary btn-sm my-auto shadow" | 63 | class="btn btn-secondary btn-sm my-auto shadow" |
65 | (click)="deleteProducto(producto, i)"> | 64 | (click)="deleteProducto(producto, i)"> |
66 | <i class="fa fa-trash" aria-hidden="true"></i> | 65 | <i class="fa fa-trash" aria-hidden="true"></i> |
67 | </button> | 66 | </button> |
68 | </div> | 67 | </div> |
69 | </div> | 68 | </div> |
70 | </div> | 69 | </div> |
71 | </div> | 70 | </div> |
72 | 71 | ||
73 | <!-- TOTAL --> | 72 | <!-- TOTAL --> |
74 | <div class="card rounded-top-sm mt-auto blue-gradient border-0"> | 73 | <div class="card rounded-top-sm mt-auto blue-gradient border-0"> |
75 | <div class="card-body row"> | 74 | <div class="card-body row"> |
76 | <div class="col-12"> | 75 | <div class="col-12"> |
77 | <p | 76 | <p |
78 | class="h4 border-bottom border-secondary text-secondary pb-2"> | 77 | class="h4 border-bottom border-secondary text-secondary pb-2"> |
79 | ({{getCantidadProductos()}}) artículos | 78 | ({{getCantidadProductos()}}) artículos |
80 | </p> | 79 | </p> |
81 | <p class="h3 text-secondary">Total</p> | 80 | <p class="h3 text-secondary">Total</p> |
82 | <p class="h3 font-weight-bold">{{getTotal() | currency}}</p> | 81 | <p class="h3 font-weight-bold">{{getTotal() | currency}}</p> |
83 | </div> | 82 | </div> |
84 | <div class="col-12"> | 83 | <div class="col-12"> |
85 | <button | 84 | <button |
86 | *ngIf="cantTotal > 0" | 85 | *ngIf="cantTotal > 0" |
87 | type="button" | 86 | type="button" |
88 | class="btn btn-block btn-light btn-lg shadow mb-2 p-1" | 87 | class="btn btn-block btn-light btn-lg shadow mb-2 p-1" |
89 | routerLink="/confirmacion-carrito"> | 88 | routerLink="/confirmacion-carrito"> |
90 | <span class="font-weight-bold pr-1">Finalizar y Pagar</span> | 89 | <span class="font-weight-bold pr-1">Finalizar y Pagar</span> |
91 | <i class="fa fa-check text-success" aria-hidden="true"></i> | 90 | <i class="fa fa-check text-success" aria-hidden="true"></i> |
92 | </button> | 91 | </button> |
93 | <button | 92 | <button |
94 | type="button" | 93 | type="button" |
95 | class="btn btn-block btn-light shadow btn-sm shadow" | 94 | class="btn btn-block btn-light shadow btn-sm shadow" |
96 | [routerLink]="['/cancelar-compra']"> | 95 | [routerLink]="['/cancelar-compra']"> |
97 | <span class="pr-1">Cancelar</span> | 96 | <span class="pr-1">Cancelar</span> |
98 | <i class="fa fa-times text-danger" aria-hidden="true"></i> | 97 | <i class="fa fa-times text-danger" aria-hidden="true"></i> |
99 | </button> | 98 | </button> |
100 | </div> | 99 | </div> |
101 | </div> | 100 | </div> |
102 | </div> | 101 | </div> |
103 | </div> | 102 | </div> |
104 | 103 |