Commit 18df8c8f by Adarsh K

changes

parent 6afa4f28
......@@ -14,6 +14,7 @@ import { ServiceService } from './../../config/service.service';
import { MyordersService } from './../../config/myorder.service';
import { NgForm } from '@angular/forms';
import * as firebase from 'firebase';
declare var google: any;
@Component({
selector: 'app-changeaddress',
......@@ -93,7 +94,7 @@ export class ChangeaddressPage implements OnInit {
mapReady(map) {
map.addListener('dragend', () => {
console.log(this.newCenterLat, this.newCenterLng);
this.getAddress(this.latitude, this.longitude);
this.getAddress(this.newCenterLat, this.newCenterLng);
});
}
centerChange(e) {
......
......@@ -6,7 +6,9 @@
</ion-col>
<ion-col class="no-gutter" size="8">
<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>
</ion-col>
<ion-col class="no-gutter" size="2">
......
......@@ -43,9 +43,11 @@ export class SearchmodalPage implements OnInit {
this.searchService.search(data);
}
clickSearch() {
clickSearch(text: string) {
this.searchShow = true;
this.searchService.searchList = [];
if (text === '') {
this.searchService.searchList = [];
}
}
viewPage(datas: any) {
......
......@@ -625,6 +625,7 @@ ion-header {
top: 50px;
bottom: 0px;
z-index: 99;
overflow: scroll;
ul {
margin: 0px;
padding: 0px;
......
......@@ -4,9 +4,9 @@
<head>
<meta charset="utf-8" />
<title>Ionic App</title>
<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="msapplication-tap-highlight" content="no" />
......@@ -18,6 +18,8 @@
</head>
<body>
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBn6hOlr6YHcZAmbptlsmbhvH5iQllWflE&libraries=geometry"></script>
<app-root></app-root>
</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