Commit d8653923f2a8877f63a53a5f0aca04a841defe9d
1 parent
c6ead4054f
Exists in
master
and in
2 other branches
Borrado shadow de lista de articulos
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
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 h-90 align-items-end"> | 5 | <div class="row mx-0 h-90 align-items-end"> |
| 6 | <!-- CABECERA --> | 6 | <!-- CABECERA --> |
| 7 | <div class="row w-100 mx-3 h-auto border border-primary rounded-sm"> | 7 | <div class="row w-100 mx-3 h-auto border border-primary rounded-sm"> |
| 8 | <div class="col-12 p-2 align-self-center"> | 8 | <div class="col-12 p-2 align-self-center"> |
| 9 | <div class="px-3"> | 9 | <div class="px-3"> |
| 10 | <p class="h6 text-truncate">SELECCIONÁ TÚ COMIDA Y/O BEBIDA</p> | 10 | <p class="h6 text-truncate">SELECCIONÁ TÚ COMIDA Y/O BEBIDA</p> |
| 11 | </div> | 11 | </div> |
| 12 | </div> | 12 | </div> |
| 13 | </div> | 13 | </div> |
| 14 | <!-- CUERPO --> | 14 | <!-- CUERPO --> |
| 15 | <div class="row w-100 mr-4 h-70"> | 15 | <div class="row w-100 mr-4 h-70"> |
| 16 | <div class="col-12 h-100 px-0 py-3"> | 16 | <div class="col-12 h-100 px-0 py-3"> |
| 17 | <div class="row mx-0 h-100"> | 17 | <div class="row mx-0 h-100"> |
| 18 | <!-- FILTRO CATEGORIAS --> | 18 | <!-- FILTRO CATEGORIAS --> |
| 19 | <div class="col-5 col-sm-3 col-xl-2 h-100"> | 19 | <div class="col-5 col-sm-3 col-xl-2 h-100"> |
| 20 | <p class="h6 h-6 m-0 text-center"><small>CATEGORÍAS</small></p> | 20 | <p class="h6 h-6 m-0 text-center"><small>CATEGORÍAS</small></p> |
| 21 | <div class="row mx-0 h-94 justify-content-center align-items-center"> | 21 | <div class="row mx-0 h-94 justify-content-center align-items-center"> |
| 22 | <div class="col-auto btn-effect h-5"> | 22 | <div class="col-auto btn-effect h-5"> |
| 23 | <img | 23 | <img |
| 24 | draggable="false" | 24 | draggable="false" |
| 25 | ondragstart="return false;" | 25 | ondragstart="return false;" |
| 26 | (contextmenu)="false" | 26 | (contextmenu)="false" |
| 27 | class="h-100 d-block mx-auto rotate-90-neg" | 27 | class="h-100 d-block mx-auto rotate-90-neg" |
| 28 | src="assets/img/ir-color.svg" | 28 | src="assets/img/ir-color.svg" |
| 29 | (mousedown)="scrollY(templateCategorias, -100)" | 29 | (mousedown)="scrollY(templateCategorias, -100)" |
| 30 | (mouseup)="mouseup()" | 30 | (mouseup)="mouseup()" |
| 31 | (mouseleave)="mouseup()"> | 31 | (mouseleave)="mouseup()"> |
| 32 | </div> | 32 | </div> |
| 33 | <!-- CATEGORIAS --> | 33 | <!-- CATEGORIAS --> |
| 34 | <div | 34 | <div |
| 35 | #templateCategorias | 35 | #templateCategorias |
| 36 | class="col-12 px-0 box-categorias border border-primary border-left-0 rounded-right scroll-y"> | 36 | class="col-12 px-0 box-categorias border border-primary border-left-0 rounded-right scroll-y"> |
| 37 | <div | 37 | <div |
| 38 | class="row mx-4 mb-2 h-32 justify-content-center tab" | 38 | class="row mx-4 mb-2 h-32 justify-content-center tab" |
| 39 | [ngClass]="{ 'active': allActive, 'border-bottom-effect': !allActive }" | 39 | [ngClass]="{ 'active': allActive, 'border-bottom-effect': !allActive }" |
| 40 | (click)="selectCategoria(-1, 0)"> | 40 | (click)="selectCategoria(-1, 0)"> |
| 41 | <img | 41 | <img |
| 42 | draggable="false" | 42 | draggable="false" |
| 43 | ondragstart="return false;" | 43 | ondragstart="return false;" |
| 44 | (contextmenu)="false" | 44 | (contextmenu)="false" |
| 45 | class="col-12 h-50 align-self-end d-none d-sm-block rounded-circle" | 45 | class="col-12 h-50 align-self-end d-none d-sm-block rounded-circle" |
| 46 | src="assets/img/ir-color.svg"> | 46 | src="assets/img/ir-color.svg"> |
| 47 | <small class="col-12 px-0 my-1 h-25 align-self-end text-center text-truncate">Todos</small> | 47 | <small class="col-12 px-0 my-1 h-25 align-self-end text-center text-truncate">Todos</small> |
| 48 | </div> | 48 | </div> |
| 49 | <div | 49 | <div |
| 50 | class="row mx-4 mb-2 h-32 justify-content-center tab" | 50 | class="row mx-4 mb-2 h-32 justify-content-center tab" |
| 51 | [ngClass]="{ 'active': categoria.selected, 'border-bottom-effect': !categoria.selected }" | 51 | [ngClass]="{ 'active': categoria.selected, 'border-bottom-effect': !categoria.selected }" |
| 52 | (click)="selectCategoria(i, categoria.id)" | 52 | (click)="selectCategoria(i, categoria.id)" |
| 53 | *ngFor="let categoria of categorias; let i = index;"> | 53 | *ngFor="let categoria of categorias; let i = index;"> |
| 54 | <img | 54 | <img |
| 55 | draggable="false" | 55 | draggable="false" |
| 56 | ondragstart="return false;" | 56 | ondragstart="return false;" |
| 57 | (contextmenu)="false" | 57 | (contextmenu)="false" |
| 58 | class="col-12 h-50 align-self-end d-none d-sm-block rounded-circle" | 58 | class="col-12 h-50 align-self-end d-none d-sm-block rounded-circle" |
| 59 | src="assets/img/ir-color.svg"> | 59 | src="assets/img/ir-color.svg"> |
| 60 | <small class="col-12 px-0 my-1 h-25 align-self-end text-center text-truncate">{{categoria.detalle}}</small> | 60 | <small class="col-12 px-0 my-1 h-25 align-self-end text-center text-truncate">{{categoria.detalle}}</small> |
| 61 | </div> | 61 | </div> |
| 62 | </div> | 62 | </div> |
| 63 | <div class="col-auto btn-effect h-5"> | 63 | <div class="col-auto btn-effect h-5"> |
| 64 | <img | 64 | <img |
| 65 | draggable="false" | 65 | draggable="false" |
| 66 | ondragstart="return false;" | 66 | ondragstart="return false;" |
| 67 | (contextmenu)="false" | 67 | (contextmenu)="false" |
| 68 | class="h-100 d-block mx-auto rotate-90" | 68 | class="h-100 d-block mx-auto rotate-90" |
| 69 | src="assets/img/ir-color.svg" | 69 | src="assets/img/ir-color.svg" |
| 70 | (mousedown)="scrollY(templateCategorias, 100)" | 70 | (mousedown)="scrollY(templateCategorias, 100)" |
| 71 | (mouseup)="mouseup()" | 71 | (mouseup)="mouseup()" |
| 72 | (mouseleave)="mouseup()"> | 72 | (mouseleave)="mouseup()"> |
| 73 | </div> | 73 | </div> |
| 74 | </div> | 74 | </div> |
| 75 | </div> | 75 | </div> |
| 76 | <!-- LISTA DE ARTICULOS --> | 76 | <!-- LISTA DE ARTICULOS --> |
| 77 | <div class="col-7 col-sm-9 col-xl-10 pb-3 h-80 align-self-center scroll-y-visible"> | 77 | <div class="col-7 col-sm-9 col-xl-10 pb-3 h-80 align-self-center scroll-y-visible"> |
| 78 | <div class="row row-cols-1 row-cols-sm-3 row-cols-xl-6"> | 78 | <div class="row row-cols-1 row-cols-sm-3 row-cols-xl-6"> |
| 79 | <!-- ARTICULO --> | 79 | <!-- ARTICULO --> |
| 80 | <div | 80 | <div |
| 81 | class="col px-2 my-1 my-md-3 h-auto" | 81 | class="col px-2 my-1 my-md-3 h-auto" |
| 82 | *ngFor="let articulo of auxArticulos | slice:0:showQuantity;"> | 82 | *ngFor="let articulo of auxArticulos | slice:0:showQuantity;"> |
| 83 | <div class="swing-in-top-fwd card h-auto"> | 83 | <div class="swing-in-top-fwd card h-auto"> |
| 84 | <img | 84 | <img |
| 85 | draggable="false" | 85 | draggable="false" |
| 86 | ondragstart="return false;" | 86 | ondragstart="return false;" |
| 87 | (contextmenu)="false" | 87 | (contextmenu)="false" |
| 88 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}" | 88 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}" |
| 89 | class="card-img-top h-55 shadow-sm rounded-sm"> | 89 | class="card-img-top h-55 rounded-sm"> |
| 90 | <div class="row mx-0 py-1 h-auto justify-content-center"> | 90 | <div class="row mx-0 py-1 h-auto justify-content-center"> |
| 91 | <p class="col-12 px-1 h6 h-auto text-primary text-center">{{articulo.DetArt}}</p> | 91 | <p class="col-12 px-1 h6 h-auto text-primary text-center">{{articulo.DetArt}}</p> |
| 92 | <p class="col-12 px-1 h-auto text-center line-height-sm"> | 92 | <p class="col-12 px-1 h-auto text-center line-height-sm"> |
| 93 | <small>{{articulo.DET_LAR}}</small> | 93 | <small>{{articulo.DET_LAR}}</small> |
| 94 | </p> | 94 | </p> |
| 95 | <div class="col-12 px-1 align-self-end btn-effect h-auto"> | 95 | <div class="col-12 px-1 align-self-end btn-effect h-auto"> |
| 96 | <div | 96 | <div |
| 97 | [ngClass]="{'bg-secondary': articulo.promo}" | 97 | [ngClass]="{'bg-secondary': articulo.promo}" |
| 98 | class="row mx-0 justify-content-between bg-primary badge-pill" | 98 | class="row mx-0 justify-content-between bg-primary badge-pill" |
| 99 | (click)="elegirArticulo(articulo)"> | 99 | (click)="elegirArticulo(articulo)"> |
| 100 | <div class="col px-0 align-self-center text-white text-right"> | 100 | <div class="col px-0 align-self-center text-white text-right"> |
| 101 | {{articulo.PreVen | currency}} | 101 | {{articulo.PreVen | currency}} |
| 102 | </div> | 102 | </div> |
| 103 | <div class="col-5 px-0"> | 103 | <div class="col-5 px-0"> |
| 104 | <img | 104 | <img |
| 105 | draggable="false" | 105 | draggable="false" |
| 106 | ondragstart="return false;" | 106 | ondragstart="return false;" |
| 107 | (contextmenu)="false" | 107 | (contextmenu)="false" |
| 108 | class="d-block ml-auto py-1 icon-30" | 108 | class="d-block ml-auto py-1 icon-30" |
| 109 | src="assets/img/ir.svg"> | 109 | src="assets/img/ir.svg"> |
| 110 | </div> | 110 | </div> |
| 111 | </div> | 111 | </div> |
| 112 | </div> | 112 | </div> |
| 113 | </div> | 113 | </div> |
| 114 | </div> | 114 | </div> |
| 115 | </div> | 115 | </div> |
| 116 | </div> | 116 | </div> |
| 117 | <!-- BOTON VER MAS --> | 117 | <!-- BOTON VER MAS --> |
| 118 | <div class="row mx-0"> | 118 | <div class="row mx-0"> |
| 119 | <div | 119 | <div |
| 120 | *ngIf="showQuantity <= auxArticulos.slice(0, showQuantity).length" | 120 | *ngIf="showQuantity <= auxArticulos.slice(0, showQuantity).length" |
| 121 | class="col-12 px-0 mb-2"> | 121 | class="col-12 px-0 mb-2"> |
| 122 | <button | 122 | <button |
| 123 | (click)="increaseShow()" | 123 | (click)="increaseShow()" |
| 124 | class="btn btn-block btn-outline-primary"> | 124 | class="btn btn-block btn-outline-primary"> |
| 125 | Ver Más | 125 | Ver Más |
| 126 | </button> | 126 | </button> |
| 127 | </div> | 127 | </div> |
| 128 | </div> | 128 | </div> |
| 129 | </div> | 129 | </div> |
| 130 | </div> | 130 | </div> |
| 131 | </div> | 131 | </div> |
| 132 | </div> | 132 | </div> |
| 133 | <!-- FOOTER CARRITO DE COMPRAS --> | 133 | <!-- FOOTER CARRITO DE COMPRAS --> |
| 134 | <div class="row w-90 mx-auto h-auto justify-content-center"> | 134 | <div class="row w-90 mx-auto h-auto justify-content-center"> |
| 135 | <div class="col-12 h-75 px-0 border border-primary rounded"> | 135 | <div class="col-12 h-75 px-0 border border-primary rounded"> |
| 136 | <!-- CABECERA --> | 136 | <!-- CABECERA --> |
| 137 | <div class="row mx-0 h-15 border-bottom border-primary"> | 137 | <div class="row mx-0 h-15 border-bottom border-primary"> |
| 138 | <p class="col align-self-center text-truncate"><small>ARTÍCULOS EN TÚ CARRITO DE COMPRAS</small></p> | 138 | <p class="col align-self-center text-truncate"><small>ARTÍCULOS EN TÚ CARRITO DE COMPRAS</small></p> |
| 139 | </div> | 139 | </div> |
| 140 | <!-- CUERPO --> | 140 | <!-- CUERPO --> |
| 141 | <div class="row h-85 mx-0 justify-content-around"> | 141 | <div class="row h-85 mx-0 justify-content-around"> |
| 142 | <!-- BOTON SCROLL IZQUIERDA --> | 142 | <!-- BOTON SCROLL IZQUIERDA --> |
| 143 | <div *ngIf="articuloService.carrito.length" class="col-auto btn-effect h-20 align-self-center"> | 143 | <div *ngIf="articuloService.carrito.length" class="col-auto btn-effect h-20 align-self-center"> |
| 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 rotate-180-neg" | 148 | class="icon-30 rotate-180-neg" |
| 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 | <!-- CARRITO --> | 154 | <!-- CARRITO --> |
| 155 | <div class="col-6 col-sm-8 col-md-9 col-lg-10 h-100"> | 155 | <div class="col-6 col-sm-8 col-md-9 col-lg-10 h-100"> |
| 156 | <div #templateCarrito class="row flex-row flex-nowrap h-100 mx-0 my-2 scroll-x"> | 156 | <div #templateCarrito class="row flex-row flex-nowrap h-100 mx-0 my-2 scroll-x"> |
| 157 | <!-- MENSAJE DE ADVERTENCIA --> | 157 | <!-- MENSAJE DE ADVERTENCIA --> |
| 158 | <div *ngIf="!articuloService.carrito.length" class="col h-100"> | 158 | <div *ngIf="!articuloService.carrito.length" class="col h-100"> |
| 159 | <p class="text-center py-5">No hay articulos en el carrito</p> | 159 | <p class="text-center py-5">No hay articulos en el carrito</p> |
| 160 | </div> | 160 | </div> |
| 161 | <!-- ARTICULOS --> | 161 | <!-- ARTICULOS --> |
| 162 | <div | 162 | <div |
| 163 | class="col-10 col-sm-4 col-lg-2 px-2 px-xl-4 align-self-center border-right border-primary" | 163 | class="col-10 col-sm-4 col-lg-2 px-2 px-xl-4 align-self-center border-right border-primary" |
| 164 | *ngFor="let articulo of articuloService.carrito; let i = index;"> | 164 | *ngFor="let articulo of articuloService.carrito; let i = index;"> |
| 165 | <div class="swing-in-top-fwd"> | 165 | <div class="swing-in-top-fwd"> |
| 166 | <img | 166 | <img |
| 167 | draggable="false" | 167 | draggable="false" |
| 168 | ondragstart="return false;" | 168 | ondragstart="return false;" |
| 169 | (contextmenu)="false" | 169 | (contextmenu)="false" |
| 170 | class="d-block img-fluid p-2 mx-auto rounded" | 170 | class="d-block img-fluid p-2 mx-auto rounded" |
| 171 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}"> | 171 | src="{{urlImagenes}}{{articulo.imagenes[0].imagen}}"> |
| 172 | <p class="d-block mt-auto text-center text-primary text-truncate"> | 172 | <p class="d-block mt-auto text-center text-primary text-truncate"> |
| 173 | <small>{{articulo.DetArt}}</small> | 173 | <small>{{articulo.DetArt}}</small> |
| 174 | </p> | 174 | </p> |
| 175 | </div> | 175 | </div> |
| 176 | </div> | 176 | </div> |
| 177 | </div> | 177 | </div> |
| 178 | </div> | 178 | </div> |
| 179 | <!-- BOTON SCROLL DERECHA --> | 179 | <!-- BOTON SCROLL DERECHA --> |
| 180 | <div *ngIf="articuloService.carrito.length" class="col-auto btn-effect h-20 align-self-center"> | 180 | <div *ngIf="articuloService.carrito.length" class="col-auto btn-effect h-20 align-self-center"> |
| 181 | <img | 181 | <img |
| 182 | draggable="false" | 182 | draggable="false" |
| 183 | ondragstart="return false;" | 183 | ondragstart="return false;" |
| 184 | (contextmenu)="false" | 184 | (contextmenu)="false" |
| 185 | class="icon-30" | 185 | class="icon-30" |
| 186 | src="assets/img/ir-fondo-color.svg" | 186 | src="assets/img/ir-fondo-color.svg" |
| 187 | (mousedown)="scrollX(templateCarrito, 100)" | 187 | (mousedown)="scrollX(templateCarrito, 100)" |
| 188 | (mouseup)="mouseup()" | 188 | (mouseup)="mouseup()" |
| 189 | (mouseleave)="mouseup()"> | 189 | (mouseleave)="mouseup()"> |
| 190 | </div> | 190 | </div> |
| 191 | </div> | 191 | </div> |
| 192 | </div> | 192 | </div> |
| 193 | <!-- VER CARRITO --> | 193 | <!-- VER CARRITO --> |
| 194 | <div class="col-auto p-0 mt-2 ml-auto h-20"> | 194 | <div class="col-auto p-0 mt-2 ml-auto h-20"> |
| 195 | <div | 195 | <div |
| 196 | class="btn-effect col-auto align-self-center px-0 bg-white" | 196 | class="btn-effect col-auto align-self-center px-0 bg-white" |
| 197 | [routerLink]="['/carrito']"> | 197 | [routerLink]="['/carrito']"> |
| 198 | <div class="row mx-0 bg-light"> | 198 | <div class="row mx-0 bg-light"> |
| 199 | <div class="col-auto align-self-center text-primary">VER CARRITO</div> | 199 | <div class="col-auto align-self-center text-primary">VER CARRITO</div> |
| 200 | <div class="col-auto p-0 bg-primary d-none d-sm-block"> | 200 | <div class="col-auto p-0 bg-primary d-none d-sm-block"> |
| 201 | <img | 201 | <img |
| 202 | draggable="false" | 202 | draggable="false" |
| 203 | ondragstart="return false;" | 203 | ondragstart="return false;" |
| 204 | (contextmenu)="false" | 204 | (contextmenu)="false" |
| 205 | class="p-2 icon-40" | 205 | class="p-2 icon-40" |
| 206 | src="assets/img/carrito.svg"> | 206 | src="assets/img/carrito.svg"> |
| 207 | </div> | 207 | </div> |
| 208 | </div> | 208 | </div> |
| 209 | </div> | 209 | </div> |
| 210 | </div> | 210 | </div> |
| 211 | </div> | 211 | </div> |
| 212 | </div> | 212 | </div> |
| 213 | 213 | ||
| 214 | </div> | 214 | </div> |
| 215 | 215 |