diff --git a/store-front/src/app/components/order/order.component.html b/store-front/src/app/components/order/order.component.html index 8c49296..65e853e 100644 --- a/store-front/src/app/components/order/order.component.html +++ b/store-front/src/app/components/order/order.component.html @@ -56,7 +56,7 @@
There are some fields missing. Field with * is required.
- +
@@ -120,7 +120,7 @@
- + Next
@@ -278,7 +278,7 @@ - Next + Next @@ -340,7 +340,7 @@ >{{shoppingCart.grandTotal}}

-

By placing your order, you agree to Le's Bookstore privacy notice and conditions of use.

diff --git a/store-front/src/app/components/order/order.component.ts b/store-front/src/app/components/order/order.component.ts index bbfd19d..f20fc35 100644 --- a/store-front/src/app/components/order/order.component.ts +++ b/store-front/src/app/components/order/order.component.ts @@ -28,6 +28,7 @@ export class OrderComponent implements OnInit { private userPayment:UserPayment = new UserPayment(); private userShipping:UserShipping = new UserShipping(); private userBilling: UserBilling = new UserBilling(); + private selectedTab: number; constructor(private router:Router, private cartService: CartService) { } @@ -36,6 +37,18 @@ export class OrderComponent implements OnInit { this.router.navigate(['/bookDetail', this.selectedBook.id]); } + selectedChange(val :number ){ + this.selectedTab=val; + } + + goToPayment() { + this.selectedTab=1; + } + + goToReview() { + this.selectedTab=2; + } + getCartItemList(){ this.cartService.getCartItemList().subscribe( res=>{ @@ -63,4 +76,6 @@ export class OrderComponent implements OnInit { ); } + + }