stylefix
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> | <button class="nav_btn floatRight"></button> | ||
<div class="clear"></div> | |||
</div> | |||
<div class="cart_menu_header"> | |||
<ul> | |||
<li class="textCenter active" [class.active]="currentIndex == 0"> | |||
CART | |||
</li> | |||
<li class="textCenter"> | |||
<hr /> | |||
</li> | |||
<li class="textCenter" [class.active]="currentIndex == 1"> | |||
CHECKOUT | |||
</li> | |||
<li class="textCenter"> | |||
<hr /> | |||
</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> | |||
</ion-slide> | |||
<ion-slide> | |||
<div class="checkout_list"> | |||
<h5> | |||
<span class="floatLeft">ITEMS</span> | |||
<span class="floatRight" *ngIf="cartService.cartTotal" | |||
>A$ {{cartService.cartTotal}}</span | |||
> | |||
<div class="clear"></div> | |||
</h5> | |||
<ion-grid | |||
class="p0" | |||
*ngIf="cartService.carts && cartService.carts.length > 0" | |||
> | |||
<ion-row *ngFor="let carts of cartService.carts"> | |||
<ion-col size="6" class="p0"> | |||
<h6 class="textLeft">{{carts.prodName}}</h6> | |||
</ion-col> | |||
<ion-col size="2" class="p0"> | |||
<h6 class="textRight"><strong>{{carts.qty}} X</strong></h6> | |||
</ion-col> | |||
<ion-col size="4" class="p0"> | |||
<h6 class="textRight"> | |||
<strong>A$ {{carts.price}}</strong> | |||
</h6> | |||
</ion-col> | |||
</ion-row> | |||
</ion-grid> | |||
<hr /> | |||
<h5> | |||
<span class="floatLeft">DELIVERY</span> | |||
<span class="floatRight" (click)="istoggle()">EDIT</span> | |||
<div class="clear"></div> | |||
</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> | <div class="clear"></div> | ||
</h5> | </div> | ||
<div class="payment_method"> | <div class="cart_menu_header"> | ||
<input | <ul> | ||
type="radio" | <li class="textCenter active" [class.active]="currentIndex == 0"> | ||
name="payments" | CART | ||
id="cod" | </li> | ||
name="radio-group" | <li class="textCenter"> | ||
checked="true" | <hr /> | ||
(click)="getwaycod()" | </li> | ||
/> | <li class="textCenter" [class.active]="currentIndex == 1"> | ||
<label for="cod"> | CHECKOUT | ||
<p>COD</p> | </li> | ||
</label> | <li class="textCenter"> | ||
</div> | <hr /> | ||
<div class="payment_method"> | </li> | ||
<input | <li class="textCenter" [class.active]="currentIndex == 2">FINISH</li> | ||
type="radio" | </ul> | ||
name="payments" | </div> | ||
id="paypal" | <div class="cart_content"> | ||
name="radio-group" | <ion-slides pager="false" [options]="cartwizard" (ionSlideDidChange)="slideChanged()"> | ||
(click)="getwaypaypal()" | <ion-slide> | ||
/> | <div class="cart_list" *ngIf="cartService.carts"> | ||
<label for="paypal"> | <ul *ngIf="cartService.carts.length > 0"> | ||
<p>PayPal</p> | <li *ngFor="let carts of cartService.carts; let i= index"> | ||
</label> | <div class="close" (click)="cartService.removeItem(i)"></div> | ||
</div> | <div class="cart_image"> | ||
<!-- <div class="card_div" [hidden]="gateway !=1"> | <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> | |||
</ion-slide> | |||
<ion-slide> | |||
<div class="checkout_list"> | |||
<h5> | |||
<span class="floatLeft">ITEMS</span> | |||
<span class="floatRight" *ngIf="cartService.cartTotal">A$ | |||
{{cartService.cartTotal}}</span> | |||
<div class="clear"></div> | |||
</h5> | |||
<ion-grid class="p0" *ngIf="cartService.carts && cartService.carts.length > 0"> | |||
<ion-row *ngFor="let carts of cartService.carts"> | |||
<ion-col size="6" class="p0"> | |||
<h6 class="textLeft">{{carts.prodName}}</h6> | |||
</ion-col> | |||
<ion-col size="2" class="p0"> | |||
<h6 class="textRight"><strong>{{carts.qty}} X</strong></h6> | |||
</ion-col> | |||
<ion-col size="4" class="p0"> | |||
<h6 class="textRight"> | |||
<strong>A$ {{carts.price}}</strong> | |||
</h6> | |||
</ion-col> | |||
</ion-row> | |||
</ion-grid> | |||
<hr /> | |||
<h5> | |||
<span class="floatLeft">DELIVERY</span> | |||
<span class="floatRight" (click)="istoggle()">EDIT</span> | |||
<div class="clear"></div> | |||
</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" (click)="getwaycod()" /> | |||
<label for="cod"> | |||
<p>COD</p> | |||
</label> | |||
</div> | |||
<div class="payment_method"> | |||
<input type="radio" name="payments" id="paypal" name="radio-group" (click)="getwaypaypal()" /> | |||
<label for="paypal"> | |||
<p>PayPal</p> | |||
</label> | |||
</div> | |||
<!-- <div class="card_div" [hidden]="gateway !=1"> | |||
<input class="card_no borderNone widthFull" placeholder="PayPal ID" /> | <input class="card_no borderNone widthFull" placeholder="PayPal ID" /> | ||
</div> --> | </div> --> | ||
<div class="payment_method"> | <div class="payment_method"> | ||
<input | <input type="radio" name="payments" id="afterpay" name="radio-group" (click)="getwayafterpay()" /> | ||
type="radio" | <label for="afterpay"> | ||
name="payments" | <p>AfterPay</p> | ||
id="afterpay" | </label> | ||
name="radio-group" | </div> | ||
(click)="getwayafterpay()" | <!-- <div class="card_div" [hidden]="gateway !=2"> | ||
/> | |||
<label for="afterpay"> | |||
<p>AfterPay</p> | |||
</label> | |||
</div> | |||
<!-- <div class="card_div" [hidden]="gateway !=2"> | |||
<input class="card_no" placeholder="**** **** **** 1458" /> | <input class="card_no" placeholder="**** **** **** 1458" /> | ||
<input class="cv_number" placeholder="CVV" /> | <input class="cv_number" placeholder="CVV" /> | ||
</div> --> | </div> --> | ||
<div class="payment_method"> | <div class="payment_method"> | ||
<input | <input type="radio" name="payments" id="payk" name="radio-group" (click)="getwaypayk()" /> | ||
type="radio" | <label for="payk"> | ||
name="payments" | <p>PayK</p> | ||
id="payk" | </label> | ||
name="radio-group" | </div> | ||
(click)="getwaypayk()" | <!-- <div class="card_div" [hidden]="gateway !=3"> | ||
/> | |||
<label for="payk"> | |||
<p>PayK</p> | |||
</label> | |||
</div> | |||
<!-- <div class="card_div" [hidden]="gateway !=3"> | |||
<input | <input | ||
class="card_no borderNone widthFull" | class="card_no borderNone widthFull" | ||
placeholder="PafyK ID" | 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> | ||
... | @@ -201,169 +164,128 @@ | ... | @@ -201,169 +164,128 @@ |
</li> | </li> | ||
</ul> | </ul> | ||
</div> --> | </div> --> | ||
<hr /> | <hr /> | ||
<div class="coupon_code"> | <div class="coupon_code"> | ||
<input | <input class="" placeholder="COUPON CODE: GET50" #promo /><button class="add_btn" (click)="promoApply(promo.value)"> | ||
class="" | APPLY | ||
placeholder="COUPON CODE: GET50" | </button> | ||
#promo | <span *ngIf="discountApplied" style="color: red">Promocode applied successfully | ||
/><button class="add_btn" (click)="promoApply(promo.value)"> | </span> | ||
APPLY | </div> | ||
</button> | <br /> | ||
<span *ngIf="discountApplied" style="color: red" | |||
>Promocode applied successfully | |||
</span> | |||
</div> | |||
<br /> | |||
<h6> | <h6> | ||
<span class="floatLeft">PRODUCT COST</span> | <span class="floatLeft">PRODUCT COST</span> | ||
<span class="floatRight" *ngIf="cartService.cartTotal" | <span class="floatRight" *ngIf="cartService.cartTotal">A$ | ||
>A$ {{cartService.cartTotal}}</span | {{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" | <span class="floatRight" *ngIf="cartService.cartTotal">A$ | ||
>A$ {{getDeliveryCharge(cartService.cartTotal)}}</span | {{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> | ||
> | </h6> | ||
<div class="clear"></div> | <h6 *ngIf="discountApplied"> | ||
</h6> | <span class="floatLeft">DISCOUNT</span> | ||
<h6 *ngIf="discountApplied"> | <span class="floatRight">(-) A$ {{discount}}</span> | ||
<span class="floatLeft">DISCOUNT</span> | <div class="clear"></div> | ||
<span class="floatRight">(-) A$ {{discount}}</span> | </h6> | ||
<div class="clear"></div> | <hr /> | ||
</h6> | <div class="total_div"> | ||
<hr /> | <ion-row> | ||
<div class="total_div"> | <ion-col> | ||
<ion-row> | <p class="textLeft">Total Price:</p> | ||
<ion-col> | </ion-col> | ||
<p class="textLeft">Total Price:</p> | <ion-col> | ||
</ion-col> | <p class="textRight" *ngIf="cartService.cartTotal"> | ||
<ion-col> | A$ {{getTotal(cartService.cartTotal)}} | ||
<p class="textRight" *ngIf="cartService.cartTotal"> | </p> | ||
A$ {{getTotal(cartService.cartTotal)}} | </ion-col> | ||
</p> | </ion-row> | ||
</ion-col> | </div> | ||
</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>{{deliveryTime}} 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> | ||
</ion-slide> | </div> | ||
<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>{{deliveryTime}} 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 | <div class="footer_btnbay" *ngIf="cartService.carts && cartService.carts.length > 0" [hidden]="currentIndex != 0"> | ||
class="footer_btnbay" | <div class="continue" (click)="goToPage('productlist')"> | ||
*ngIf="cartService.carts && cartService.carts.length > 0" | CONTINUE SHOPPING | ||
[hidden]="currentIndex != 0" | </div> | ||
> | <div class="checkout" (click)="next(1)">CHECKOUT</div> | ||
<div class="continue" (click)="goToPage('productlist')"> | |||
CONTINUE SHOPPING | |||
</div> | </div> | ||
<div class="checkout" (click)="next(1)">CHECKOUT</div> | <div class="footer_btn" *ngIf="cartService.carts && cartService.carts.length > 0" [hidden]="currentIndex != 1" (click)="next(2);"> | ||
</div> | PAY | ||
<div | </div> | ||
class="footer_btn" | <!-- <div class="footer_btn" [hidden]="currentIndex != 2" (click)="finishpop()"> | ||
*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 | <button class="nav_btn nav_back floatLeft" (click)="istoggle(); setAddress()"> | ||
class="nav_btn nav_back floatLeft" | <img src="../assets/Group17_2.png" /> | ||
(click)="istoggle(); setAddress()" | </button> | ||
> | <div class="nav_title floatLeft"> | ||
<img src="../assets/Group17_2.png" /> | <h4>CHANGE LOCATION</h4> | ||
</button> | </div> | ||
<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> | <ion-content class="sort_wrappper"> | ||
</div> | <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> | |||
</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 |
src/app/changeaddress/changeaddress.page.ts
0 → 100644
<ion-content> | <ion-content> | ||
<div class="cart_wrapper" *ngIf="data"> | <div class="cart_wrapper" *ngIf="data"> | ||
<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></h4> | <h4></h4> | ||
</div> | |||
<button class="nav_btn floatRight"></button> | |||
<div class="clear"></div> | |||
</div> | |||
<img src="../assets/white_tick.png" /> | |||
<h4>ORDER IS PLACED</h4> | |||
<p>{{ data.bookDate.seconds * 1000 | date:'MMMM dd, y' }}</p> | |||
</div> | </div> | ||
<button class="nav_btn floatRight"></button> | <div class="order_status"> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
</div> | <div class="status_div go_green"> | ||
<img src="../assets/white_tick.png" /> | <h4>Order Placed</h4> | ||
<h4>ORDER IS PLACED</h4> | <h6>{{ data.bookDate.seconds * 1000 | date:'MMMM dd, y' }}</h6> | ||
<p>{{ data.bookDate.seconds * 1000 | date:'MMMM dd, y' }}</p> | </div> | ||
</div> | <!-- <div class="status_gap go_green"> | ||
<div class="order_status"> | |||
<div class="clear"></div> | |||
<div class="status_div go_green"> | |||
<h4>Order Placed</h4> | |||
<h6>{{ data.bookDate.seconds * 1000 | date:'MMMM dd, y' }}</h6> | |||
</div> | |||
<!-- <div class="status_gap go_green"> | |||
</div> | </div> | ||
<div class="status_div go_green"> | <div class="status_div go_green"> | ||
<h4>Retailer Accepted</h4> | <h4>Retailer Accepted</h4> | ||
... | @@ -54,63 +54,57 @@ | ... | @@ -54,63 +54,57 @@ |
<div class="status_div"> | <div class="status_div"> | ||
<h4>Your product is delivered</h4> | <h4>Your product is delivered</h4> | ||
</div> --> | </div> --> | ||
</div> | </div> | ||
<div class="nearby_shop_list"> | <div class="nearby_shop_list"> | ||
<ul> | <ul> | ||
<li (click)="goToPage('productlist')"> | <li (click)="goToPage('productlist')"> | ||
<div class="nearby_image"> | <div class="nearby_image"> | ||
<img | <img [src]="data.product[0].image" onerror="this.src='../assets/[email protected]'" /> | ||
[src]="data.product[0].image" | </div> | ||
onerror="this.src='../assets/[email protected]'" | <div class="nearby_detail"> | ||
/> | <h5> | ||
</div> | <span class="floatLeft">{{data.shopperName}}</span> | ||
<div class="nearby_detail"> | <span class="floatRight">{{data.product[0].qty}} | ||
<h5> | |||
<span class="floatLeft">{{data.shopperName}}</span> | |||
<span class="floatRight" | |||
>{{data.product[0].qty}} | |||
<img src="../assets/Path61_2.png" /> | <img src="../assets/Path61_2.png" /> | ||
</span> | </span> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
</h5> | |||
<p class="prodName">{{data.product[0].prodName}}</p> | |||
</div> | |||
<div class="clear"></div> | |||
</li> | |||
</ul> | |||
</div> | |||
<div class="product_detail" *ngFor="let product of data.product"> | |||
<h6> | |||
<span *ngIf="product.color !== 'No-Color'">{{product.color}}, </span> | |||
<span *ngIf="product.size !== 'Any-Size'">{{product.size}}</span> | |||
</h6> | |||
<h5>Quantity : <span>{{product.qty}}</span></h5> | |||
<h5> | |||
Amount : <strong>A$ {{product.price}}</strong><span class="afterpay">COD</span> | |||
</h5> | </h5> | ||
<p class="prodName">{{data.product[0].prodName}}</p> | <h5 *ngIf="data.orderStatus >= 3 && data.orderStatus < 7"> | ||
</div> | Delivery time : <span>{{deliveryTime}}</span> | ||
<div class="clear"></div> | </h5> | ||
</li> | <h5>Order Status : <span>{{getStatus(data.orderStatus)}}</span></h5> | ||
</ul> | <div class="delivery-wrap"> | ||
</div> | <h4 class="floatLeft">DELIVERY</h4> | ||
<div class="product_detail" *ngFor="let product of data.product"> | <span class="floatRight"><img class="ng-tns-c3-0" src="../../assets/edit.png" | ||
<h6> | (click)="goToPage('changeaddress')"></span> | ||
<span *ngIf="product.color !== 'No-Color'">{{product.color}}, </span> | <div class="clear"></div> | ||
<span *ngIf="product.size !== 'Any-Size'">{{product.size}}</span> | </div> | ||
</h6> | <h5 *ngIf="data.deliveryAddress"> | ||
<h5>Quantity : <span>{{product.qty}}</span></h5> | {{data.deliveryAddress.addressType}},<br />{{data.deliveryAddress.address}}, | ||
<h5> | <br /> {{data.deliveryAddress.building}}, <br /> {{data.deliveryAddress.landmark}} | ||
Amount : <strong>A$ {{product.price}}</strong | </h5> | ||
><span class="afterpay">COD</span> | <button class="cancel_btn" (click)="cancellOrder(data.orderId)" *ngIf="cancelDelivery > 0 && data.orderStatus != 0 && data.orderStatus != 8"> | ||
</h5> | |||
<h5 *ngIf="data.orderStatus >= 3 && data.orderStatus < 7"> | |||
Delivery time : <span>{{deliveryTime}}</span> | |||
</h5> | |||
<h5>Order Status : <span>{{getStatus(data.orderStatus)}}</span></h5> | |||
<h4>DELIVERY</h4> | |||
<h5 *ngIf="data.deliveryAddress"> | |||
{{data.deliveryAddress.addressType}},<br />{{data.deliveryAddress.address}}, | |||
<br /> | |||
{{data.deliveryAddress.building}}, <br /> | |||
{{data.deliveryAddress.landmark}} | |||
</h5> | |||
<button | |||
class="cancel_btn" | |||
(click)="cancellOrder(data.orderId)" | |||
*ngIf="cancelDelivery > 0 && data.orderStatus != 0 && data.orderStatus != 8" | |||
> | |||
CANCEL THIS ORDER | CANCEL THIS ORDER | ||
</button> | </button> | ||
<!-- <hr /> --> | <!-- <hr /> --> | ||
</div> | </div> | ||
<!-- <div class="related_product_slider"> | <!-- <div class="related_product_slider"> | ||
<h5> | <h5> | ||
<span class="floatLeft">Related Products</span><span class="floatRight">MORE</span> | <span class="floatLeft">Related Products</span><span class="floatRight">MORE</span> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
... | @@ -165,5 +159,5 @@ | ... | @@ -165,5 +159,5 @@ |
</ion-slides> | </ion-slides> | ||
</ul> | </ul> | ||
</div> --> | </div> --> | ||
</div> | </div> | ||
</ion-content> | </ion-content> | ||
\ No newline at end of file |
.cart_wrapper { | .cart_wrapper { | ||
width: 100%; | |||
.cart_head { | |||
width: 100%; | width: 100%; | ||
height: 240px; | .cart_head { | ||
text-align: center; | width: 100%; | ||
background-image: url('../../assets/[email protected]'); | height: 240px; | ||
background-position: center bottom; | text-align: center; | ||
background-repeat: no-repeat; | background-image: url('../../assets/[email protected]'); | ||
background-size: cover; | background-position: center bottom; | ||
.nav_header { | background-repeat: no-repeat; | ||
position: static; | background-size: cover; | ||
background-color: transparent; | .nav_header { | ||
.nav_title { | position: static; | ||
background-color: transparent; | |||
.nav_title { | |||
h4 { | |||
color: #fff; | |||
} | |||
} | |||
} | |||
img { | |||
width: 70px; | |||
} | |||
h4 { | h4 { | ||
color: #fff; | color: #fff; | ||
font-weight: bolder; | |||
margin-bottom: 5px; | |||
text-align: center; | |||
} | |||
p { | |||
color: rgba(215, 213, 228, 1); | |||
margin: 0px; | |||
padding: 0px; | |||
font-size: 14px; | |||
text-align: center; | |||
} | } | ||
} | |||
} | |||
img { | |||
width: 70px; | |||
} | |||
h4 { | |||
color: #fff; | |||
font-weight: bolder; | |||
margin-bottom: 5px; | |||
text-align: center; | |||
} | |||
p { | |||
color: rgba(215, 213, 228, 1); | |||
margin: 0px; | |||
padding: 0px; | |||
font-size: 14px; | |||
text-align: center; | |||
} | |||
} | |||
.order_status { | |||
width: 100%; | |||
padding: 20px; | |||
.track_btn { | |||
border-radius: 5px; | |||
height: 40px; | |||
background-color: #29285b; | |||
color: #fff; | |||
font-size: 18px; | |||
font-weight: lighter; | |||
padding-left: 20px; | |||
padding-right: 20px; | |||
} | |||
.status_div { | |||
margin-bottom: 10px; | |||
margin-top: 10px; | |||
h4 { | |||
margin: 0px; | |||
padding: 0px; | |||
color: rgba(215, 213, 228, 1); | |||
} | |||
h6 { | |||
margin: 0px; | |||
padding: 0px; | |||
color: rgba(215, 213, 228, 1); | |||
} | |||
} | |||
.go_green { | |||
h4 { | |||
color: rgba(53, 203, 171, 1); | |||
} | |||
} | } | ||
.go_green.status_gap { | .order_status { | ||
border-left: 2px dashed rgba(53, 203, 171, 1); | width: 100%; | ||
padding: 20px; | |||
.track_btn { | |||
border-radius: 5px; | |||
height: 40px; | |||
background-color: #29285b; | |||
color: #fff; | |||
font-size: 18px; | |||
font-weight: lighter; | |||
padding-left: 20px; | |||
padding-right: 20px; | |||
} | |||
.status_div { | |||
margin-bottom: 10px; | |||
margin-top: 10px; | |||
h4 { | |||
margin: 0px; | |||
padding: 0px; | |||
color: rgba(215, 213, 228, 1); | |||
} | |||
h6 { | |||
margin: 0px; | |||
padding: 0px; | |||
color: rgba(215, 213, 228, 1); | |||
} | |||
} | |||
.go_green { | |||
h4 { | |||
color: rgba(53, 203, 171, 1); | |||
} | |||
} | |||
.go_green.status_gap { | |||
border-left: 2px dashed rgba(53, 203, 171, 1); | |||
} | |||
.status_gap { | |||
border-left: 2px dashed rgba(215, 213, 228, 1); | |||
height: 30px; | |||
} | |||
} | } | ||
.status_gap { | .nearby_shop_list { | ||
border-left: 2px dashed rgba(215, 213, 228, 1); | ul { | ||
height: 30px; | margin: 0px; | ||
padding-left: 10px; | |||
padding-right: 10px; | |||
li { | |||
list-style: none; | |||
padding-bottom: 10px; | |||
.nearby_image { | |||
width: 120px; | |||
height: 120px; | |||
float: left; | |||
background-color: #a8a8a8; | |||
border-radius: 8px; | |||
img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
object-position: center; | |||
} | |||
} | |||
.nearby_detail { | |||
width: calc(100% - 120px); | |||
float: left; | |||
padding-left: 20px; | |||
padding-top: 40px; | |||
h5 { | |||
margin: 0px; | |||
padding: 0px; | |||
color: rgba(59, 57, 77, 1); | |||
font-weight: 900; | |||
padding-bottom: 2px; | |||
img { | |||
width: 16px; | |||
} | |||
} | |||
p { | |||
margin: 0px; | |||
padding: 0px; | |||
color: rgba(176, 174, 199); | |||
} | |||
} | |||
} | |||
} | |||
} | } | ||
} | .product_detail { | ||
.nearby_shop_list { | padding: 10px; | ||
ul { | hr { | ||
margin: 0px; | border-bottom: 1px solid rgba(176, 174, 199); | ||
padding-left: 10px; | height: 0px; | ||
padding-right: 10px; | border-top: none; | ||
li { | |||
list-style: none; | |||
padding-bottom: 10px; | |||
.nearby_image { | |||
width: 120px; | |||
height: 120px; | |||
float: left; | |||
background-color: #a8a8a8; | |||
border-radius: 8px; | |||
img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
object-position: center; | |||
} | |||
} | } | ||
.nearby_detail { | h6 { | ||
width: calc(100% - 120px); | |||
float: left; | |||
padding-left: 20px; | |||
padding-top: 40px; | |||
h5 { | |||
margin: 0px; | margin: 0px; | ||
padding: 0px; | padding: 0px; | ||
color: rgba(59, 57, 77, 1); | color: #29285b; | ||
font-weight: 900; | font-size: 18px; | ||
padding-bottom: 2px; | padding-bottom: 15px; | ||
img { | } | ||
width: 16px; | h5 { | ||
} | |||
} | |||
p { | |||
margin: 0px; | margin: 0px; | ||
padding: 0px; | padding: 0px; | ||
color: rgba(176, 174, 199); | color: rgba(176, 174, 199, 1); | ||
} | font-size: 18px; | ||
line-height: 25px; | |||
padding-bottom: 15px; | |||
strong { | |||
color: rgba(41, 40, 91, 1); | |||
} | |||
span { | |||
color: rgba(41, 40, 91, 1); | |||
} | |||
.afterpay { | |||
color: rgba(206, 153, 76, 1); | |||
padding-left: 10px; | |||
} | |||
} | } | ||
} | h4 { | ||
} | color: rgba(41, 40, 91, 1); | ||
} | margin: 0px; | ||
.product_detail { | font-weight: 900; | ||
padding: 10px; | font-size: 18px; | ||
hr { | padding-top: 20px; | ||
border-bottom: 1px solid rgba(176, 174, 199); | padding-bottom: 10px; | ||
height: 0px; | } | ||
border-top: none; | .cancel_btn { | ||
} | border-radius: 8px; | ||
h6 { | height: 45px; | ||
margin: 0px; | |||
padding: 0px; | |||
color: #29285b; | |||
font-size: 18px; | |||
padding-bottom: 15px; | |||
} | |||
h5 { | |||
margin: 0px; | |||
padding: 0px; | |||
color: rgba(176, 174, 199, 1); | |||
font-size: 18px; | |||
line-height: 25px; | |||
padding-bottom: 15px; | |||
strong { | |||
color: rgba(41, 40, 91, 1); | |||
} | |||
span { | |||
color: rgba(41, 40, 91, 1); | |||
} | |||
.afterpay { | |||
color: rgba(206, 153, 76, 1); | |||
padding-left: 10px; | |||
} | |||
} | |||
h4 { | |||
color: rgba(41, 40, 91, 1); | |||
margin: 0px; | |||
font-weight: 900; | |||
font-size: 18px; | |||
padding-top: 20px; | |||
padding-bottom: 10px; | |||
} | |||
.cancel_btn { | |||
border-radius: 8px; | |||
height: 45px; | |||
width: 100%; | |||
background-color: #29285b; | |||
color: #fff; | |||
font-size: 18px; | |||
font-weight: lighter; | |||
padding-left: 20px; | |||
padding-right: 20px; | |||
margin-bottom: 20px; | |||
margin-top: 20px; | |||
} | |||
} | |||
.related_product_slider { | |||
h5 { | |||
color: rgba(41, 40, 91, 1); | |||
margin: 0px; | |||
padding: 10px; | |||
font-weight: 900; | |||
font-size: 18px; | |||
} | |||
p { | |||
color: rgba(59, 57, 77, 1); | |||
padding: 10px; | |||
text-align: justify; | |||
margin: 0px; | |||
font-size: 18px; | |||
} | |||
ul { | |||
padding: 10px; | |||
padding-bottom: 0px; | |||
padding-top: 0px; | |||
margin: 0px; | |||
li { | |||
width: 100%; | |||
display: inline-block; | |||
border-top: none; | |||
border-bottom: none; | |||
margin-bottom: 10px; | |||
.product_image { | |||
height: 235px; | |||
position: relative; | |||
.featured_badge { | |||
position: absolute; | |||
top: 20px; | |||
left: 0px; | |||
color: #fff; | |||
background-color: rgba(41, 40, 91, 1); | |||
padding: 2px; | |||
padding-left: 10px; | |||
padding-right: 10px; | |||
font-size: 13px; | |||
} | |||
.fav_icon { | |||
position: absolute; | |||
top: 10px; | |||
right: 10px; | |||
font-size: 27px; | |||
width: 30px; | |||
height: 30px; | |||
background-image: url('../../assets/Group32_2.png'); | |||
background-position: center; | |||
background-repeat: no-repeat; | |||
background-size: 24px; | |||
} | |||
img { | |||
width: 100%; | width: 100%; | ||
height: 100%; | background-color: #29285b; | ||
object-fit: cover; | color: #fff; | ||
object-position: center; | font-size: 18px; | ||
} | font-weight: lighter; | ||
padding-left: 20px; | |||
padding-right: 20px; | |||
margin-bottom: 20px; | |||
margin-top: 20px; | |||
} | } | ||
.delivery-wrap { | |||
img { | |||
width: 20px; | |||
margin-top: 20px; | |||
} | |||
} | |||
} | |||
.related_product_slider { | |||
h5 { | h5 { | ||
margin: 0px; | color: rgba(41, 40, 91, 1); | ||
padding: 0px; | margin: 0px; | ||
color: rgba(59, 57, 77, 1); | padding: 10px; | ||
padding-top: 5px; | font-weight: 900; | ||
padding-bottom: 5px; | font-size: 18px; | ||
font-weight: 500; | |||
text-align: left; | |||
font-size: 16px; | |||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | } | ||
p { | p { | ||
margin: 0px; | color: rgba(59, 57, 77, 1); | ||
padding: 0px; | padding: 10px; | ||
color: rgba(176, 174, 199, 1); | text-align: justify; | ||
font-size: 12px; | margin: 0px; | ||
text-align: left; | font-size: 18px; | ||
span { | } | ||
text-decoration: line-through; | ul { | ||
margin-left: 10px; | padding: 10px; | ||
color: rgba(215, 213, 228, 1); | padding-bottom: 0px; | ||
} | padding-top: 0px; | ||
.offer { | margin: 0px; | ||
color: #fff; | li { | ||
background-color: rgba(41, 40, 91, 1); | width: 100%; | ||
border-radius: 4px; | display: inline-block; | ||
text-decoration: none; | border-top: none; | ||
padding: 3px; | border-bottom: none; | ||
font-size: 13px; | margin-bottom: 10px; | ||
} | .product_image { | ||
height: 235px; | |||
position: relative; | |||
.featured_badge { | |||
position: absolute; | |||
top: 20px; | |||
left: 0px; | |||
color: #fff; | |||
background-color: rgba(41, 40, 91, 1); | |||
padding: 2px; | |||
padding-left: 10px; | |||
padding-right: 10px; | |||
font-size: 13px; | |||
} | |||
.fav_icon { | |||
position: absolute; | |||
top: 10px; | |||
right: 10px; | |||
font-size: 27px; | |||
width: 30px; | |||
height: 30px; | |||
background-image: url('../../assets/Group32_2.png'); | |||
background-position: center; | |||
background-repeat: no-repeat; | |||
background-size: 24px; | |||
} | |||
img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
object-position: center; | |||
} | |||
} | |||
h5 { | |||
margin: 0px; | |||
padding: 0px; | |||
color: rgba(59, 57, 77, 1); | |||
padding-top: 5px; | |||
padding-bottom: 5px; | |||
font-weight: 500; | |||
text-align: left; | |||
font-size: 16px; | |||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | |||
p { | |||
margin: 0px; | |||
padding: 0px; | |||
color: rgba(176, 174, 199, 1); | |||
font-size: 12px; | |||
text-align: left; | |||
span { | |||
text-decoration: line-through; | |||
margin-left: 10px; | |||
color: rgba(215, 213, 228, 1); | |||
} | |||
.offer { | |||
color: #fff; | |||
background-color: rgba(41, 40, 91, 1); | |||
border-radius: 4px; | |||
text-decoration: none; | |||
padding: 3px; | |||
font-size: 13px; | |||
} | |||
} | |||
} | |||
} | } | ||
} | |||
} | } | ||
} | |||
} | } | ||
.prodName { | .prodName { | ||
white-space: nowrap; | white-space: nowrap; | ||
width: 200px; | width: 200px; | ||
overflow: hidden; | overflow: hidden; | ||
text-overflow: ellipsis; | text-overflow: ellipsis; | ||
} | } | ||
\ No newline at end of file |
Please
register
or
sign in
to comment