Merge branch 'adarsh' into 'master'
Adarsh
See merge request !50
Showing
... | @@ -3,42 +3,45 @@ | ... | @@ -3,42 +3,45 @@ |
<div class="cart_head"> | <div class="cart_head"> | ||
<div class="nav_header"> | <div class="nav_header"> | ||
<button class="nav_btn nav_back_white floatLeft" (click)="goBack()"> | <button class="nav_btn nav_back_white floatLeft" (click)="goBack()"> | ||
<img src="../assets/arrow_white.png"> | <img src="../assets/arrow_white.png" /> | ||
</button> | </button> | ||
<div class="nav_title floatLeft"> | <div class="nav_title floatLeft"> | ||
<h4>CART</h4> | <h4>CART</h4> | ||
</div> | </div> | ||
<button class="nav_btn floatRight"> | <button class="nav_btn floatRight"></button> | ||
</button> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</div> | </div> | ||
<div class="cart_menu_header"> | <div class="cart_menu_header"> | ||
<ul> | <ul> | ||
<li class="textCenter active" [class.active]="currentIndex == 0">CART</li> | <li class="textCenter active" [class.active]="currentIndex == 0"> | ||
CART | |||
</li> | |||
<li class="textCenter"> | <li class="textCenter"> | ||
<hr> | <hr /> | ||
</li> | |||
<li class="textCenter" [class.active]="currentIndex == 1"> | |||
CHECKOUT | |||
</li> | </li> | ||
<li class="textCenter" [class.active]="currentIndex == 1">CHECKOUT</li> | |||
<li class="textCenter"> | <li class="textCenter"> | ||
<hr> | <hr /> | ||
</li> | </li> | ||
<li class="textCenter" [class.active]="currentIndex == 2">FINISH</li> | <li class="textCenter" [class.active]="currentIndex == 2">FINISH</li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
<div class="cart_content"> | <div class="cart_content"> | ||
<div class="no-items-wrapper"> | <ion-slides | ||
<img src="../../assets/noitem.png"> | pager="false" | ||
<h1>There is no products added</h1> | [options]="cartwizard" | ||
<button>Shop Now</button> | (ionSlideDidChange)="slideChanged()" | ||
</div> | > | ||
<ion-slides pager="false" [options]="cartwizard" (ionSlideDidChange)="slideChanged()"> | |||
<ion-slide> | <ion-slide> | ||
<div class="cart_list" *ngIf="cartService.carts"> | <div class="cart_list" *ngIf="cartService.carts"> | ||
<ul *ngIf="cartService.carts.length > 0"> | <ul *ngIf="cartService.carts.length > 0"> | ||
<li *ngFor="let carts of cartService.carts; let i= index"> | <li *ngFor="let carts of cartService.carts; let i= index"> | ||
<div class="close" (click)="cartService.removeItem(i)"></div> | <div class="close" (click)="cartService.removeItem(i)"></div> | ||
<div class="cart_image"><img [src]="carts.image" onerror="this.src=''" /></div> | <div class="cart_image"> | ||
<img [src]="carts.image" onerror="this.src=''" /> | |||
</div> | |||
<div class="cart_detail"> | <div class="cart_detail"> | ||
<h4>{{carts.prodName}}</h4> | <h4>{{carts.prodName}}</h4> | ||
<h4>{{carts.size}}, {{carts.color}}</h4> | <h4>{{carts.size}}, {{carts.color}}</h4> | ||
... | @@ -47,7 +50,9 @@ | ... | @@ -47,7 +50,9 @@ |
<div class="cart_count"> | <div class="cart_count"> | ||
<div class="add" (click)="cartService.addCount(i)">+</div> | <div class="add" (click)="cartService.addCount(i)">+</div> | ||
<div class="count">{{carts.qty}}</div> | <div class="count">{{carts.qty}}</div> | ||
<div class="remove" (click)="cartService.removeCount(i)">-</div> | <div class="remove" (click)="cartService.removeCount(i)"> | ||
- | |||
</div> | |||
</div> | </div> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
</li> | </li> | ||
... | @@ -62,17 +67,29 @@ | ... | @@ -62,17 +67,29 @@ |
</ion-col> | </ion-col> | ||
</ion-row> | </ion-row> | ||
</div> | </div> | ||
<div | |||
class="no-items-wrapper" | |||
*ngIf="cartService.carts.length == 0" | |||
> | |||
<img src="../../assets/noitem.png" /> | |||
<h1>There is no products added</h1> | |||
<button (click)="goToPage('home')">Shop Now</button> | |||
</div> | |||
</div> | </div> | ||
</ion-slide> | </ion-slide> | ||
<ion-slide> | <ion-slide> | ||
<div class="checkout_list"> | <div class="checkout_list"> | ||
<h5> | <h5> | ||
<span class="floatLeft">ITEMS</span> | <span class="floatLeft">ITEMS</span> | ||
<span class="floatRight" *ngIf="cartService.cartTotal">A$ | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
{{cartService.cartTotal}}</span> | >A$ {{cartService.cartTotal}}</span | ||
> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</h5> | </h5> | ||
<ion-grid class="p0" *ngIf="cartService.carts && cartService.carts.length > 0"> | <ion-grid | ||
class="p0" | |||
*ngIf="cartService.carts && cartService.carts.length > 0" | |||
> | |||
<ion-row *ngFor="let carts of cartService.carts"> | <ion-row *ngFor="let carts of cartService.carts"> | ||
<ion-col size="6" class="p0"> | <ion-col size="6" class="p0"> | ||
<h6 class="textLeft">{{carts.prodName}}</h6> | <h6 class="textLeft">{{carts.prodName}}</h6> | ||
... | @@ -81,11 +98,13 @@ | ... | @@ -81,11 +98,13 @@ |
<h6 class="textRight"><strong>{{carts.qty}} X</strong></h6> | <h6 class="textRight"><strong>{{carts.qty}} X</strong></h6> | ||
</ion-col> | </ion-col> | ||
<ion-col size="4" class="p0"> | <ion-col size="4" class="p0"> | ||
<h6 class="textRight"><strong>A$ {{carts.price}}</strong></h6> | <h6 class="textRight"> | ||
<strong>A$ {{carts.price}}</strong> | |||
</h6> | |||
</ion-col> | </ion-col> | ||
</ion-row> | </ion-row> | ||
</ion-grid> | </ion-grid> | ||
<hr> | <hr /> | ||
<h5> | <h5> | ||
<span class="floatLeft">DELIVERY</span> | <span class="floatLeft">DELIVERY</span> | ||
<span class="floatRight" (click)="istoggle()">EDIT</span> | <span class="floatRight" (click)="istoggle()">EDIT</span> | ||
... | @@ -95,19 +114,27 @@ | ... | @@ -95,19 +114,27 @@ |
<ion-row> | <ion-row> | ||
<ion-col class="p0"> | <ion-col class="p0"> | ||
<h6> | <h6> | ||
{{custAddress.building}},<br /> {{custAddress.landmark}},<br /> {{custAddress.address}} | {{custAddress.building}},<br /> | ||
{{custAddress.landmark}},<br /> | |||
{{custAddress.address}} | |||
</h6> | </h6> | ||
</ion-col> | </ion-col> | ||
</ion-row> | </ion-row> | ||
</ion-grid> | </ion-grid> | ||
<hr> | <hr /> | ||
<h5> | <h5> | ||
<span class="floatLeft">PAYMENT</span> | <span class="floatLeft">PAYMENT</span> | ||
<span class="floatRight">CHANGE</span> | <span class="floatRight">CHANGE</span> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
</h5> | </h5> | ||
<div class="payment_method"> | <div class="payment_method"> | ||
<input type="radio" name="payments" id="cod" name="radio-group" checked="true"> | <input | ||
type="radio" | |||
name="payments" | |||
id="cod" | |||
name="radio-group" | |||
checked="true" | |||
/> | |||
<label for="paypal"> | <label for="paypal"> | ||
<p>COD</p> | <p>COD</p> | ||
</label> | </label> | ||
... | @@ -152,32 +179,42 @@ | ... | @@ -152,32 +179,42 @@ |
</li> | </li> | ||
</ul> | </ul> | ||
</div> --> | </div> --> | ||
<hr> | <hr /> | ||
<div class="coupon_code"> | <div class="coupon_code"> | ||
<input class="" placeholder="COUPON CODE" #promo><button class="add_btn" (click)="promoApply(promo.value)">ADD</button> | <input class="" placeholder="COUPON CODE" #promo /><button | ||
class="add_btn" | |||
(click)="promoApply(promo.value)" | |||
> | |||
ADD | |||
</button> | |||
<br /> | <br /> | ||
<h6>GET50</h6> | <h6>GET50</h6> | ||
<span *ngIf="discountApplied" style="color: red">Promocode applied successfully </span> | <span *ngIf="discountApplied" style="color: red" | ||
>Promocode applied successfully | |||
</span> | |||
</div> | </div> | ||
<br /> | <br /> | ||
<h6> | <h6> | ||
<span class="floatLeft">PRODUCT COST</span> | <span class="floatLeft">PRODUCT COST</span> | ||
<span class="floatRight" *ngIf="cartService.cartTotal">A$ | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
{{cartService.cartTotal}}</span> | >A$ {{cartService.cartTotal}}</span | ||
> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</h6> | </h6> | ||
<h6> | <h6> | ||
<span class="floatLeft">DELIVERY CHARGE</span> | <span class="floatLeft">DELIVERY CHARGE</span> | ||
<span class="floatRight" *ngIf="cartService.cartTotal">A$ | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
{{getDeliveryCharge(cartService.cartTotal)}}</span> | >A$ {{getDeliveryCharge(cartService.cartTotal)}}</span | ||
> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</h6> | </h6> | ||
<h6> | <h6> | ||
<span class="floatLeft">GST/TAX</span> | <span class="floatLeft">GST/TAX</span> | ||
<span class="floatRight" *ngIf="cartService.cartTotal">A$ | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
{{getTax(cartService.cartTotal)}}</span> | >A$ {{getTax(cartService.cartTotal)}}</span | ||
> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</h6> | </h6> | ||
<h6 *ngIf="discountApplied"> | <h6 *ngIf="discountApplied"> | ||
... | @@ -185,14 +222,15 @@ | ... | @@ -185,14 +222,15 @@ |
<span class="floatRight">(-) A$ {{discount}}</span> | <span class="floatRight">(-) A$ {{discount}}</span> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
</h6> | </h6> | ||
<hr> | <hr /> | ||
<div class="total_div"> | <div class="total_div"> | ||
<ion-row> | <ion-row> | ||
<ion-col> | <ion-col> | ||
<p class="textLeft">Total Price:</p> | <p class="textLeft">Total Price:</p> | ||
</ion-col> | </ion-col> | ||
<ion-col> | <ion-col> | ||
<p class="textRight" *ngIf="cartService.cartTotal">A$ {{getTotal(cartService.cartTotal)}} | <p class="textRight" *ngIf="cartService.cartTotal"> | ||
A$ {{getTotal(cartService.cartTotal)}} | |||
</p> | </p> | ||
</ion-col> | </ion-col> | ||
</ion-row> | </ion-row> | ||
... | @@ -201,27 +239,39 @@ | ... | @@ -201,27 +239,39 @@ |
</ion-slide> | </ion-slide> | ||
<ion-slide> | <ion-slide> | ||
<div class="order_placed_div"> | <div class="order_placed_div"> | ||
<img src="../assets/[email protected]"> | <img src="../assets/[email protected]" /> | ||
<h4>Order Placed</h4> | <h4>Order Placed</h4> | ||
<p>{{bookDate}}</p> | <p>{{bookDate}}</p> | ||
<h3>The product will be delivered in</h3> | <h3>The product will be delivered in</h3> | ||
<h1>60:00 Mins</h1> | <h1>60:00 Mins</h1> | ||
<button class="view_order" (click)="goToPage('myorder')">VIEW ORDERS</button><br> | <button class="view_order" (click)="goToPage('myorder')"> | ||
VIEW ORDERS</button | |||
><br /> | |||
<button class="home_btn" (click)="goToPage('home')">HOME</button> | <button class="home_btn" (click)="goToPage('home')">HOME</button> | ||
</div> | </div> | ||
</ion-slide> | </ion-slide> | ||
</ion-slides> | </ion-slides> | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
</ion-content> | </ion-content> | ||
<ion-footer> | <ion-footer> | ||
<div class="footer_btnbay" *ngIf="cartService.carts && cartService.carts.length > 0" [hidden]="currentIndex != 0"> | <div | ||
<div class="continue" (click)="goToPage('productlist')">CONTINUE SHOPING</div> | class="footer_btnbay" | ||
*ngIf="cartService.carts && cartService.carts.length > 0" | |||
[hidden]="currentIndex != 0" | |||
> | |||
<div class="continue" (click)="goToPage('productlist')"> | |||
CONTINUE SHOPING | |||
</div> | |||
<div class="checkout" (click)="next(1)">CHECKOUT</div> | <div class="checkout" (click)="next(1)">CHECKOUT</div> | ||
</div> | </div> | ||
<div class="footer_btn" *ngIf="cartService.carts && cartService.carts.length > 0" [hidden]="currentIndex != 1" (click)="next(2);"> | <div | ||
class="footer_btn" | |||
*ngIf="cartService.carts && cartService.carts.length > 0" | |||
[hidden]="currentIndex != 1" | |||
(click)="next(2);" | |||
> | |||
PAY | PAY | ||
</div> | </div> | ||
<!-- <div class="footer_btn" [hidden]="currentIndex != 2" (click)="finishpop()"> | <!-- <div class="footer_btn" [hidden]="currentIndex != 2" (click)="finishpop()"> | ||
... | @@ -237,8 +287,11 @@ | ... | @@ -237,8 +287,11 @@ |
<div *ngIf="isShow" [@slideInOut]> | <div *ngIf="isShow" [@slideInOut]> | ||
<div class="nav_header"> | <div class="nav_header"> | ||
<button class="nav_btn nav_back floatLeft" (click)="istoggle(); setAddress()"> | <button | ||
<img src="../assets/Group17_2.png"> | class="nav_btn nav_back floatLeft" | ||
(click)="istoggle(); setAddress()" | |||
> | |||
<img src="../assets/Group17_2.png" /> | |||
</button> | </button> | ||
<div class="nav_title floatLeft"> | <div class="nav_title floatLeft"> | ||
<h4>CHANGE LOCATION</h4> | <h4>CHANGE LOCATION</h4> | ||
... | @@ -246,22 +299,41 @@ | ... | @@ -246,22 +299,41 @@ |
<div class="clear"></div> | <div class="clear"></div> | ||
</div> | </div> | ||
<ion-content class="sort_wrappper"> | <ion-content class="sort_wrappper"> | ||
<agm-map [zoom]="20" [latitude]="lat" [longitude]="lng" [disableDefaultUI]="false" [zoomControl]="false" [backgroundColor]="'rgba(29, 27, 130,0.2)'"> | <agm-map | ||
[zoom]="20" | |||
[latitude]="lat" | |||
[longitude]="lng" | |||
[disableDefaultUI]="false" | |||
[zoomControl]="false" | |||
[backgroundColor]="'rgba(29, 27, 130,0.2)'" | |||
> | |||
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker> | <agm-marker [latitude]="lat" [longitude]="lng"></agm-marker> | ||
</agm-map> | </agm-map> | ||
<div class="add_address_wrapper"> | <div class="add_address_wrapper"> | ||
<h5> | <h5> | ||
<span class="floatLeft">NEW ADDRESS</span> | <span class="floatLeft">NEW ADDRESS</span> | ||
<span class="floatRight" (click)="istoggle(); goToPage('nearby')">ADD NEW</span> | <span class="floatRight" (click)="istoggle(); goToPage('nearby')" | ||
>ADD NEW</span | |||
> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</h5> | </h5> | ||
<ul *ngIf="addressService.addressList && addressService.addressList.length > 0"> | <ul | ||
*ngIf="addressService.addressList && addressService.addressList.length > 0" | |||
> | |||
<li *ngFor="let address of addressService.addressList; let i = index"> | <li *ngFor="let address of addressService.addressList; let i = index"> | ||
<div class="floatLeft">{{address.default}} | <div class="floatLeft"> | ||
<input class="styled-checkbox" name="addressId" id="styled-checkbox-{{i}}" type="radio" (click)="setDefault(address.addressId, i)" [value]="address.addressId" #addressType [checked]="address.defaultVal == 1"> | {{address.default}} | ||
<label for="styled-checkbox-{{i}}"> {{address.addressType}} | <input | ||
</label> | class="styled-checkbox" | ||
name="addressId" | |||
id="styled-checkbox-{{i}}" | |||
type="radio" | |||
(click)="setDefault(address.addressId, i)" | |||
[value]="address.addressId" | |||
#addressType | |||
[checked]="address.defaultVal == 1" | |||
/> | |||
<label for="styled-checkbox-{{i}}"> {{address.addressType}} </label> | |||
</div> | </div> | ||
<div class="floatLeft"> | <div class="floatLeft"> | ||
<p> | <p> | ||
... | @@ -272,6 +344,5 @@ | ... | @@ -272,6 +344,5 @@ |
</li> | </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
</ion-content> | </ion-content> | ||
</div> | </div> |
... | @@ -20,10 +20,7 @@ | ... | @@ -20,10 +20,7 @@ |
<div class="featured_badge" *ngIf="product.featured">Featured</div> | <div class="featured_badge" *ngIf="product.featured">Featured</div> | ||
<ion-slides pager="true" [options]="bannerOptions" *ngIf="slideData"> | <ion-slides pager="true" [options]="bannerOptions" *ngIf="slideData"> | ||
<ion-slide *ngFor="let prodImg of slideData"> | <ion-slide *ngFor="let prodImg of slideData"> | ||
<img | <img [src]="prodImg" onerror="this.src='../assets/[email protected]'" /> | ||
[src]="prodImg" | |||
onerror="this.src='../assets/[email protected]'" | |||
/> | |||
</ion-slide> | </ion-slide> | ||
<!-- <ion-slide> | <!-- <ion-slide> | ||
<img | <img | ||
... | @@ -45,10 +42,13 @@ | ... | @@ -45,10 +42,13 @@ |
<h3>{{product.prodName}}</h3> | <h3>{{product.prodName}}</h3> | ||
<p> | <p> | ||
<strong | <strong | ||
><span><img src="../assets/Path61_2.png"/></span>0</strong | ><span><img src="../assets/Path61_2.png"/></span | ||
>{{product.rating}}</strong | |||
> {{product.category}}, {{product.subCate}} | > {{product.category}}, {{product.subCate}} | ||
<br /> | <br /> | ||
<span *ngFor="let tag of product.tag">#{{tag}} </span> | <span *ngFor="let tag of product.tag" | ||
><span *ngIf="tag !=='No-Tag'">#{{tag}} </span></span | |||
> | |||
</p> | </p> | ||
</ion-col> | </ion-col> | ||
<ion-col size="4"> | <ion-col size="4"> | ||
... | @@ -265,6 +265,12 @@ | ... | @@ -265,6 +265,12 @@ |
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="loader" *ngIf="loader"> | |||
<div class="lds-ripple"> | |||
<div></div> | |||
<div></div> | |||
</div> | |||
</div> | |||
</ion-content> | </ion-content> | ||
<ion-footer> | <ion-footer> | ||
<div class="footer_div"> | <div class="footer_div"> | ||
... | ... |
... | @@ -3,22 +3,34 @@ | ... | @@ -3,22 +3,34 @@ |
<img src="../assets/Group17_2.png" /> | <img src="../assets/Group17_2.png" /> | ||
</button> | </button> | ||
<div class="nav_title floatLeft"> | <div class="nav_title floatLeft"> | ||
<input class="search_bar" placeholder="Search here.. eg:shirts, retailers etc..." (click)="clickSearch()" /> | <input | ||
class="search_bar" | |||
placeholder="Search here.. eg:shirts, retailers etc..." | |||
(click)="clickSearch()" | |||
/> | |||
</div> | </div> | ||
<button class="nav_btn nav_search floatRight" *ngIf="!searchShow" (click)="clickSearch()"></button> | <button | ||
<button class="nav_btn nav_close floatRight" *ngIf="searchShow" (click)="searchClose()"></button> | class="nav_btn nav_search floatRight" | ||
*ngIf="!searchShow" | |||
(click)="clickSearch()" | |||
></button> | |||
<button | |||
class="nav_btn nav_close floatRight" | |||
*ngIf="searchShow" | |||
(click)="searchClose()" | |||
></button> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</div> | </div> | ||
<ion-content> | <ion-content> | ||
<div class="product_list"> | <div class="product_list"> | ||
<div class="product_taskbar"> | <div class="product_taskbar"> | ||
<div class="filter floatLeft" (click)="istoggle()"> | <div class="filter floatLeft" (click)="istoggle()"></div> | ||
</div> | |||
<div class="viewset floatRight"> | <div class="viewset floatRight"> | ||
<div class="grid_view grid_act floatRight" (click)="gridToggle()" [class.line_view]="onGrid"> | <div | ||
</div> | class="grid_view grid_act floatRight" | ||
(click)="gridToggle()" | |||
[class.line_view]="onGrid" | |||
></div> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</div> | </div> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
... | @@ -26,35 +38,64 @@ | ... | @@ -26,35 +38,64 @@ |
<div class="product_title" *ngIf="data"> | <div class="product_title" *ngIf="data"> | ||
{{data.shopName}} | {{data.shopName}} | ||
</div> | </div> | ||
<ul [class.grid_view]="onGrid" *ngIf="prodService.product && prodService.product.length > 0"> | <ul | ||
[class.grid_view]="onGrid" | |||
*ngIf="prodService.product && prodService.product.length > 0" | |||
> | |||
<li *ngFor="let product of prodService.product; let i = index"> | <li *ngFor="let product of prodService.product; let i = index"> | ||
<div class="product_image"> | <div class="product_image"> | ||
<div class="load-back"> | <div class="load-back"> | ||
<img [src]="product.image" onerror="this.src='../assets/[email protected]'" (click)="prodDetails(i)"> | <img | ||
</div> | [src]="product.image" | ||
<div [ngClass]="checkFavStatus(product.prodId)" (click)="changeFav(product.prodId)"> | onerror="this.src='../assets/[email protected]'" | ||
(click)="prodDetails(i)" | |||
/> | |||
</div> | </div> | ||
<div | |||
[ngClass]="checkFavStatus(product.prodId)" | |||
(click)="changeFav(product.prodId)" | |||
></div> | |||
<div class="featured_badge" *ngIf="product.featured">Featured</div> | <div class="featured_badge" *ngIf="product.featured">Featured</div> | ||
</div> | </div> | ||
<h5 class="ellipse" (click)="prodDetails(i)">{{product.prodName}}</h5> | <h5 class="ellipse" (click)="prodDetails(i)">{{product.prodName}}</h5> | ||
<p (click)="prodDetails(i)">A$ {{product.price}}<span class="offer" *ngIf="product.discount > 0">-{{product.discount}}%</span></p> | <p (click)="prodDetails(i)"> | ||
A$ {{product.price}}<span class="offer" *ngIf="product.discount > 0" | |||
>-{{product.discount}}%</span | |||
> | |||
</p> | |||
</li> | </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
<ul [class.grid_view]="onGrid" *ngIf="prodService.product && prodService.product.length > 0"> | <ul | ||
[class.grid_view]="onGrid" | |||
*ngIf="prodService.product && prodService.product.length > 0" | |||
> | |||
<li *ngFor="let product of prodService.product; let i = index"> | <li *ngFor="let product of prodService.product; let i = index"> | ||
<div class="product_image"> | <div class="product_image"> | ||
<img [src]="product.image" onerror="this.src='../assets/[email protected]'" (click)="prodDetails(i)" /> | <img | ||
<div [ngClass]="checkFavStatus(product.prodId)" (click)="changeFav(product.prodId)"></div> | [src]="product.image" | ||
onerror="this.src='../assets/[email protected]'" | |||
(click)="prodDetails(i)" | |||
/> | |||
<div | |||
[ngClass]="checkFavStatus(product.prodId)" | |||
(click)="changeFav(product.prodId)" | |||
></div> | |||
<div class="featured_badge" *ngIf="product.featured">Featured</div> | <div class="featured_badge" *ngIf="product.featured">Featured</div> | ||
</div> | </div> | ||
<h5 class="ellipse" (click)="prodDetails(i)">{{product.prodName}}</h5> | <h5 class="ellipse" (click)="prodDetails(i)">{{product.prodName}}</h5> | ||
<p (click)="prodDetails(i)"> | <p (click)="prodDetails(i)"> | ||
A$ {{product.price}}<span class="offer" *ngIf="product.discount > 0">-{{product.discount}}%</span | A$ {{product.price}}<span class="offer" *ngIf="product.discount > 0" | ||
>-{{product.discount}}%</span | |||
> | > | ||
</p> | </p> | ||
</li> | </li> | ||
</ul> | </ul> | ||
<div class="no-result-wrapper" *ngIf="prodService.product.length === 0"> | |||
<img src="../../assets/basket.png" /> | |||
<h1>No result found</h1> | |||
<button (click)="goToPage('home')">home</button> | |||
</div> | </div> | ||
<div class="sort_wrappper" *ngIf="isShow" [@slideInOut]> | <div class="sort_wrappper" *ngIf="isShow" [@slideInOut]> | ||
<div class="sort_inner"> | <div class="sort_inner"> | ||
... | @@ -104,9 +145,20 @@ | ... | @@ -104,9 +145,20 @@ |
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="loader" *ngIf="loader"> | |||
<div class="lds-ripple"> | |||
<div></div> | |||
<div></div> | |||
</div> | |||
</div> | |||
</ion-content> | </ion-content> | ||
<div class="search_item_list" *ngIf="searchShow" [@slideInOut]> | <div class="search_item_list" *ngIf="searchShow" [@slideInOut]> | ||
<ul *ngIf="searchService.searchList"> | <ul *ngIf="searchService.searchList"> | ||
<li *ngFor="let search of searchService.searchList" (click)="viewPage(search)">{{search.text}}</li> | <li | ||
*ngFor="let search of searchService.searchList" | |||
(click)="viewPage(search)" | |||
> | |||
{{search.text}} | |||
</li> | |||
</ul> | </ul> | ||
</div> | </div> |
Please
register
or
sign in
to comment