promocion.component.html 1.86 KB
<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="text-truncate"><small>{{promo.DetArt}}</small></p>
            <p class="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>