Merge branch 'adarsh' into 'master'
Adarsh
See merge request !50
Showing
<ion-content> | <ion-content> | ||
<div class="cart_wrapper"> | <div class="cart_wrapper"> | ||
<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> | ||
<div class="clear"></div> | |||
</button> | </div> | ||
<div class="clear"></div> | <div class="cart_menu_header"> | ||
</div> | <ul> | ||
<div class="cart_menu_header"> | <li class="textCenter active" [class.active]="currentIndex == 0"> | ||
<ul> | CART | ||
<li class="textCenter active" [class.active]="currentIndex == 0">CART</li> | </li> | ||
<li class="textCenter"> | <li class="textCenter"> | ||
<hr> | <hr /> | ||
</li> | </li> | ||
<li class="textCenter" [class.active]="currentIndex == 1">CHECKOUT</li> | <li class="textCenter" [class.active]="currentIndex == 1"> | ||
<li class="textCenter"> | CHECKOUT | ||
<hr> | </li> | ||
</li> | <li class="textCenter"> | ||
<li class="textCenter" [class.active]="currentIndex == 2">FINISH</li> | <hr /> | ||
</ul> | </li> | ||
<li class="textCenter" [class.active]="currentIndex == 2">FINISH</li> | |||
</ul> | |||
</div> | |||
<div class="cart_content"> | |||
<ion-slides | |||
pager="false" | |||
[options]="cartwizard" | |||
(ionSlideDidChange)="slideChanged()" | |||
> | |||
<ion-slide> | |||
<div class="cart_list" *ngIf="cartService.carts"> | |||
<ul *ngIf="cartService.carts.length > 0"> | |||
<li *ngFor="let carts of cartService.carts; let i= index"> | |||
<div class="close" (click)="cartService.removeItem(i)"></div> | |||
<div class="cart_image"> | |||
<img [src]="carts.image" onerror="this.src=''" /> | |||
</div> | |||
<div class="cart_detail"> | |||
<h4>{{carts.prodName}}</h4> | |||
<h4>{{carts.size}}, {{carts.color}}</h4> | |||
<h5>A$ {{carts.price}}</h5> | |||
</div> | |||
<div class="cart_count"> | |||
<div class="add" (click)="cartService.addCount(i)">+</div> | |||
<div class="count">{{carts.qty}}</div> | |||
<div class="remove" (click)="cartService.removeCount(i)"> | |||
- | |||
</div> | |||
</div> | |||
<div class="clear"></div> | |||
</li> | |||
</ul> | |||
<div class="total_div" *ngIf="cartService.cartTotal"> | |||
<ion-row> | |||
<ion-col> | |||
<p class="textLeft">Total Price:</p> | |||
</ion-col> | |||
<ion-col> | |||
<p class="textRight">A$ {{cartService.cartTotal}}</p> | |||
</ion-col> | |||
</ion-row> | |||
</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> | ||
<div class="cart_content"> | </ion-slide> | ||
<div class="no-items-wrapper"> | <ion-slide> | ||
<img src="../../assets/noitem.png"> | <div class="checkout_list"> | ||
<h1>There is no products added</h1> | <h5> | ||
<button>Shop Now</button> | <span class="floatLeft">ITEMS</span> | ||
</div> | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
<ion-slides pager="false" [options]="cartwizard" (ionSlideDidChange)="slideChanged()"> | >A$ {{cartService.cartTotal}}</span | ||
<ion-slide> | > | ||
<div class="cart_list" *ngIf="cartService.carts"> | <div class="clear"></div> | ||
<ul *ngIf="cartService.carts.length > 0"> | </h5> | ||
<li *ngFor="let carts of cartService.carts; let i= index"> | <ion-grid | ||
<div class="close" (click)="cartService.removeItem(i)"></div> | class="p0" | ||
<div class="cart_image"><img [src]="carts.image" onerror="this.src=''" /></div> | *ngIf="cartService.carts && cartService.carts.length > 0" | ||
<div class="cart_detail"> | > | ||
<h4>{{carts.prodName}}</h4> | <ion-row *ngFor="let carts of cartService.carts"> | ||
<h4>{{carts.size}}, {{carts.color}}</h4> | <ion-col size="6" class="p0"> | ||
<h5>A$ {{carts.price}}</h5> | <h6 class="textLeft">{{carts.prodName}}</h6> | ||
</div> | </ion-col> | ||
<div class="cart_count"> | <ion-col size="2" class="p0"> | ||
<div class="add" (click)="cartService.addCount(i)">+</div> | <h6 class="textRight"><strong>{{carts.qty}} X</strong></h6> | ||
<div class="count">{{carts.qty}}</div> | </ion-col> | ||
<div class="remove" (click)="cartService.removeCount(i)">-</div> | <ion-col size="4" class="p0"> | ||
</div> | <h6 class="textRight"> | ||
<div class="clear"></div> | <strong>A$ {{carts.price}}</strong> | ||
</li> | </h6> | ||
</ul> | </ion-col> | ||
<div class="total_div" *ngIf="cartService.cartTotal"> | </ion-row> | ||
<ion-row> | </ion-grid> | ||
<ion-col> | <hr /> | ||
<p class="textLeft">Total Price:</p> | <h5> | ||
</ion-col> | <span class="floatLeft">DELIVERY</span> | ||
<ion-col> | <span class="floatRight" (click)="istoggle()">EDIT</span> | ||
<p class="textRight">A$ {{cartService.cartTotal}}</p> | <div class="clear"></div> | ||
</ion-col> | </h5> | ||
</ion-row> | <ion-grid class="p0" *ngIf="custAddress"> | ||
</div> | <ion-row> | ||
</div> | <ion-col class="p0"> | ||
</ion-slide> | <h6> | ||
<ion-slide> | {{custAddress.building}},<br /> | ||
<div class="checkout_list"> | {{custAddress.landmark}},<br /> | ||
<h5> | {{custAddress.address}} | ||
<span class="floatLeft">ITEMS</span> | </h6> | ||
<span class="floatRight" *ngIf="cartService.cartTotal">A$ | </ion-col> | ||
{{cartService.cartTotal}}</span> | </ion-row> | ||
<div class="clear"></div> | </ion-grid> | ||
</h5> | <hr /> | ||
<ion-grid class="p0" *ngIf="cartService.carts && cartService.carts.length > 0"> | <h5> | ||
<ion-row *ngFor="let carts of cartService.carts"> | <span class="floatLeft">PAYMENT</span> | ||
<ion-col size="6" class="p0"> | <span class="floatRight">CHANGE</span> | ||
<h6 class="textLeft">{{carts.prodName}}</h6> | <div class="clear"></div> | ||
</ion-col> | </h5> | ||
<ion-col size="2" class="p0"> | <div class="payment_method"> | ||
<h6 class="textRight"><strong>{{carts.qty}} X</strong></h6> | <input | ||
</ion-col> | type="radio" | ||
<ion-col size="4" class="p0"> | name="payments" | ||
<h6 class="textRight"><strong>A$ {{carts.price}}</strong></h6> | id="cod" | ||
</ion-col> | name="radio-group" | ||
</ion-row> | checked="true" | ||
</ion-grid> | /> | ||
<hr> | <label for="paypal"> | ||
<h5> | <p>COD</p> | ||
<span class="floatLeft">DELIVERY</span> | </label> | ||
<span class="floatRight" (click)="istoggle()">EDIT</span> | </div> | ||
<div class="clear"></div> | <!-- <div class="payment_method"> | ||
</h5> | |||
<ion-grid class="p0" *ngIf="custAddress"> | |||
<ion-row> | |||
<ion-col class="p0"> | |||
<h6> | |||
{{custAddress.building}},<br /> {{custAddress.landmark}},<br /> {{custAddress.address}} | |||
</h6> | |||
</ion-col> | |||
</ion-row> | |||
</ion-grid> | |||
<hr> | |||
<h5> | |||
<span class="floatLeft">PAYMENT</span> | |||
<span class="floatRight">CHANGE</span> | |||
<div class="clear"></div> | |||
</h5> | |||
<div class="payment_method"> | |||
<input type="radio" name="payments" id="cod" name="radio-group" checked="true"> | |||
<label for="paypal"> | |||
<p>COD</p> | |||
</label> | |||
</div> | |||
<!-- <div class="payment_method"> | |||
<input type="radio" name="payments" id="paypal" name="radio-group" checked (click)="getwaypaypal()"> | <input type="radio" name="payments" id="paypal" name="radio-group" checked (click)="getwaypaypal()"> | ||
<label for="test1"> | <label for="test1"> | ||
<p>PayPal</p> | <p>PayPal</p> | ||
... | @@ -140,7 +167,7 @@ | ... | @@ -140,7 +167,7 @@ |
<div class="card_div" [hidden]="gateway !=3"> | <div class="card_div" [hidden]="gateway !=3"> | ||
<input class="card_no borderNone widthFull" placeholder="PafyK ID"> | <input class="card_no borderNone widthFull" placeholder="PafyK ID"> | ||
</div> --> | </div> --> | ||
<!-- <div class="delivery_time"> | <!-- <div class="delivery_time"> | ||
<ul> | <ul> | ||
<li> | <li> | ||
Delivery 10 Mnt<br> | Delivery 10 Mnt<br> | ||
... | @@ -152,126 +179,170 @@ | ... | @@ -152,126 +179,170 @@ |
</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 | ||
<br /> | class="add_btn" | ||
<h6>GET50</h6> | (click)="promoApply(promo.value)" | ||
<span *ngIf="discountApplied" style="color: red">Promocode applied successfully </span> | > | ||
</div> | ADD | ||
<br /> | </button> | ||
<br /> | |||
<h6> | <h6>GET50</h6> | ||
<span class="floatLeft">PRODUCT COST</span> | <span *ngIf="discountApplied" style="color: red" | ||
<span class="floatRight" *ngIf="cartService.cartTotal">A$ | >Promocode applied successfully | ||
{{cartService.cartTotal}}</span> | </span> | ||
<div class="clear"></div> | </div> | ||
</h6> | <br /> | ||
<h6> | <h6> | ||
<span class="floatLeft">DELIVERY CHARGE</span> | <span class="floatLeft">PRODUCT COST</span> | ||
<span class="floatRight" *ngIf="cartService.cartTotal">A$ | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
{{getDeliveryCharge(cartService.cartTotal)}}</span> | >A$ {{cartService.cartTotal}}</span | ||
<div class="clear"></div> | > | ||
</h6> | <div class="clear"></div> | ||
<h6> | </h6> | ||
<span class="floatLeft">GST/TAX</span> | |||
<span class="floatRight" *ngIf="cartService.cartTotal">A$ | |||
{{getTax(cartService.cartTotal)}}</span> | |||
<div class="clear"></div> | |||
</h6> | |||
<h6 *ngIf="discountApplied"> | |||
<span class="floatLeft">DISCOUNT</span> | |||
<span class="floatRight">(-) A$ {{discount}}</span> | |||
<div class="clear"></div> | |||
</h6> | |||
<hr> | |||
<div class="total_div"> | |||
<ion-row> | |||
<ion-col> | |||
<p class="textLeft">Total Price:</p> | |||
</ion-col> | |||
<ion-col> | |||
<p class="textRight" *ngIf="cartService.cartTotal">A$ {{getTotal(cartService.cartTotal)}} | |||
</p> | |||
</ion-col> | |||
</ion-row> | |||
</div> | |||
</div> | |||
</ion-slide> | |||
<ion-slide> | |||
<div class="order_placed_div"> | |||
<img src="../assets/[email protected]"> | |||
<h4>Order Placed</h4> | |||
<p>{{bookDate}}</p> | |||
<h3>The product will be delivered in</h3> | |||
<h1>60:00 Mins</h1> | |||
<button class="view_order" (click)="goToPage('myorder')">VIEW ORDERS</button><br> | |||
<button class="home_btn" (click)="goToPage('home')">HOME</button> | |||
</div> | |||
</ion-slide> | |||
</ion-slides> | |||
<h6> | |||
<span class="floatLeft">DELIVERY CHARGE</span> | |||
<span class="floatRight" *ngIf="cartService.cartTotal" | |||
>A$ {{getDeliveryCharge(cartService.cartTotal)}}</span | |||
> | |||
<div class="clear"></div> | |||
</h6> | |||
<h6> | |||
<span class="floatLeft">GST/TAX</span> | |||
<span class="floatRight" *ngIf="cartService.cartTotal" | |||
>A$ {{getTax(cartService.cartTotal)}}</span | |||
> | |||
<div class="clear"></div> | |||
</h6> | |||
<h6 *ngIf="discountApplied"> | |||
<span class="floatLeft">DISCOUNT</span> | |||
<span class="floatRight">(-) A$ {{discount}}</span> | |||
<div class="clear"></div> | |||
</h6> | |||
<hr /> | |||
<div class="total_div"> | |||
<ion-row> | |||
<ion-col> | |||
<p class="textLeft">Total Price:</p> | |||
</ion-col> | |||
<ion-col> | |||
<p class="textRight" *ngIf="cartService.cartTotal"> | |||
A$ {{getTotal(cartService.cartTotal)}} | |||
</p> | |||
</ion-col> | |||
</ion-row> | |||
</div> | |||
</div> | </div> | ||
</div> | </ion-slide> | ||
<ion-slide> | |||
<div class="order_placed_div"> | |||
<img src="../assets/[email protected]" /> | |||
<h4>Order Placed</h4> | |||
<p>{{bookDate}}</p> | |||
<h3>The product will be delivered in</h3> | |||
<h1>60:00 Mins</h1> | |||
<button class="view_order" (click)="goToPage('myorder')"> | |||
VIEW ORDERS</button | |||
><br /> | |||
<button class="home_btn" (click)="goToPage('home')">HOME</button> | |||
</div> | |||
</ion-slide> | |||
</ion-slides> | |||
</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" | ||
<div class="checkout" (click)="next(1)">CHECKOUT</div> | *ngIf="cartService.carts && cartService.carts.length > 0" | ||
</div> | [hidden]="currentIndex != 0" | ||
<div class="footer_btn" *ngIf="cartService.carts && cartService.carts.length > 0" [hidden]="currentIndex != 1" (click)="next(2);"> | > | ||
PAY | <div class="continue" (click)="goToPage('productlist')"> | ||
CONTINUE SHOPING | |||
</div> | </div> | ||
<!-- <div class="footer_btn" [hidden]="currentIndex != 2" (click)="finishpop()"> | <div class="checkout" (click)="next(1)">CHECKOUT</div> | ||
</div> | |||
<div | |||
class="footer_btn" | |||
*ngIf="cartService.carts && cartService.carts.length > 0" | |||
[hidden]="currentIndex != 1" | |||
(click)="next(2);" | |||
> | |||
PAY | |||
</div> | |||
<!-- <div class="footer_btn" [hidden]="currentIndex != 2" (click)="finishpop()"> | |||
FINISH | FINISH | ||
</div> --> | </div> --> | ||
</ion-footer> | </ion-footer> | ||
<div class="loader" *ngIf="loader"> | <div class="loader" *ngIf="loader"> | ||
<div class="lds-ripple"> | <div class="lds-ripple"> | ||
<div></div> | <div></div> | ||
<div></div> | <div></div> | ||
</div> | </div> | ||
</div> | </div> | ||
<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" | ||
</button> | (click)="istoggle(); setAddress()" | ||
<div class="nav_title floatLeft"> | > | ||
<h4>CHANGE LOCATION</h4> | <img src="../assets/Group17_2.png" /> | ||
</div> | </button> | ||
<div class="nav_title floatLeft"> | |||
<h4>CHANGE LOCATION</h4> | |||
</div> | |||
<div class="clear"></div> | |||
</div> | |||
<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-marker [latitude]="lat" [longitude]="lng"></agm-marker> | |||
</agm-map> | |||
<div class="add_address_wrapper"> | |||
<h5> | |||
<span class="floatLeft">NEW ADDRESS</span> | |||
<span class="floatRight" (click)="istoggle(); goToPage('nearby')" | |||
>ADD NEW</span | |||
> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</h5> | |||
<ul | |||
*ngIf="addressService.addressList && addressService.addressList.length > 0" | |||
> | |||
<li *ngFor="let address of addressService.addressList; let i = index"> | |||
<div class="floatLeft"> | |||
{{address.default}} | |||
<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" | |||
/> | |||
<label for="styled-checkbox-{{i}}"> {{address.addressType}} </label> | |||
</div> | |||
<div class="floatLeft"> | |||
<p> | |||
{{address.building}}, {{address.landmark}}, {{address.address}} | |||
</p> | |||
</div> | |||
<div class="clear"></div> | |||
</li> | |||
</ul> | |||
</div> | </div> | ||
<ion-content class="sort_wrappper"> | </ion-content> | ||
<agm-map [zoom]="20" [latitude]="lat" [longitude]="lng" [disableDefaultUI]="false" [zoomControl]="false" [backgroundColor]="'rgba(29, 27, 130,0.2)'"> | </div> | ||
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker> | |||
</agm-map> | |||
<div class="add_address_wrapper"> | |||
<h5> | |||
<span class="floatLeft">NEW ADDRESS</span> | |||
<span class="floatRight" (click)="istoggle(); goToPage('nearby')">ADD NEW</span> | |||
<div class="clear"></div> | |||
</h5> | |||
<ul *ngIf="addressService.addressList && addressService.addressList.length > 0"> | |||
<li *ngFor="let address of addressService.addressList; let i = index"> | |||
<div class="floatLeft">{{address.default}} | |||
<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"> | |||
<label for="styled-checkbox-{{i}}"> {{address.addressType}} | |||
</label> | |||
</div> | |||
<div class="floatLeft"> | |||
<p> | |||
{{address.building}}, {{address.landmark}}, {{address.address}} | |||
</p> | |||
</div> | |||
<div class="clear"></div> | |||
</li> | |||
</ul> | |||
</div> | |||
</ion-content> | |||
</div> | |||
\ No newline at end of file |
... | @@ -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"> | ||
... | ... |
<div class="nav_header"> | <div class="nav_header"> | ||
<button class="nav_btn nav_back floatLeft" (click)="goBack()"> | <button class="nav_btn nav_back floatLeft" (click)="goBack()"> | ||
<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 | ||
</div> | class="search_bar" | ||
<button class="nav_btn nav_search floatRight" *ngIf="!searchShow" (click)="clickSearch()"></button> | placeholder="Search here.. eg:shirts, retailers etc..." | ||
<button class="nav_btn nav_close floatRight" *ngIf="searchShow" (click)="searchClose()"></button> | (click)="clickSearch()" | ||
<div class="clear"></div> | /> | ||
</div> | |||
<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> | </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> | ||
<div class="filter floatLeft" (click)="istoggle()"> | <div class="viewset floatRight"> | ||
<div | |||
</div> | class="grid_view grid_act floatRight" | ||
<div class="viewset floatRight"> | (click)="gridToggle()" | ||
<div class="grid_view grid_act floatRight" (click)="gridToggle()" [class.line_view]="onGrid"> | [class.line_view]="onGrid" | ||
</div> | ></div> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
</div> | </div> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
</div> | </div> | ||
<div class="product_title" *ngIf="data"> | <div class="product_title" *ngIf="data"> | ||
{{data.shopName}} | {{data.shopName}} | ||
</div> | |||
<ul [class.grid_view]="onGrid" *ngIf="prodService.product && prodService.product.length > 0"> | |||
<li *ngFor="let product of prodService.product; let i = index"> | |||
<div class="product_image"> | |||
<div class="load-back"> | |||
<img [src]="product.image" onerror="this.src='../assets/[email protected]'" (click)="prodDetails(i)"> | |||
</div> | |||
<div [ngClass]="checkFavStatus(product.prodId)" (click)="changeFav(product.prodId)"> | |||
</div> | |||
<div class="featured_badge" *ngIf="product.featured">Featured</div> | |||
</div> | |||
<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> | |||
</li> | |||
</ul> | |||
</div> | </div> | ||
<ul [class.grid_view]="onGrid" *ngIf="prodService.product && prodService.product.length > 0"> | <ul | ||
<li *ngFor="let product of prodService.product; let i = index"> | [class.grid_view]="onGrid" | ||
<div class="product_image"> | *ngIf="prodService.product && prodService.product.length > 0" | ||
<img [src]="product.image" onerror="this.src='../assets/[email protected]'" (click)="prodDetails(i)" /> | > | ||
<div [ngClass]="checkFavStatus(product.prodId)" (click)="changeFav(product.prodId)"></div> | <li *ngFor="let product of prodService.product; let i = index"> | ||
<div class="featured_badge" *ngIf="product.featured">Featured</div> | <div class="product_image"> | ||
</div> | <div class="load-back"> | ||
<h5 class="ellipse" (click)="prodDetails(i)">{{product.prodName}}</h5> | <img | ||
<p (click)="prodDetails(i)"> | [src]="product.image" | ||
A$ {{product.price}}<span class="offer" *ngIf="product.discount > 0">-{{product.discount}}%</span | onerror="this.src='../assets/[email protected]'" | ||
(click)="prodDetails(i)" | |||
/> | |||
</div> | |||
<div | |||
[ngClass]="checkFavStatus(product.prodId)" | |||
(click)="changeFav(product.prodId)" | |||
></div> | |||
<div class="featured_badge" *ngIf="product.featured">Featured</div> | |||
</div> | |||
<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> | ||
</li> | </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
<ul | |||
[class.grid_view]="onGrid" | |||
*ngIf="prodService.product && prodService.product.length > 0" | |||
> | |||
<li *ngFor="let product of prodService.product; let i = index"> | |||
<div class="product_image"> | |||
<img | |||
[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> | |||
<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> | |||
</li> | |||
</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 class="sort_wrappper" *ngIf="isShow" [@slideInOut]> | <div class="sort_wrappper" *ngIf="isShow" [@slideInOut]> | ||
<div class="sort_inner"> | <div class="sort_inner"> | ||
<h4>Sort By</h4> | <h4>Sort By</h4> | ||
... | @@ -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 | ||
</ul> | *ngFor="let search of searchService.searchList" | ||
</div> | (click)="viewPage(search)" | ||
\ No newline at end of file | > | ||
{{search.text}} | |||
</li> | |||
</ul> | |||
</div> |
<div class="nav_header"> | <div class="nav_header"> | ||
<ion-menu-toggle> | <ion-menu-toggle> | ||
<button class="nav_btn nav_menu floatLeft"></button> | <button class="nav_btn nav_menu floatLeft"></button> | ||
</ion-menu-toggle> | </ion-menu-toggle> | ||
<div class="nav_title floatLeft"> | <div class="nav_title floatLeft"> | ||
<img src="../../assets/Group [email protected]" /> | <img src="../../assets/Group [email protected]" /> | ||
</div> | </div> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
</div> | </div> | ||
<ion-content> | <ion-content> | ||
<div class="profile_wrapper" *ngIf="loggedUser"> | <div class="profile_wrapper" *ngIf="loggedUser"> | ||
<div class="profile_banner"> | <div class="profile_banner"> | ||
<!-- <div class="profile_circle"> | <!-- <div class="profile_circle"> | ||
<div class="edit"></div> | <div class="edit"></div> | ||
</div> --> | </div> --> | ||
<div class="profile_circle"> | <div class="profile_circle"> | ||
<img [src]="loggedUser.profilePhoto" onerror="this.src='./../../assets/profile_banner.png'" /> | <img | ||
<div class="edit"></div> | [src]="loggedUser.profilePhoto" | ||
<input type="file" accept="image/*" (change)="fileChange($event)" /> | onerror="this.src='./../../assets/profile_banner.png'" | ||
</div> | /> | ||
<div class="edit"></div> | |||
<input type="file" accept="image/*" (change)="fileChange($event)" /> | |||
</div> | |||
<h5>{{loggedUser.name}}</h5> | <h5>{{loggedUser.name}}</h5> | ||
<p (click)="istoggle()">LOGOUT</p> | <p (click)="istoggle()">LOGOUT</p> | ||
</div> | </div> | ||
<div class="account_wrapper"> | <div class="account_wrapper"> | ||
<div class="account_header"> | <div class="account_header"> | ||
<h5 class="floatLeft">ACCOUNT INFORMATION</h5> | <h5 class="floatLeft">ACCOUNT INFORMATION</h5> | ||
<span class="floatRight" (click)="goToPage('changedetails', user && user)"><img | <span | ||
src="../../assets/edit.png" /></span> | class="floatRight" | ||
<div class="clear"></div> | (click)="goToPage('changedetails', user && user)" | ||
</div> | ><img src="../../assets/edit.png" | ||
<div class="row"> | /></span> | ||
<ion-row> | <div class="clear"></div> | ||
<ion-col class="textLeft p0"> | </div> | ||
<p> | <div class="row"> | ||
Phone | <ion-row> | ||
<span *ngIf="loggedUser.phoneVerified == true">Verified</span> | <ion-col class="textLeft p0"> | ||
<span *ngIf="loggedUser.phoneVerified == false">Not Verified yet</span> | <p> | ||
</p> | Phone | ||
</ion-col> | <span *ngIf="loggedUser.phoneVerified == true">Verified</span> | ||
<ion-col class="textRight p0"> | <span *ngIf="loggedUser.phoneVerified == false" | ||
<h6>{{loggedUser.phone}}</h6> | >Not Verified yet</span | ||
</ion-col> | > | ||
</ion-row> | </p> | ||
</div> | </ion-col> | ||
<div class="row"> | <ion-col class="textRight p0"> | ||
<ion-row> | <h6>{{loggedUser.phone}}</h6> | ||
<ion-col class="textLeft p0"> | </ion-col> | ||
<p> | </ion-row> | ||
Email<span *ngIf="userData && userData.emailVerified == true">Verified</span> | </div> | ||
<span *ngIf="loggedUser.emailVerified == false">Not Verified yet</span> | <div class="row"> | ||
</p> | <ion-row> | ||
</ion-col> | <ion-col class="textLeft p0"> | ||
<ion-col class="textRight p0"> | <p> | ||
<h6>{{loggedUser.emailId}}</h6> | Email<span *ngIf="userData && userData.emailVerified == true" | ||
</ion-col> | >Verified</span | ||
</ion-row> | > | ||
</div> | <span *ngIf="loggedUser.emailVerified == false" | ||
<hr /> | >Not Verified yet</span | ||
<ion-row> | > | ||
<ion-col class="textLeft p0"> | </p> | ||
<p>Wishlist</p> | </ion-col> | ||
</ion-col> | <ion-col class="textRight p0"> | ||
<ion-col class="textRight p0"> | <h6>{{loggedUser.emailId}}</h6> | ||
<h6>(3)</h6> | </ion-col> | ||
</ion-col> | </ion-row> | ||
</ion-row> | </div> | ||
<hr /> | <hr /> | ||
<ion-row> | <ion-row> | ||
<ion-col class="textLeft p0"> | <ion-col class="textLeft p0"> | ||
<p>Address</p> | <p>Wishlist</p> | ||
</ion-col> | </ion-col> | ||
<ion-col class="textRight p0"> | <ion-col class="textRight p0" (click)="goToPage('wishlist')"> | ||
<h6>(1)</h6> | <h6>(0)</h6> | ||
</ion-col> | </ion-col> | ||
</ion-row> | </ion-row> | ||
<hr /> | <hr /> | ||
<ion-row> | <ion-row> | ||
<ion-col class="textLeft p0"> | <ion-col class="textLeft p0"> | ||
<p>My Cards</p> | <p>Address</p> | ||
</ion-col> | </ion-col> | ||
<ion-col class="textRight p0"> | <ion-col class="textRight p0" (click)="goToPage('address')"> | ||
<h6> | <h6 *ngIf="addressService.addList"> | ||
<ion-icon name="arrow-forward"></ion-icon> | ({{addressService.addressList.length}}) | ||
</h6> | </h6> | ||
</ion-col> | </ion-col> | ||
</ion-row> | </ion-row> | ||
<hr /> | <hr /> | ||
<ion-row> | <!-- <ion-row> | ||
<ion-col class="textLeft p0"> | <ion-col class="textLeft p0"> | ||
<p>My Order</p> | <p>My Cards</p> | ||
</ion-col> | </ion-col> | ||
<ion-col class="textRight p0" (click)="goToPage('myorder')"> | <ion-col class="textRight p0" (click)="goToPage('addcard')"> | ||
<h6> | <h6> | ||
<ion-icon name="arrow-forward"></ion-icon> | <ion-icon name="arrow-forward"></ion-icon> | ||
</h6> | </h6> | ||
</ion-col> | </ion-col> | ||
</ion-row> | </ion-row> | ||
<hr /> | <hr /> --> | ||
<ion-row> | <ion-row> | ||
<ion-col class="textLeft p0"> | <ion-col class="textLeft p0"> | ||
<p>Currency</p> | <p>My Order</p> | ||
</ion-col> | </ion-col> | ||
<ion-col class="textRight p0"> | <ion-col class="textRight p0" (click)="goToPage('myorder')"> | ||
<h6> | <h6> | ||
<span>AUD</span> | <ion-icon name="arrow-forward"></ion-icon> | ||
</h6> | </h6> | ||
</ion-col> | </ion-col> | ||
</ion-row> | </ion-row> | ||
</div> | <hr /> | ||
<div class="logout-pop-wrapper" *ngIf="isShow" [@slideInOut]> | <ion-row> | ||
<div class="logout_inner"> | <ion-col class="textLeft p0"> | ||
<h4>Logout</h4> | <p>Currency</p> | ||
<p>Are you sure to Logout ?</p> | </ion-col> | ||
<div class="logout_footer"> | <ion-col class="textRight p0"> | ||
<button class="btn-cancel floatLeft" (click)="istoggle();"> | <h6> | ||
<span>AUD</span> | |||
</h6> | |||
</ion-col> | |||
</ion-row> | |||
</div> | |||
<div class="logout-pop-wrapper" *ngIf="isShow" [@slideInOut]> | |||
<div class="logout_inner"> | |||
<h4>Logout</h4> | |||
<p>Are you sure to Logout ?</p> | |||
<div class="logout_footer"> | |||
<button class="btn-cancel floatLeft" (click)="istoggle();"> | |||
Cancel | Cancel | ||
</button> | </button> | ||
<button class="btn-logout floatRight" (click)="authService.SignOut(); istoggle()"> | <button | ||
class="btn-logout floatRight" | |||
(click)="authService.SignOut(); istoggle()" | |||
> | |||
Logout | Logout | ||
</button> | </button> | ||
<div class="clear"></div> | |||
</div> | |||
</div> | |||
</div> | </div> | ||
<div class="clear"></div> | |||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
</ion-content> | </ion-content> | ||
\ No newline at end of file |
Please
register
or
sign in
to comment