|
@@ -20,70 +20,28 @@
|
|
|
Productos
|
|
|
</ion-item-divider>
|
|
|
<ion-list>
|
|
|
- <ion-item (doubleTap)="openOptions()">
|
|
|
+ <ion-item *ngFor="let item of getCart()" (doubleTap)="openOptions()">
|
|
|
<ion-avatar item-left>
|
|
|
<img src="./assets/images/product.png" />
|
|
|
</ion-avatar>
|
|
|
- <h2>Producto 001</h2>
|
|
|
- <p>Precio: </p>
|
|
|
- <p>Cantidad:</p>
|
|
|
- <p>Subtotal:</p>
|
|
|
+ <h2>{{ item.name }}</h2>
|
|
|
+ <p>
|
|
|
+ <strong>Precio:</strong>
|
|
|
+ {{ item.price }}
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <strong>Cantidad:</strong>
|
|
|
+ {{ item.qty }}:
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <strong>Subtotal:</strong>
|
|
|
+ {{ item.subtotal }}
|
|
|
+ </p>
|
|
|
<div item-right>
|
|
|
- <button ion-button icon-only>
|
|
|
+ <button ion-button icon-only color="light">
|
|
|
<i class="fa fa-plus"></i>
|
|
|
</button>
|
|
|
- <button ion-button icon-only>
|
|
|
- <i class="fa fa-minus"></i>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </ion-item>
|
|
|
- <ion-item>
|
|
|
- <ion-avatar item-left>
|
|
|
- <img src="./assets/images/product.png" />
|
|
|
- </ion-avatar>
|
|
|
- <h2>Producto 002</h2>
|
|
|
- <p>Precio: </p>
|
|
|
- <p>Cantidad:</p>
|
|
|
- <p>Subtotal:</p>
|
|
|
- <div item-right>
|
|
|
- <button ion-button icon-only>
|
|
|
- <i class="fa fa-plus"></i>
|
|
|
- </button>
|
|
|
- <button ion-button icon-only>
|
|
|
- <i class="fa fa-minus"></i>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </ion-item>
|
|
|
- <ion-item>
|
|
|
- <ion-avatar item-left>
|
|
|
- <img src="./assets/images/product.png" />
|
|
|
- </ion-avatar>
|
|
|
- <h2>Producto 003</h2>
|
|
|
- <p>Precio: </p>
|
|
|
- <p>Cantidad:</p>
|
|
|
- <p>Subtotal:</p>
|
|
|
- <div item-right>
|
|
|
- <button ion-button icon-only>
|
|
|
- <i class="fa fa-plus"></i>
|
|
|
- </button>
|
|
|
- <button ion-button icon-only>
|
|
|
- <i class="fa fa-minus"></i>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </ion-item>
|
|
|
- <ion-item>
|
|
|
- <ion-avatar item-left>
|
|
|
- <img src="./assets/images/product.png" />
|
|
|
- </ion-avatar>
|
|
|
- <h2>Producto 005</h2>
|
|
|
- <p>Precio: </p>
|
|
|
- <p>Cantidad:</p>
|
|
|
- <p>Subtotal:</p>
|
|
|
- <div item-right>
|
|
|
- <button ion-button icon-only>
|
|
|
- <i class="fa fa-plus"></i>
|
|
|
- </button>
|
|
|
- <button ion-button icon-only>
|
|
|
+ <button ion-button icon-only color="light">
|
|
|
<i class="fa fa-minus"></i>
|
|
|
</button>
|
|
|
</div>
|
|
@@ -93,7 +51,7 @@
|
|
|
Total
|
|
|
</ion-item-divider>
|
|
|
<ion-item>
|
|
|
- <ion-input type="number" value="0" readonly></ion-input>
|
|
|
+ <ion-input type="number" value="{{ getTotal() }}" readonly></ion-input>
|
|
|
</ion-item>
|
|
|
</form>
|
|
|
|