# Booking ID
-
-
: AP-00001
+
+ :{{bookingSummary.bookingId}}
-
@@ -21,32 +62,32 @@
Service
-
-
: ENT 15mins
+
+ : {{serviceMapDetails.service[0].servicesName}} ( {{serviceMapDetails.service[0].duration}} Minutes)
Practitioner
-
-
: Gopi
+
+ : {{serviceMapDetails.user[0].userName}}
Date & Time
-
-
: 27 Mar 2023 03:30
+
+ : {{bookingSummary.appoinmentDate | date:'fullDate'}}({{bookingSummary.appoinmentSlots | date:'shortTime'}})
Contact Details
-
-
: 5689741230
+
+ : {{serviceMapDetails.user[0].contactNo}}
@@ -55,8 +96,8 @@
Booked On
-
-
: 27 Mar 2023
+
+ : {{bookingSummary.createdAt | date:'fullDate'}}
@@ -72,6 +113,8 @@
+
+
\ No newline at end of file
diff --git a/ng-seed/src/app/end-user/booking-summary/booking-summary.component.scss b/ng-seed/src/app/end-user/booking-summary/booking-summary.component.scss
index 74fcb71..875b942 100644
--- a/ng-seed/src/app/end-user/booking-summary/booking-summary.component.scss
+++ b/ng-seed/src/app/end-user/booking-summary/booking-summary.component.scss
@@ -13,4 +13,12 @@ mat-toolbar{
}
::ng-deep body{
background-color: #f7f8f5 !important;
+}
+.radius{
+ width: 100%;
+ margin-top: 5%;
+}
+.radius1{
+
+ margin-top: 5%;
}
\ No newline at end of file
diff --git a/ng-seed/src/app/end-user/booking-summary/booking-summary.component.ts b/ng-seed/src/app/end-user/booking-summary/booking-summary.component.ts
index f24a90f..3669b6f 100644
--- a/ng-seed/src/app/end-user/booking-summary/booking-summary.component.ts
+++ b/ng-seed/src/app/end-user/booking-summary/booking-summary.component.ts
@@ -1,4 +1,6 @@
import { Component, OnInit } from '@angular/core';
+import { EndUserService } from '../end-user.service';
+import { Router } from '@angular/router';
@Component({
selector: 'app-booking-summary',
@@ -6,10 +8,45 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./booking-summary.component.scss']
})
export class BookingSummaryComponent implements OnInit {
+ bookingSummary: any=[];
+ serviceMapDetails: any=[];
+ summary:any= false;
+ constructor(public end_user:EndUserService,private router:Router,) {
+ this.end_user.summmarylist_observable$.subscribe((res) => {
+ console.log('booked', res);
+ if(res.length>0){
+ // this.bookedAppointment_servicemap=res[0].id;
+ }else{
+
+ let URL = this.router.url;
+ console.log(URL)
+ let URL_AS_LIST = URL.split('/');
+ console.log(URL_AS_LIST);
+ this.router.navigate(['customer/business/'+URL_AS_LIST[3]])
+ }
+
+ })
- constructor() { }
+ }
ngOnInit(): void {
- }
+ this.end_user.summmarylist_observable$.subscribe((res) => {
+ console.log('booked2', res);
+ this.bookingSummary = res[0]
+ // this.end_user.getcusServicesMapDetails()
+ let param ={id:this.bookingSummary.serviceMap}
+ this.end_user.getcusServicesMapDetails(param).subscribe(res => {
+ if (res.status == 200) {
+ console.log(res)
+ this.serviceMapDetails = res['data'][0]
+
+ }
+ })
+
+ })
+ }
+ Summaryhide(){
+ this.summary = true;
+ }
}
diff --git a/ng-seed/src/app/end-user/consultants/consultants-list.component.html b/ng-seed/src/app/end-user/consultants/consultants-list.component.html
index 6474f68..82f7355 100644
--- a/ng-seed/src/app/end-user/consultants/consultants-list.component.html
+++ b/ng-seed/src/app/end-user/consultants/consultants-list.component.html
@@ -19,7 +19,7 @@