promocion.component.html
1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="modal-header bg-primary rounded-top">
<div class="col-12">
<div class="row justify-content-between" *ngIf="articulosPromo.length">
<div>
<h3 class="ml-2 text-white mt-2">{{articulosPromo[0].DetArt}}</h3>
</div>
<div>
<div
class="row mr-3 justify-content-between bg-white badge-pill"
(click)="elegirPromo(articulosPromo[0])">
<div class="col px-0 align-self-center text-primary">
<p class="font-weight-bold">{{articulosPromo[0].PreVen | currency}}</p>
</div>
<div class="col-3 px-0">
<img
draggable="false"
ondragstart="return false;"
(contextmenu)="false"
class="d-block ml-auto py-1 icon-30 mr-2 pt-2"
src="assets/img/ir-color.svg">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-body bg-primary rounded-bottom" *ngIf="articulosPromo.length">
<div class="row">
<div class="col-9">
<p class="text-white"><small>¿TE GUSTARÍA LLEVAR ESTE ARTÍCULO</small></p>
<h1 class="text-white mb-4">en un combo?</h1>
<div *ngFor="let promo of promociones">
<div class="mx-0 mb-2 bg-white badge-pill text-primary" (click)="elegirPromo(promo)">
<div class="row mx-0 justify-content-between">
<p class="ml-4 text-truncate">{{promo.DetArt}}</p>
<p class="mr-4 font-weight-bold">{{promo.PreVen | currency}}</p>
</div>
</div>
</div>
</div>
<div class="col-3 rounded-circle">
<img
draggable="false"
ondragstart="return false;"
(contextmenu)="false"
src="{{urlImagenes}}{{articulosPromo[0].imagenes[0].imagen}}"
onerror="this.src='assets/img/image-not-found.jpg'"
class="card-img-top img-fluid rounded-circle">
</div>
</div>
</div>