customer
Showing
... | @@ -3,37 +3,45 @@ | ... | @@ -3,37 +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"> | ||
<ion-slides pager="false" [options]="cartwizard" (ionSlideDidChange)="slideChanged()"> | <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> | ||
... | @@ -42,7 +50,9 @@ | ... | @@ -42,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> | ||
... | @@ -57,16 +67,29 @@ | ... | @@ -57,16 +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$ {{cartService.cartTotal}}</span> | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
>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> | ||
... | @@ -75,11 +98,13 @@ | ... | @@ -75,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> | ||
... | @@ -89,19 +114,27 @@ | ... | @@ -89,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> | ||
... | @@ -146,28 +179,42 @@ | ... | @@ -146,28 +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 | ||
<br/> <h6>GET50</h6> | class="add_btn" | ||
<span *ngIf="discountApplied" style="color: red">Promocode applied successfully </span> | (click)="promoApply(promo.value)" | ||
> | |||
ADD | |||
</button> | |||
<br /> | |||
<h6>GET50</h6> | |||
<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$ {{cartService.cartTotal}}</span> | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
>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$ {{getDeliveryCharge(cartService.cartTotal)}}</span> | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
>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$ {{getTax(cartService.cartTotal)}}</span> | <span class="floatRight" *ngIf="cartService.cartTotal" | ||
>A$ {{getTax(cartService.cartTotal)}}</span | |||
> | |||
<div class="clear"></div> | <div class="clear"></div> | ||
</h6> | </h6> | ||
<h6 *ngIf="discountApplied"> | <h6 *ngIf="discountApplied"> | ||
... | @@ -175,14 +222,16 @@ | ... | @@ -175,14 +222,16 @@ |
<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> | <p class="textRight" *ngIf="cartService.cartTotal"> | ||
A$ {{getTotal(cartService.cartTotal)}} | |||
</p> | |||
</ion-col> | </ion-col> | ||
</ion-row> | </ion-row> | ||
</div> | </div> | ||
... | @@ -190,12 +239,14 @@ | ... | @@ -190,12 +239,14 @@ |
</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> | ||
... | @@ -205,11 +256,22 @@ | ... | @@ -205,11 +256,22 @@ |
</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()"> | ||
... | @@ -225,8 +287,11 @@ | ... | @@ -225,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> | ||
... | @@ -234,22 +299,41 @@ | ... | @@ -234,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> | ||
... | @@ -260,7 +344,5 @@ | ... | @@ -260,7 +344,5 @@ |
</li> | </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
</ion-content> | </ion-content> | ||
</div> | </div> | ||
src/app/failed/failed.module.ts
0 → 100644
src/app/failed/failed.page.html
0 → 100644
src/app/failed/failed.page.scss
0 → 100644
src/app/failed/failed.page.spec.ts
0 → 100644
src/app/failed/failed.page.ts
0 → 100644
... | @@ -44,6 +44,34 @@ | ... | @@ -44,6 +44,34 @@ |
> | > | ||
<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"> | |||
<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> | |||
<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 | <img | ||
[src]="product.image" | [src]="product.image" | ||
onerror="this.src='../assets/[email protected]'" | onerror="this.src='../assets/[email protected]'" | ||
... | @@ -63,12 +91,12 @@ | ... | @@ -63,12 +91,12 @@ |
</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" /> | ||
<h1>No result found</h1> | <h1>No result found</h1> | ||
<button (click)="goToPage('home')">home</button> | <button (click)="goToPage('home')">home</button> | ||
</div> | </div> | ||
</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> | ||
... | ... |
src/app/success/success.module.ts
0 → 100644
src/app/success/success.page.html
0 → 100644
src/app/success/success.page.scss
0 → 100644
.success_wrapper { | |||
width: 100%; | |||
.cart_head { | |||
width: 100%; | |||
height: auto; | |||
background-image: url("../../assets/[email protected]"); | |||
background-position: center bottom; | |||
background-repeat: no-repeat; | |||
background-size: cover; | |||
padding-bottom: 35px; | |||
.nav_header { | |||
position: static; | |||
background-color: transparent; | |||
.nav_title { | |||
h4 { | |||
color: #FFF; | |||
} | |||
} | |||
} | |||
.cart_menu_header { | |||
padding: 50px 20px 20px 20px; | |||
ul { | |||
margin: 0px; | |||
padding: 10px; | |||
background-color: rgba(273, 273, 273, 0.1); | |||
border-radius: 10px; | |||
li { | |||
list-style: none; | |||
color: #FFF; | |||
width: 20%; | |||
display: inline-block; | |||
font-weight: 700; | |||
font-size: 13px; | |||
hr { | |||
height: 0px; | |||
border-top: none; | |||
width: 90%; | |||
margin-top: 0px; | |||
margin-bottom: 0px; | |||
position: relative; | |||
margin: 0 auto; | |||
border-bottom: 2px dashed rgba(176, 174, 199, 1); | |||
bottom: 4px; | |||
} | |||
} | |||
} | |||
} | |||
.success-set { | |||
text-align: center; | |||
margin-top: 50px; | |||
img { | |||
width: 75px; | |||
} | |||
h1 { | |||
color: #fff; | |||
font-size: 18px; | |||
font-weight: bolder; | |||
margin-top: 5px; | |||
margin-bottom: 0; | |||
text-transform: uppercase; | |||
} | |||
h2 { | |||
color: #fff; | |||
font-size: 12px; | |||
font-weight: lighter; | |||
margin-top: 2px; | |||
} | |||
} | |||
} | |||
.product-countdown { | |||
padding: 20px; | |||
text-align: center; | |||
margin-top: 25px; | |||
h1 { | |||
color: #B0AEC7; | |||
font-size: 16px; | |||
margin-top: 10px; | |||
} | |||
h2 { | |||
color: #3B394D; | |||
font-size: 40px; | |||
font-weight: bolder; | |||
margin-top: 15px; | |||
span { | |||
font-size: 16px; | |||
font-weight: lighter; | |||
} | |||
} | |||
button { | |||
background-color: #29285b; | |||
border-radius: 8px; | |||
height: 50px; | |||
width: 48%; | |||
color: #fff; | |||
font-size: 18px; | |||
font-weight: lighter; | |||
text-transform: uppercase; | |||
margin-top: 25px; | |||
margin-bottom: 50px; | |||
} | |||
h3 { | |||
color: #29285b; | |||
background: none; | |||
font-size: 20px; | |||
font-weight: bolder; | |||
text-transform: uppercase; | |||
margin-top: 20px; | |||
margin-bottom: 50px; | |||
} | |||
} | |||
} | |||
@media only screen and (max-width: 350px) { | |||
.cart_head { | |||
padding-bottom: 15px !important; | |||
.cart_menu_header { | |||
padding: 20px !important; | |||
ul { | |||
li { | |||
font-size: 12px !important; | |||
} | |||
} | |||
} | |||
.success-set { | |||
margin-top: 0 !important; | |||
} | |||
} | |||
} | |||
\ No newline at end of file |
src/app/success/success.page.spec.ts
0 → 100644
src/app/success/success.page.ts
0 → 100644
src/assets/failed.png
0 → 100644
4.95 KB
src/assets/giphy.gif
0 → 100644
8.61 KB