mail and enduser changes added
This commit is contained in:
parent
df1a32a4a7
commit
433f7d4cb4
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<ng-container matColumnDef="id">
|
<ng-container matColumnDef="id">
|
||||||
<th mat-header-cell *matHeaderCellDef class="font-color mat-no">S.No </th>
|
<th mat-header-cell *matHeaderCellDef class="font-color mat-no">S.No </th>
|
||||||
<td mat-cell *matCellDef="let element" class="element-spc"> {{element.id}} </td>
|
<td mat-cell *matCellDef="let element" class="element-spc"> {{element.index+1}} </td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container matColumnDef="subject">
|
<ng-container matColumnDef="subject">
|
||||||
|
|||||||
@ -67,6 +67,11 @@ export class MailLogComponent implements OnInit {
|
|||||||
this.mailLogList = res.data;
|
this.mailLogList = res.data;
|
||||||
console.log(this.mailLogList)
|
console.log(this.mailLogList)
|
||||||
this.mailLogListLength = res.data.length;
|
this.mailLogListLength = res.data.length;
|
||||||
|
this.mailLogList.forEach((element, index) => {
|
||||||
|
element.index = index
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
this.mailLogListSource['data'] = this.mailLogList;
|
this.mailLogListSource['data'] = this.mailLogList;
|
||||||
console.log(this.mailLogListSource)
|
console.log(this.mailLogListSource)
|
||||||
this.recordStatus=false;
|
this.recordStatus=false;
|
||||||
|
|||||||
@ -121,7 +121,7 @@
|
|||||||
<span class="head">Booked On</span>
|
<span class="head">Booked On</span>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="75" fxFlex.sm="75" fxFlex.md="75" fxFlex.lg="75" fxFlex.xl="75">
|
<div fxFlex.xs="75" fxFlex.sm="75" fxFlex.md="75" fxFlex.lg="75" fxFlex.xl="75">
|
||||||
<span>: {{bookingSummary.createdAt | date:'MM/dd/yyyy'}}</span>
|
<span>: {{bookingSummary.createdAt | date:'dd/MM/yyyy'}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|||||||
@ -40,13 +40,18 @@ export class BookingSummaryComponent implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit() {
|
||||||
this.end_user.summmarylist_observable$.subscribe((res) => {
|
this.end_user.summmarylist_observable$.subscribe((res) => {
|
||||||
console.log('booked2', res);
|
console.log('booked2', res);
|
||||||
this.customerBookingDetails = res[0].customer[0]
|
this.customerBookingDetails = res[0].customer[0]
|
||||||
console.log(this.customerBookingDetails)
|
console.log(this.customerBookingDetails)
|
||||||
this.bookingSummary = res[0]
|
this.bookingSummary = res[0]
|
||||||
|
if(this.bookingSummary.appoinmentSlots instanceof Array){
|
||||||
|
this.bookingSummary.appoinmentSlots =this.bookingSummary.appoinmentSlots
|
||||||
|
}else{
|
||||||
this.bookingSummary.appoinmentSlots =JSON.parse(this.bookingSummary.appoinmentSlots)
|
this.bookingSummary.appoinmentSlots =JSON.parse(this.bookingSummary.appoinmentSlots)
|
||||||
|
}
|
||||||
|
// this.bookingSummary.appoinmentSlots =JSON.parse(this.bookingSummary.appoinmentSlots)
|
||||||
|
|
||||||
// this.end_user.getcusServicesMapDetails()
|
// this.end_user.getcusServicesMapDetails()
|
||||||
let param ={id:this.bookingSummary.serviceMap}
|
let param ={id:this.bookingSummary.serviceMap}
|
||||||
|
|||||||
@ -124,7 +124,7 @@
|
|||||||
<p class="param"><img src="assets/images/Time-Icon.svg" alt="Avatar" class="img">Time </p>
|
<p class="param"><img src="assets/images/Time-Icon.svg" alt="Avatar" class="img">Time </p>
|
||||||
<span class="span-text">{{bookedDetails.time | date:'shortTime'}}</span>
|
<span class="span-text">{{bookedDetails.time | date:'shortTime'}}</span>
|
||||||
<p class="param"><img src="assets/images/Location.svg" alt="Avatar" class="img">Amount </p>
|
<p class="param"><img src="assets/images/Location.svg" alt="Avatar" class="img">Amount </p>
|
||||||
<span class="span-text"><span class="ex" style="font-size: 17px;padding-bottom: 10px;line-height: 17px;">₹</span> {{bookedDetails.amount}}</span>
|
<span class="span-text"><span class="ex" style="font-size: 12px;padding-bottom: 10px;line-height: 17px;">{{currency}}</span> {{bookedDetails.amount}}</span>
|
||||||
<!-- <div>
|
<!-- <div>
|
||||||
<hr>
|
<hr>
|
||||||
<button mat-raised-button mat-button-sm class="mr-1 mb-1 mt-1 btn-red" [ngStyle]="{'background':slot_array.length ==0 ? '#ccc':'#4caf50' }" [disabled]="slot_array.length ==0" (click)="submit()">PROCEED</button>
|
<button mat-raised-button mat-button-sm class="mr-1 mb-1 mt-1 btn-red" [ngStyle]="{'background':slot_array.length ==0 ? '#ccc':'#4caf50' }" [disabled]="slot_array.length ==0" (click)="submit()">PROCEED</button>
|
||||||
|
|||||||
@ -37,6 +37,7 @@ export class CustomerInfoComponent implements OnInit {
|
|||||||
otp!: string;
|
otp!: string;
|
||||||
verifykey: any;
|
verifykey: any;
|
||||||
busName: string;
|
busName: string;
|
||||||
|
currency:any=[];
|
||||||
noChangeNo: any = 0;
|
noChangeNo: any = 0;
|
||||||
private apiUrl = environment.apiEndpoint;
|
private apiUrl = environment.apiEndpoint;
|
||||||
logo: any;
|
logo: any;
|
||||||
@ -53,6 +54,7 @@ export class CustomerInfoComponent implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.busName = localStorage.getItem('busName')
|
this.busName = localStorage.getItem('busName')
|
||||||
|
this.currency = localStorage.getItem('currency')
|
||||||
this.logo = localStorage.getItem('logo')
|
this.logo = localStorage.getItem('logo')
|
||||||
this.form = new FormGroup({
|
this.form = new FormGroup({
|
||||||
cusName: new FormControl('', [Validators.required]),
|
cusName: new FormControl('', [Validators.required]),
|
||||||
|
|||||||
@ -21,6 +21,7 @@ export class DoctorProfileComponent implements OnInit {
|
|||||||
ServicesMapDetailsList:any=[];
|
ServicesMapDetailsList:any=[];
|
||||||
backRouting: any = [];
|
backRouting: any = [];
|
||||||
logo: any;
|
logo: any;
|
||||||
|
currency:any=[];
|
||||||
constructor( private _location: Location,private router:Router,public end_user:EndUserService,private spinner:NgxSpinnerService) {
|
constructor( private _location: Location,private router:Router,public end_user:EndUserService,private spinner:NgxSpinnerService) {
|
||||||
// this.spinner.show()
|
// this.spinner.show()
|
||||||
let URL = this.router.url;
|
let URL = this.router.url;
|
||||||
@ -37,6 +38,7 @@ export class DoctorProfileComponent implements OnInit {
|
|||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.busName = localStorage.getItem('busName')
|
this.busName = localStorage.getItem('busName')
|
||||||
|
this.currency = localStorage.getItem('currency')
|
||||||
this.logo = localStorage.getItem('logo')
|
this.logo = localStorage.getItem('logo')
|
||||||
let service = localStorage.getItem("servicedetails")
|
let service = localStorage.getItem("servicedetails")
|
||||||
let serviceDetails = JSON.parse(service)
|
let serviceDetails = JSON.parse(service)
|
||||||
|
|||||||
@ -83,6 +83,7 @@ export class ServiceListComponent implements OnInit {
|
|||||||
console.log(this.full_data)
|
console.log(this.full_data)
|
||||||
this.full_data[0].business[0].busName
|
this.full_data[0].business[0].busName
|
||||||
localStorage.setItem('busName',this.full_data[0].business[0].busName)
|
localStorage.setItem('busName',this.full_data[0].business[0].busName)
|
||||||
|
localStorage.setItem('currency',this.full_data[0].business[0].currency)
|
||||||
localStorage.setItem('logo',this.full_data[0].business[0].logo)
|
localStorage.setItem('logo',this.full_data[0].business[0].logo)
|
||||||
let tmp =[];
|
let tmp =[];
|
||||||
res['data'].forEach(element => {
|
res['data'].forEach(element => {
|
||||||
|
|||||||
@ -214,7 +214,7 @@
|
|||||||
<p class="param"><img src="assets/images/Time-Icon.svg" alt="Avatar" class="img">Time : </p>
|
<p class="param"><img src="assets/images/Time-Icon.svg" alt="Avatar" class="img">Time : </p>
|
||||||
<span class="span-text">{{slotTime | date:'shortTime'}}</span>
|
<span class="span-text">{{slotTime | date:'shortTime'}}</span>
|
||||||
<p class="param"><img src="assets/images/Location.svg" alt="Avatar" class="img">Amount : </p>
|
<p class="param"><img src="assets/images/Location.svg" alt="Avatar" class="img">Amount : </p>
|
||||||
<span class="span-text"><span class="ex" style="font-size: 17px;padding-bottom: 10px;line-height: 17px;">₹</span> {{ serviceMapdetails[0].duration.length>0 ? serviceMapdetails[0].duration[0].fees:serviceMapdetails[0].service[0].fees}}</span>
|
<span class="span-text"><span class="ex" style="font-size: 12px;padding-bottom: 10px;line-height: 17px;">{{currency}}</span> {{ serviceMapdetails[0].duration.length>0 ? serviceMapdetails[0].duration[0].fees:serviceMapdetails[0].service[0].fees}}</span>
|
||||||
<div>
|
<div>
|
||||||
<hr>
|
<hr>
|
||||||
<button mat-raised-button mat-button-sm class="mr-1 mb-1 mt-1 btn-red" [ngStyle]="{'background':slot_array.length ==0 ? '#ccc':'#4caf50' }" [disabled]="slot_array.length ==0" (click)="submit()">PROCEED</button>
|
<button mat-raised-button mat-button-sm class="mr-1 mb-1 mt-1 btn-red" [ngStyle]="{'background':slot_array.length ==0 ? '#ccc':'#4caf50' }" [disabled]="slot_array.length ==0" (click)="submit()">PROCEED</button>
|
||||||
|
|||||||
@ -28,6 +28,7 @@ export class SlotBookingDetailsComponent implements OnInit {
|
|||||||
name = 'Angular';
|
name = 'Angular';
|
||||||
date = new Date();
|
date = new Date();
|
||||||
clicks:any = 0;
|
clicks:any = 0;
|
||||||
|
currency:any=[];
|
||||||
control = new FormControl(
|
control = new FormControl(
|
||||||
{
|
{
|
||||||
from: this.date,
|
from: this.date,
|
||||||
@ -386,6 +387,7 @@ if(this.getHours.length != 0){
|
|||||||
|
|
||||||
getApiData(){
|
getApiData(){
|
||||||
this.busName = localStorage.getItem('busName')
|
this.busName = localStorage.getItem('busName')
|
||||||
|
this.currency = localStorage.getItem('currency')
|
||||||
this.logo = localStorage.getItem('logo')
|
this.logo = localStorage.getItem('logo')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user