Commit e8dbdecb by Tobin

daily commit

parent 4e8dbccc
...@@ -5,6 +5,9 @@ import { NgxCarousel } from 'ngx-carousel'; ...@@ -5,6 +5,9 @@ import { NgxCarousel } from 'ngx-carousel';
import { MapsAPILoader } from '@agm/core'; import { MapsAPILoader } from '@agm/core';
import { SubjectService } from '../../provider/subject.service'; import { SubjectService } from '../../provider/subject.service';
import { FormGroup, FormControl, Validators, ValidationErrors } from '@angular/forms'; import { FormGroup, FormControl, Validators, ValidationErrors } from '@angular/forms';
import { google } from '@google/maps';
import { ImageStorage } from '../../../environments/server.config';
declare var $; declare var $;
declare const google: any; declare const google: any;
...@@ -46,7 +49,8 @@ export class IndexComponent implements OnInit { ...@@ -46,7 +49,8 @@ export class IndexComponent implements OnInit {
selectedIssues: any[] = new Array(); selectedIssues: any[] = new Array();
//Quote Page //Quote Page
imageServer: string;
mechanicData: any;
carModel: any; carModel: any;
carSearchJsonData: any; carSearchJsonData: any;
...@@ -58,6 +62,7 @@ export class IndexComponent implements OnInit { ...@@ -58,6 +62,7 @@ export class IndexComponent implements OnInit {
public webService : WebService, public webService : WebService,
public mapsAPILoader : MapsAPILoader, public mapsAPILoader : MapsAPILoader,
public subjectService : SubjectService) { public subjectService : SubjectService) {
this.imageServer = ImageStorage;
this.loginDetails = false; this.loginDetails = false;
this.searchLocError = false; this.searchLocError = false;
this.vehicleDataFormSubmit = false; this.vehicleDataFormSubmit = false;
...@@ -212,7 +217,8 @@ export class IndexComponent implements OnInit { ...@@ -212,7 +217,8 @@ export class IndexComponent implements OnInit {
this.webService.post_data('getNearByMechanics',this.wizardData.pickup_data).subscribe(response => { this.webService.post_data('getNearByMechanics',this.wizardData.pickup_data).subscribe(response => {
this.loader = false; this.loader = false;
if(response.status == '1'){ if(response.status == '1'){
this.issuesData = response.issue_data; this.mechanicData = response.mechanic_data;
console.log(this.mechanicData);
} else { } else {
this.router.navigate(["index"]); this.router.navigate(["index"]);
} }
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
Welcome back,  {{ loginDetails.first_name | titlecase }} Welcome back,  {{ loginDetails.first_name | titlecase }}
</div> </div>
<div class="account_pic"> <div class="account_pic">
<img src="{{imageServer + loginDetails.profile_image}}" onerror="this.src='./../assets/images/user_avatar.jpg';"> <img src="{{imageServer + loginDetails.profile_image}}" onerror="this.src='assets/images/user_avatar.jpg'">
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment