Commit 18df8c8f by Adarsh K

changes

parent 6afa4f28
...@@ -14,6 +14,7 @@ import { ServiceService } from './../../config/service.service'; ...@@ -14,6 +14,7 @@ import { ServiceService } from './../../config/service.service';
import { MyordersService } from './../../config/myorder.service'; import { MyordersService } from './../../config/myorder.service';
import { NgForm } from '@angular/forms'; import { NgForm } from '@angular/forms';
import * as firebase from 'firebase'; import * as firebase from 'firebase';
declare var google: any;
@Component({ @Component({
selector: 'app-changeaddress', selector: 'app-changeaddress',
...@@ -93,7 +94,7 @@ export class ChangeaddressPage implements OnInit { ...@@ -93,7 +94,7 @@ export class ChangeaddressPage implements OnInit {
mapReady(map) { mapReady(map) {
map.addListener('dragend', () => { map.addListener('dragend', () => {
console.log(this.newCenterLat, this.newCenterLng); console.log(this.newCenterLat, this.newCenterLng);
this.getAddress(this.latitude, this.longitude); this.getAddress(this.newCenterLat, this.newCenterLng);
}); });
} }
centerChange(e) { centerChange(e) {
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
</ion-col> </ion-col>
<ion-col class="no-gutter" size="8"> <ion-col class="no-gutter" size="8">
<div class="nav_title floatLeft relative"> <div class="nav_title floatLeft relative">
<input class="search_bar" placeholder="Search here.. eg:shirts, retailers etc..." (click)="clickSearch()" (input)="searchFun($event.target.value)" #searchText /> <input class="search_bar" placeholder="Search here.. eg:shirts, retailers etc..."
(click)="clickSearch($event.target.value)" (input)="searchFun($event.target.value)"
#searchText />
</div> </div>
</ion-col> </ion-col>
<ion-col class="no-gutter" size="2"> <ion-col class="no-gutter" size="2">
......
...@@ -43,10 +43,12 @@ export class SearchmodalPage implements OnInit { ...@@ -43,10 +43,12 @@ export class SearchmodalPage implements OnInit {
this.searchService.search(data); this.searchService.search(data);
} }
clickSearch() { clickSearch(text: string) {
this.searchShow = true; this.searchShow = true;
if (text === '') {
this.searchService.searchList = []; this.searchService.searchList = [];
} }
}
viewPage(datas: any) { viewPage(datas: any) {
// this.closeModal(); // this.closeModal();
......
...@@ -625,6 +625,7 @@ ion-header { ...@@ -625,6 +625,7 @@ ion-header {
top: 50px; top: 50px;
bottom: 0px; bottom: 0px;
z-index: 99; z-index: 99;
overflow: scroll;
ul { ul {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>Ionic App</title> <title>Ionic App</title>
<base href="/" /> <base href="/" />
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="viewport"
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no" /> <meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" /> <meta name="msapplication-tap-highlight" content="no" />
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
</head> </head>
<body> <body>
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBn6hOlr6YHcZAmbptlsmbhvH5iQllWflE&libraries=geometry"></script>
<app-root></app-root> <app-root></app-root>
</body> </body>
......
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