demo changes done
This commit is contained in:
commit
fc3c328574
@ -590,15 +590,15 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="booking-url">
|
<div class="booking-url">
|
||||||
<p class="booking-para">Here's your personal booking page. Edit and share this link with customers so they can book your Services directly.</p>
|
<p class="booking-para">Here's your personal booking page. share this link with customers so they can book your Services directly.</p>
|
||||||
<span class="underline-title full-width">Appoinment booking domain</span>
|
<span class="underline-title full-width">Appointment booking URL</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="boxmiddle fl boxsize mt20">
|
<div class="boxmiddle fl boxsize mt20">
|
||||||
<div class="booking-urls">
|
<div class="booking-urls">
|
||||||
<div class="url-generate mb20">
|
<div class="url-generate mb20">
|
||||||
<div class="url-link dis-flex">
|
<div class="url-link dis-flex">
|
||||||
<span class="url field-center boxsize">
|
<span class="url field-center boxsize">
|
||||||
<input type="text" placeholder=" {{endUserURL}}" class="booking-url-input boxsize text-ellipsis cn ember-text-field ember-view">
|
<input type="text" placeholder=" {{endUserURL}}" class="booking-url-input boxsize text-ellipsis cn ember-text-field ember-view" readonly>
|
||||||
</span>
|
</span>
|
||||||
<!-- <span id="zb-mb-BookingPageUrlCustomize" class="customize-link field-center cp ml10 mt0 mr10" data-ember-action="" data-ember-action-813="813">Customize</span> -->
|
<!-- <span id="zb-mb-BookingPageUrlCustomize" class="customize-link field-center cp ml10 mt0 mr10" data-ember-action="" data-ember-action-813="813">Customize</span> -->
|
||||||
<span class="url-button field-center boxsize pb1" *ngIf="copiedKey == 0"><button (click)="copyToClipBoard(endUserURL)" class="copy-button boxsize cp">Copy</button></span>
|
<span class="url-button field-center boxsize pb1" *ngIf="copiedKey == 0"><button (click)="copyToClipBoard(endUserURL)" class="copy-button boxsize cp">Copy</button></span>
|
||||||
|
|||||||
@ -43,7 +43,7 @@ export class ConsultantSettingComponent implements OnInit {
|
|||||||
"qualification":null,
|
"qualification":null,
|
||||||
"days": null,
|
"days": null,
|
||||||
"languages": null,
|
"languages": null,
|
||||||
"workingHours": JSON.stringify([{"sunday":{"hours":[{"startTime":"09:30 am","endTime":"06:00 pm","day":"sunday","value":null}],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"tuesday","value":null}],"breaks":[]}},{"wednesday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"wednesday","value":null}],"breaks":[]}},{"thursday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"thursday","value":null}],"breaks":[]}},{"friday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"friday","value":null}],"breaks":[]}},{"saturday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"saturday","value":null}],"breaks":[]}}]),
|
"workingHours": JSON.stringify([{"sunday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"sunday","value":null}],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"tuesday","value":null}],"breaks":[]}},{"wednesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"wednesday","value":null}],"breaks":[]}},{"thursday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"thursday","value":null}],"breaks":[]}},{"friday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"friday","value":null}],"breaks":[]}},{"saturday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"saturday","value":null}],"breaks":[]}}]),
|
||||||
// "dob": null,
|
// "dob": null,
|
||||||
// "designtion": null,
|
// "designtion": null,
|
||||||
"gender": null,
|
"gender": null,
|
||||||
@ -238,7 +238,7 @@ unavailability(action,obj) {
|
|||||||
"qualification":null,
|
"qualification":null,
|
||||||
"days": null,
|
"days": null,
|
||||||
"languages": null,
|
"languages": null,
|
||||||
"workingHours": JSON.stringify( [{"sunday":{"hours":[],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[],"breaks":[]}},{"wednesday":{"hours":[],"breaks":[]}},{"thursday":{"hours":[],"breaks":[]}},{"friday":{"hours":[],"breaks":[]}},{"saturday":{"hours":[],"breaks":[]}}]),
|
"workingHours": JSON.stringify( [{"sunday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"sunday","value":null}],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"tuesday","value":null}],"breaks":[]}},{"wednesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"wednesday","value":null}],"breaks":[]}},{"thursday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"thursday","value":null}],"breaks":[]}},{"friday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"friday","value":null}],"breaks":[]}},{"saturday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"saturday","value":null}],"breaks":[]}}]),
|
||||||
// "dob": null,
|
// "dob": null,
|
||||||
// "designtion": null,
|
// "designtion": null,
|
||||||
"gender": null,
|
"gender": null,
|
||||||
@ -249,7 +249,7 @@ unavailability(action,obj) {
|
|||||||
|
|
||||||
}]
|
}]
|
||||||
let param;
|
let param;
|
||||||
let tmp = [{"sunday":{"hours":[],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[],"breaks":[]}},{"wednesday":{"hours":[],"breaks":[]}},{"thursday":{"hours":[],"breaks":[]}},{"friday":{"hours":[],"breaks":[]}},{"saturday":{"hours":[],"breaks":[]}}]
|
let tmp = [{"sunday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"sunday","value":null}],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"tuesday","value":null}],"breaks":[]}},{"wednesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"wednesday","value":null}],"breaks":[]}},{"thursday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"thursday","value":null}],"breaks":[]}},{"friday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"friday","value":null}],"breaks":[]}},{"saturday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"saturday","value":null}],"breaks":[]}}]
|
||||||
|
|
||||||
param ={practitionerId: this.usersList.id,workingHours:JSON.stringify(tmp),days:7}
|
param ={practitionerId: this.usersList.id,workingHours:JSON.stringify(tmp),days:7}
|
||||||
this._api.createPractitionerInfo(param).subscribe(res => {
|
this._api.createPractitionerInfo(param).subscribe(res => {
|
||||||
|
|||||||
@ -1,17 +1,25 @@
|
|||||||
<h3>Services Details</h3>
|
<h3>Services Details</h3>
|
||||||
<mat-form-field style="width:30%">
|
<div fxLayout="row wrap">
|
||||||
<mat-label>Filter</mat-label>
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="start center" >
|
||||||
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Type Here" #input>
|
<mat-form-field style="width:60%">
|
||||||
</mat-form-field>
|
<mat-label>Filter</mat-label>
|
||||||
<mat-form-field appearance="outline" style="width:20%;margin-left: 5%;" *ngIf="user_role == 'FRONTDESK'">
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Type Here" #input>
|
||||||
<mat-label>Practitioner</mat-label>
|
</mat-form-field>
|
||||||
<mat-select placeholder="Select Practitioner" [(ngModel)]="selectPractitioner" required>
|
</div>
|
||||||
<mat-option value="All" (click)="allPractitioner()">All</mat-option>
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="end center" >
|
||||||
<mat-option *ngFor="let details of consultants" (click)="getPractitioner(details)" [value]="details.id">
|
<mat-form-field appearance="outline" style="width:40%;margin-left: 5%;" *ngIf="user_role == 'FRONTDESK'">
|
||||||
{{details.userName}}
|
<mat-label>Practitioner</mat-label>
|
||||||
</mat-option>
|
<mat-select placeholder="Select Practitioner" [(ngModel)]="selectPractitioner" >
|
||||||
</mat-select>
|
<mat-option value="All" (click)="allPractitioner()">All</mat-option>
|
||||||
</mat-form-field>
|
<mat-option *ngFor="let details of consultants" (click)="getPractitioner(details)" [value]="details.id">
|
||||||
|
{{details.userName}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<button mat-button *ngIf="user_role != 'FRONTDESK'" (click)="openDialog('Add',{})" class="button">Add Services</button>
|
<button mat-button *ngIf="user_role != 'FRONTDESK'" (click)="openDialog('Add',{})" class="button">Add Services</button>
|
||||||
<!-- <div class="example-container mat-elevation-z8 "> -->
|
<!-- <div class="example-container mat-elevation-z8 "> -->
|
||||||
<mat-sidenav-container class="app-inner background-none shadow-none mail-db">
|
<mat-sidenav-container class="app-inner background-none shadow-none mail-db">
|
||||||
|
|||||||
@ -71,6 +71,18 @@ export class ServiceListComponent implements OnInit {
|
|||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
this.consultants = res.data;
|
this.consultants = res.data;
|
||||||
|
let tmp =[]
|
||||||
|
res.data.forEach(element => {
|
||||||
|
|
||||||
|
if(element.role == "PRACTITIONER"){
|
||||||
|
tmp.push(element)
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
this.consultants = tmp;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.consultants=[];
|
this.consultants=[];
|
||||||
@ -104,16 +116,17 @@ export class ServiceListComponent implements OnInit {
|
|||||||
this.servicesList.sort((a: any, b: any) => {
|
this.servicesList.sort((a: any, b: any) => {
|
||||||
return b.serviceId - a.serviceId;
|
return b.serviceId - a.serviceId;
|
||||||
});
|
});
|
||||||
this.servicesList.forEach((element, index) => {
|
|
||||||
element.index = index
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
let result = this.servicesList.filter((obj, index, self) =>
|
let result = this.servicesList.filter((obj, index, self) =>
|
||||||
index === self.findIndex((t) => (
|
index === self.findIndex((t) => (
|
||||||
t.serviceId === obj.serviceId
|
t.serviceId === obj.serviceId
|
||||||
))
|
))
|
||||||
);
|
);
|
||||||
|
result.forEach((element, index) => {
|
||||||
|
element.index = index
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
this.servicesList = result
|
this.servicesList = result
|
||||||
this.servicesListSource['data'] = this.servicesList;
|
this.servicesListSource['data'] = this.servicesList;
|
||||||
this.servicesListLength = this.servicesList.length
|
this.servicesListLength = this.servicesList.length
|
||||||
|
|||||||
@ -357,7 +357,7 @@ export class UserListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let loginUser = localStorage.getItem('user_role')
|
let loginUser = localStorage.getItem('user_role')
|
||||||
if(loginUser == 'FRONTDESK'){
|
if(loginUser == "BIZADMIN"){
|
||||||
if(result.role == 'PRACTITIONER'){
|
if(result.role == 'PRACTITIONER'){
|
||||||
console.log('PRACTITIONER')
|
console.log('PRACTITIONER')
|
||||||
if(action == 'Update'){
|
if(action == 'Update'){
|
||||||
@ -368,7 +368,7 @@ export class UserListComponent implements OnInit {
|
|||||||
this.openAssignService(res['data'].id,'',res['data'].userName)
|
this.openAssignService(res['data'].id,'',res['data'].userName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
@ -85,6 +85,9 @@ export class BookingSummaryComponent implements OnInit {
|
|||||||
"appoinmentDate": slot_array[0].date,
|
"appoinmentDate": slot_array[0].date,
|
||||||
"appoinmentTime": time,
|
"appoinmentTime": time,
|
||||||
"serviceMap": serviceMap,
|
"serviceMap": serviceMap,
|
||||||
|
"paymentStatus": 1,
|
||||||
|
"paymentMode":"online",
|
||||||
|
"createdBy":"customer",
|
||||||
"appoinmentSlots": JSON.stringify(slot_array[0].slots)
|
"appoinmentSlots": JSON.stringify(slot_array[0].slots)
|
||||||
//"servicemap" :this.bookedAppointment_servicemap
|
//"servicemap" :this.bookedAppointment_servicemap
|
||||||
}
|
}
|
||||||
|
|||||||
@ -114,28 +114,43 @@
|
|||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
||||||
<mat-form-field style="width: 80%">
|
<mat-form-field style="width: 80%">
|
||||||
<input matInput placeholder="Name" type="text" name="name" formControlName="name" >
|
<input matInput placeholder="Name" type="text" name="name" formControlName="name" >
|
||||||
|
<mat-error *ngIf="myError('name', 'required')">Name is required</mat-error>
|
||||||
|
<mat-error *ngIf="myError('name', 'maxlength')">Limit exceed</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
||||||
<mat-form-field style="width: 80%">
|
<mat-form-field style="width: 80%">
|
||||||
<input matInput placeholder="Email" type="text" name="email" formControlName="email" >
|
<input matInput placeholder="Email" type="text" name="email" formControlName="email" >
|
||||||
|
<mat-error *ngIf="!form.get('email')?.errors?.required && (form.get('email')?.errors?.pattern)">
|
||||||
|
Please enter a valid email address
|
||||||
|
</mat-error>
|
||||||
|
<!-- <mat-error *ngIf="myError('email', 'required')">email is required</mat-error> -->
|
||||||
|
<mat-error *ngIf="form.get('email')?.invalid && (form.get('email')?.dirty || form.get('email')?.touched) && form.get('email')?.errors?.required">
|
||||||
|
Email is required
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
||||||
<mat-form-field style="width: 80%">
|
<mat-form-field style="width: 80%">
|
||||||
<input matInput placeholder="Phone No" type="text" name="phone" formControlName="phone" >
|
<!-- <input matInput placeholder="Phone No" type="text" name="phone" formControlName="phone" > -->
|
||||||
|
<input matInput type="text" appMobileNumberPattern maxlength="10" minlength="10" placeholder="Phone No" name="phone" formControlName="phone" [readonly]="noChangeNo == '1'" required>
|
||||||
|
<mat-error *ngIf="myError('phone', 'required')">Contact No is required</mat-error>
|
||||||
|
<mat-error *ngIf="myError('phone', 'pattern')">Invalid Contact No </mat-error>
|
||||||
|
<mat-error *ngIf="myError('phone', 'minlength')"> Contact No must be at least 10 characters</mat-error>
|
||||||
|
<mat-error *ngIf="myError('phone', 'maxlength')">Limit exceed</mat-error>
|
||||||
|
<div matSuffix *ngIf="verifyOTP != '1'">
|
||||||
|
<button mat-raised-button type="button" (click)="getOTP(1)" [disabled]="myError('phone', 'minlength') || myError('phone', 'required')" color="primary" class="mr-1 mb-1">Get OTP</button>
|
||||||
|
</div>
|
||||||
|
<span matSuffix *ngIf="verifyOTP == '1'"><mat-icon style="color: #4CAF50;">verified</mat-icon></span>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="sign-in-button"></div>
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
||||||
<mat-form-field style="width: 80%">
|
<mat-form-field style="width: 80%">
|
||||||
<input matInput placeholder="Address" type="text" name="address_line_1" formControlName="address_line_1" >
|
<input matInput placeholder="Address" type="text" name="address_line_1" formControlName="address_line_1" >
|
||||||
|
<mat-error *ngIf="myError('address_line_1', 'required')">Address is required</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -193,21 +208,21 @@
|
|||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
||||||
<mat-form-field style="width: 80%">
|
<mat-form-field style="width: 80%">
|
||||||
<input matInput placeholder="State" type="text" name="state" formControlName="state" >
|
<input matInput placeholder="State" type="text" name="state" formControlName="state" >
|
||||||
|
<mat-error *ngIf="myError('state', 'required')">state is required</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
||||||
<mat-form-field style="width: 80%">
|
<mat-form-field style="width: 80%">
|
||||||
<input matInput placeholder="City" type="text" name="city" formControlName="city" >
|
<input matInput placeholder="City" type="text" name="city" formControlName="city" >
|
||||||
|
<mat-error *ngIf="myError('city', 'required')">City is required</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="50" fxFlex.xl="50" class="p-gap" fxLayoutAlign="center center">
|
||||||
<mat-form-field style="width: 80%">
|
<mat-form-field style="width: 80%">
|
||||||
<input matInput placeholder="Pincode" type="text" name="zip_code" formControlName="zip_code" >
|
<input matInput placeholder="Pincode" type="text" name="zip_code" formControlName="zip_code" >
|
||||||
|
<mat-error *ngIf="myError('zip_code', 'required')">Pincode is required</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -263,7 +278,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: end;" >
|
<div style="text-align: end;" >
|
||||||
<button class="mat-green" type="button" (click)="onclickfun()" mat-raised-button>Submit</button>
|
<button class="mat-green" type="button" [disabled]="form.invalid" (click)="onclickfun()" mat-raised-button>Submit</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|||||||
@ -160,3 +160,10 @@ footer {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mat-green:disabled {
|
||||||
|
/* Styles for the button when it's disabled */
|
||||||
|
background-color: gray !important; /* Change the background color to gray */
|
||||||
|
color: white !important; /* Change the text color to white */
|
||||||
|
/* Add any other styling as desired */
|
||||||
|
}
|
||||||
@ -71,9 +71,11 @@ export class CustomerInfoComponent implements OnInit {
|
|||||||
hash:new FormControl('', []),
|
hash:new FormControl('', []),
|
||||||
amount: new FormControl('', []),
|
amount: new FormControl('', []),
|
||||||
name: new FormControl('', [Validators.required]),
|
name: new FormControl('', [Validators.required]),
|
||||||
email: new FormControl('', [Validators.required]),
|
email: new FormControl('', [Validators.required, Validators.email,Validators.pattern(
|
||||||
|
'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,63}$',
|
||||||
|
),]),
|
||||||
phone: new FormControl('', [Validators.required, Validators.minLength(10),Validators.maxLength(10)]),
|
phone: new FormControl('', [Validators.required, Validators.minLength(10),Validators.maxLength(10)]),
|
||||||
address_line_1: new FormControl('', [Validators.required]),
|
address_line_1: new FormControl('', [Validators.required,Validators.maxLength(100)]),
|
||||||
address_line_2:new FormControl('', []),
|
address_line_2:new FormControl('', []),
|
||||||
order_id: new FormControl('', []),
|
order_id: new FormControl('', []),
|
||||||
description: new FormControl('', []),
|
description: new FormControl('', []),
|
||||||
@ -81,9 +83,9 @@ export class CustomerInfoComponent implements OnInit {
|
|||||||
return_url: new FormControl('', []),
|
return_url: new FormControl('', []),
|
||||||
currency: new FormControl('', []),
|
currency: new FormControl('', []),
|
||||||
country: new FormControl('', []),
|
country: new FormControl('', []),
|
||||||
zip_code: new FormControl('', []),
|
zip_code: new FormControl('', [Validators.required]),
|
||||||
state: new FormControl('', []),
|
state: new FormControl('', [Validators.required]),
|
||||||
city: new FormControl('', []),
|
city: new FormControl('', [Validators.required]),
|
||||||
udf1: new FormControl('', []),
|
udf1: new FormControl('', []),
|
||||||
udf2: new FormControl('', []),
|
udf2: new FormControl('', []),
|
||||||
udf3: new FormControl('', []),
|
udf3: new FormControl('', []),
|
||||||
@ -279,7 +281,7 @@ export class CustomerInfoComponent implements OnInit {
|
|||||||
|
|
||||||
getOTP(event) {
|
getOTP(event) {
|
||||||
|
|
||||||
this.phoneNumber = this.form.value.phoneNo
|
this.phoneNumber = this.form.value.phone
|
||||||
if( this.phoneNumber.length!=10){
|
if( this.phoneNumber.length!=10){
|
||||||
alert("invalid Phone No...!")
|
alert("invalid Phone No...!")
|
||||||
}else{
|
}else{
|
||||||
@ -341,6 +343,8 @@ export class CustomerInfoComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
onclickfun(){
|
onclickfun(){
|
||||||
|
|
||||||
|
|
||||||
console.log("worked")
|
console.log("worked")
|
||||||
let row_obj = this.form.value
|
let row_obj = this.form.value
|
||||||
function generateRandomString() {
|
function generateRandomString() {
|
||||||
@ -348,6 +352,15 @@ export class CustomerInfoComponent implements OnInit {
|
|||||||
const randomNum = (Math.random() + 1).toString(36).substring(7);
|
const randomNum = (Math.random() + 1).toString(36).substring(7);
|
||||||
return prefix + randomNum;
|
return prefix + randomNum;
|
||||||
}
|
}
|
||||||
|
if(this.verifyOTP == 0){
|
||||||
|
this.getOTP(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!this.form.valid ){
|
||||||
|
|
||||||
|
return
|
||||||
|
}else {
|
||||||
|
if(this.verifyOTP == 1){
|
||||||
let payment = {
|
let payment = {
|
||||||
api_key: "4cb964d4-9ef4-4a25-8f85-a2a13f43cbba",
|
api_key: "4cb964d4-9ef4-4a25-8f85-a2a13f43cbba",
|
||||||
hash: '',
|
hash: '',
|
||||||
@ -427,5 +440,9 @@ this.paymentform = payment;
|
|||||||
)
|
)
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,7 +48,6 @@ export class DoctorProfileComponent implements OnInit {
|
|||||||
|
|
||||||
console.log('booked', res);
|
console.log('booked', res);
|
||||||
if(res.length>0){
|
if(res.length>0){
|
||||||
localStorage.setItem('busId',res[0].business[0].busId)
|
|
||||||
localStorage.setItem('busName',res[0].business[0].busName)
|
localStorage.setItem('busName',res[0].business[0].busName)
|
||||||
localStorage.setItem('logo',res[0].business[0].logo)
|
localStorage.setItem('logo',res[0].business[0].logo)
|
||||||
this.bookedAppointment = res[0].user[0]
|
this.bookedAppointment = res[0].user[0]
|
||||||
@ -58,6 +57,10 @@ export class DoctorProfileComponent implements OnInit {
|
|||||||
this.profileDetails = this.bookedAppointment.practitionerInfos[0]
|
this.profileDetails = this.bookedAppointment.practitionerInfos[0]
|
||||||
console.log(this.profileDetails)
|
console.log(this.profileDetails)
|
||||||
this.skillsDetails = JSON.parse(this.profileDetails.skills)
|
this.skillsDetails = JSON.parse(this.profileDetails.skills)
|
||||||
|
|
||||||
|
this.busName = res[0].business[0].busName
|
||||||
|
this.currency = localStorage.getItem('currency')
|
||||||
|
this.logo = res[0].business[0].logo
|
||||||
// this.skillsDetails = JSON.parse(this.skillsDetails)
|
// this.skillsDetails = JSON.parse(this.skillsDetails)
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
@ -147,6 +150,9 @@ export class DoctorProfileComponent implements OnInit {
|
|||||||
// console.log(filter)
|
// console.log(filter)
|
||||||
localStorage.setItem('workingHrs',this.consultants[0].practitionerInfos
|
localStorage.setItem('workingHrs',this.consultants[0].practitionerInfos
|
||||||
[0].workingHours)
|
[0].workingHours)
|
||||||
|
|
||||||
|
localStorage.setItem('busName',this.ServicesMapDetailsList[0].business[0].busName)
|
||||||
|
localStorage.setItem('logo',this.ServicesMapDetailsList[0].business[0].logo)
|
||||||
this.end_user.appointmentBooked.next(this.ServicesMapDetailsList)
|
this.end_user.appointmentBooked.next(this.ServicesMapDetailsList)
|
||||||
|
|
||||||
this.bookedAppointment = this.ServicesMapDetailsList[0].user[0]
|
this.bookedAppointment = this.ServicesMapDetailsList[0].user[0]
|
||||||
|
|||||||
@ -30,7 +30,7 @@ const HORIZONTALMENUITEMS = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
state: 'appointments',
|
state: 'appointments',
|
||||||
name: 'Appoinments',
|
name: 'Appointments',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'developer_board',
|
icon: 'developer_board',
|
||||||
// children: [
|
// children: [
|
||||||
|
|||||||
@ -42,7 +42,7 @@ const MENUITEMS : Menu[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
state: 'appointments',
|
state: 'appointments',
|
||||||
name: 'Appoinments',
|
name: 'Appointments',
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icon: 'calendar_today',
|
icon: 'calendar_today',
|
||||||
key: '1'
|
key: '1'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user