Commit af897ec2 by muhsin

fixed product list, cart total, map back button

parent 84688180
<div class="nav_header"> <div class="nav_header">
<button <button class="nav_btn nav_back floatLeft" (click)="goBack()">
class="nav_btn nav_back floatLeft"
(click)="goBack()"
*ngIf="type === 0"
>
<img src="../assets/Group17_2.png" /> <img src="../assets/Group17_2.png" />
</button> </button>
<div class="nav_title floatLeft"> <div class="nav_title floatLeft">
......
...@@ -408,6 +408,10 @@ ...@@ -408,6 +408,10 @@
.fav { .fav {
background-image: url('../../assets/Group56_2.png'); background-image: url('../../assets/Group56_2.png');
} }
.fav_active {
background-image: url('../../assets/heart.png');
}
.share { .share {
background-image: url('../../assets/Group57_2.png'); background-image: url('../../assets/Group57_2.png');
} }
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<ul <!-- <ul
[class.grid_view]="onGrid" [class.grid_view]="onGrid"
*ngIf="prodService.product && prodService.product.length > 0" *ngIf="prodService.product && prodService.product.length > 0"
> >
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
> >
</p> </p>
</li> </li>
</ul> </ul> -->
<div class="no-result-wrapper" *ngIf="prodService.product.length === 0"> <div class="no-result-wrapper" *ngIf="prodService.product.length === 0">
<img src="../../assets/basket.png" /> <img src="../../assets/basket.png" />
......
...@@ -189,7 +189,7 @@ export class CartsService { ...@@ -189,7 +189,7 @@ export class CartsService {
} }
addCount(index) { addCount(index) {
const qty = this.carts[index].qty + 1; const qty = Number(this.carts[index].qty) + 1; // Converts string to Number
this.cartTotal = 0; this.cartTotal = 0;
this.carts[index].qty = qty; this.carts[index].qty = qty;
this.afs this.afs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment