Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Callmycab-Userapp
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kevin
Callmycab-Userapp
Commits
90c17499
Commit
90c17499
authored
Aug 09, 2018
by
Alen Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'alen' into 'master'
aug-8 See merge request alen/CMC_revamp!27
parents
9f18903f
f2b1771b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
39 deletions
+46
-39
node_modules.zip
node_modules.zip
+0
-0
package.json
package.json
+2
-1
app.component.ts
src/app/app.component.ts
+28
-28
app.html
src/app/app.html
+0
-2
ridedetail.html
src/pages/ridedetail/ridedetail.html
+1
-1
ridedetail.ts
src/pages/ridedetail/ridedetail.ts
+1
-6
searchride.html
src/pages/searchride/searchride.html
+5
-1
searchride.scss
src/pages/searchride/searchride.scss
+9
-0
No files found.
node_modules.zip
0 → 100644
View file @
90c17499
File added
package.json
View file @
90c17499
...
@@ -94,4 +94,4 @@
...
@@ -94,4 +94,4 @@
"android"
"android"
]
]
}
}
}
}
\ No newline at end of file
src/app/app.component.ts
View file @
90c17499
...
@@ -16,8 +16,8 @@ import { TranslateService } from '@ngx-translate/core';
...
@@ -16,8 +16,8 @@ import { TranslateService } from '@ngx-translate/core';
export
class
MyApp
{
export
class
MyApp
{
@
ViewChild
(
Nav
)
nav
:
Nav
;
@
ViewChild
(
Nav
)
nav
:
Nav
;
rootPage
:
string
;
rootPage
:
string
;
local
:
user
;
local
:
user
;
lang
:
string
=
'en'
;
lang
:
string
=
'en'
;
title
:
string
title
:
string
msg
:
string
msg
:
string
...
@@ -31,9 +31,9 @@ export class MyApp {
...
@@ -31,9 +31,9 @@ export class MyApp {
initializeApp
()
{
initializeApp
()
{
this
.
platform
.
ready
().
then
(()
=>
{
this
.
platform
.
ready
().
then
(()
=>
{
this
.
storage
.
get
(
'user_data'
).
then
(
data
=>
{
this
.
storage
.
get
(
'user_data'
).
then
(
data
=>
{
console
.
log
(
data
)
console
.
log
(
data
)
if
(
data
)
{
if
(
data
)
{
this
.
rootPage
=
'HomePage'
this
.
rootPage
=
'HomePage'
this
.
local
=
data
this
.
local
=
data
// console.log(this.local)
// console.log(this.local)
...
@@ -55,9 +55,9 @@ export class MyApp {
...
@@ -55,9 +55,9 @@ export class MyApp {
}
}
})
})
this
.
statusBar
.
styleDefault
();
this
.
statusBar
.
styleDefault
();
this
.
splashScreen
.
hide
();
this
.
splashScreen
.
hide
();
//
this.enableLoc();
this
.
enableLoc
();
this
.
network
.
onDisconnect
().
subscribe
(()
=>
{
this
.
network
.
onDisconnect
().
subscribe
(()
=>
{
...
@@ -99,47 +99,47 @@ export class MyApp {
...
@@ -99,47 +99,47 @@ export class MyApp {
this
.
oneSignal
.
endInit
();
this
.
oneSignal
.
endInit
();
}
}
enableLoc
(){
enableLoc
()
{
this
.
locationAccuracy
.
canRequest
().
then
((
canRequest
:
boolean
)
=>
{
this
.
locationAccuracy
.
canRequest
().
then
((
canRequest
:
boolean
)
=>
{
// if (canRequest) {
// if (canRequest) {
// the accuracy option will be ignored by iOS
// the accuracy option will be ignored by iOS
this
.
locationAccuracy
.
request
(
this
.
locationAccuracy
.
REQUEST_PRIORITY_HIGH_ACCURACY
).
then
(
this
.
locationAccuracy
.
request
(
this
.
locationAccuracy
.
REQUEST_PRIORITY_HIGH_ACCURACY
).
then
(
()
=>
console
.
log
(
'Request successful'
),
()
=>
console
.
log
(
'Request successful'
),
error
=>
console
.
log
(
'Error requesting location permissions'
,
error
)
error
=>
console
.
log
(
'Error requesting location permissions'
,
error
)
);
);
// }
// }
});
});
}
}
open_page
(
page
){
open_page
(
page
)
{
if
(
page
==
'LandingPage'
)
{
if
(
page
==
'LandingPage'
)
{
this
.
storage
.
remove
(
'user_data'
);
this
.
storage
.
remove
(
'user_data'
);
this
.
nav
.
setRoot
(
page
);
this
.
nav
.
setRoot
(
page
);
this
.
events
.
publish
(
'user:profile'
,
''
);
this
.
events
.
publish
(
'user:profile'
,
''
);
}
}
else
if
(
page
==
'MytripsPage'
){
else
if
(
page
==
'MytripsPage'
)
{
this
.
myservice
.
show_loader
()
this
.
myservice
.
show_loader
()
this
.
nav
.
setRoot
(
page
);
this
.
nav
.
setRoot
(
page
);
}
}
else
else
this
.
nav
.
setRoot
(
page
);
this
.
nav
.
setRoot
(
page
);
}
}
languageTrans
()
{
languageTrans
()
{
var
This
=
this
;
var
This
=
this
;
setTimeout
(
function
()
{
setTimeout
(
function
()
{
This
.
storage
.
get
(
'lang'
).
then
(
data
=>
{
This
.
storage
.
get
(
'lang'
).
then
(
data
=>
{
if
(
data
)
{
if
(
data
)
{
This
.
translate
.
use
(
data
);
This
.
translate
.
use
(
data
);
This
.
lang
=
data
;
This
.
lang
=
data
;
}
}
else
{
else
{
This
.
translate
.
setDefaultLang
(
'en'
);
This
.
translate
.
setDefaultLang
(
'en'
);
}
}
This
.
lang_trans
()
This
.
lang_trans
()
})
})
},
500
)
},
500
)
}
}
...
...
src/app/app.html
View file @
90c17499
...
@@ -15,9 +15,7 @@
...
@@ -15,9 +15,7 @@
<ul>
<ul>
<li
menuClose
class=
"book"
(
click
)="
open_page
('
HomePage
')"
>
{{'sidemenu.Book Ride'|translate}}
</li>
<li
menuClose
class=
"book"
(
click
)="
open_page
('
HomePage
')"
>
{{'sidemenu.Book Ride'|translate}}
</li>
<li
menuClose
class=
"trip"
(
click
)="
open_page
('
MytripsPage
')"
>
{{'sidemenu.My Trips'|translate}}
</li>
<li
menuClose
class=
"trip"
(
click
)="
open_page
('
MytripsPage
')"
>
{{'sidemenu.My Trips'|translate}}
</li>
<!-- <li menuClose class="settings" (click)="open_page('SettingsPage')">Settings</li> -->
<li
menuClose
class=
"logout"
(
click
)="
open_page
('
LandingPage
')"
>
{{'sidemenu.Logout'|translate}}
</li>
<li
menuClose
class=
"logout"
(
click
)="
open_page
('
LandingPage
')"
>
{{'sidemenu.Logout'|translate}}
</li>
<!-- <li menuClose class="langtr" (click)="presentPopover()">{{'sidemenu.Language'|translate}}</li> -->
</ul>
</ul>
</div>
</div>
</div>
</div>
...
...
src/pages/ridedetail/ridedetail.html
View file @
90c17499
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<button
ion-button
class=
"nav_btn theme_color floatLeft"
(
click
)="
back
()"
>
<button
ion-button
class=
"nav_btn theme_color floatLeft"
(
click
)="
back
()"
>
<ion-icon
name=
"ios-arrow-back"
></ion-icon>
<ion-icon
name=
"ios-arrow-back"
></ion-icon>
</button>
</button>
<div
class=
"nav_header_title floatLeft"
>
{{'ride.Quickride Details
|translate'
}}
</div>
<div
class=
"nav_header_title floatLeft"
>
{{'ride.Quickride Details
'|translate
}}
</div>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</ion-header>
</ion-header>
...
...
src/pages/ridedetail/ridedetail.ts
View file @
90c17499
...
@@ -121,7 +121,7 @@ export class RidedetailPage {
...
@@ -121,7 +121,7 @@ export class RidedetailPage {
})
})
}
}
else
if
(
This
.
temp
==
false
)
{
else
if
(
This
.
temp
==
false
)
{
var
bdata
=
{
'book_date'
:
This
.
book
.
date
,
'drop_area'
:
This
.
book
.
dropArea
,
'pickup_area'
:
This
.
book
.
pickArea
,
'taxi_type'
:
This
.
book
.
carDetails
.
car_type
,
'amount'
:
''
,
'km'
:
''
,
'promocode'
:
This
.
book
.
promocode
,
'token'
:
This
.
local
.
token
,
'userid'
:
This
.
local
.
id
,
'type'
:
'now'
,
'drivers'
:
[],
'discount'
:
This
.
book
.
discount
?
This
.
book
.
discount
:
0
,
'pickup_latlng'
:
this
.
book
.
pickLat
+
','
+
this
.
book
.
pickLng
,
'drop_latlng'
:
this
.
book
.
dropLat
+
','
+
t
his
.
book
.
dropLng
}
var
bdata
=
{
'book_date'
:
This
.
book
.
date
,
'drop_area'
:
This
.
book
.
dropArea
,
'pickup_area'
:
This
.
book
.
pickArea
,
'taxi_type'
:
This
.
book
.
carDetails
.
car_type
,
'amount'
:
''
,
'km'
:
''
,
'promocode'
:
This
.
book
.
promocode
,
'token'
:
This
.
local
.
token
,
'userid'
:
This
.
local
.
id
,
'type'
:
'now'
,
'drivers'
:
[],
'discount'
:
This
.
book
.
discount
?
This
.
book
.
discount
:
0
,
'pickup_latlng'
:
This
.
book
.
pickLat
+
','
+
This
.
book
.
pickLng
,
'drop_latlng'
:
This
.
book
.
dropLat
+
','
+
T
his
.
book
.
dropLng
}
bdata
.
drivers
=
This
.
drivers
;
bdata
.
drivers
=
This
.
drivers
;
...
@@ -202,11 +202,6 @@ export class RidedetailPage {
...
@@ -202,11 +202,6 @@ export class RidedetailPage {
clearInterval
(
intrvl
)
clearInterval
(
intrvl
)
This
.
loader
.
dismissAll
();
This
.
loader
.
dismissAll
();
}
}
else
{
This
.
translate
.
get
([
'ride.'
+
resp
.
message
]).
subscribe
(
value
=>
{
This
.
myservice
.
show_alert
(
''
,
value
[
'ride.'
+
resp
.
message
])
})
}
})
})
if
(
This
.
count
==
12
)
{
if
(
This
.
count
==
12
)
{
clearInterval
(
intrvl
)
clearInterval
(
intrvl
)
...
...
src/pages/searchride/searchride.html
View file @
90c17499
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<ion-icon
name=
"ios-arrow-back"
></ion-icon>
<ion-icon
name=
"ios-arrow-back"
></ion-icon>
</button>
</button>
<div
class=
"nav_header_title floatLeft"
>
{{'search.Search Results'|translate}}
</div>
<div
class=
"nav_header_title floatLeft"
>
{{'search.Search Results'|translate}}
</div>
<
button
class=
"nav_btn floatRight"
></button
>
<
!-- <button class="nav_btn floatRight"></button> --
>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
<div
class=
"cab_footer_location theme_dark_bg"
>
<div
class=
"cab_footer_location theme_dark_bg"
>
<input
class=
"cab_location_input cab_search"
placeholder=
"{{'search.Search'|translate}}"
[(
ngModel
)]="
searchText
"
>
<input
class=
"cab_location_input cab_search"
placeholder=
"{{'search.Search'|translate}}"
[(
ngModel
)]="
searchText
"
>
...
@@ -18,6 +18,10 @@
...
@@ -18,6 +18,10 @@
<h6>
{{search.location}}
</h6>
<h6>
{{search.location}}
</h6>
</li>
</li>
</ul>
</ul>
{{(searches | search: searchText).length}}
<div
class=
"no_rslt"
*
ngIf=
"(searches | search: searchText).length === 0"
>
No Results Found
</div>
</div>
</div>
</ion-content>
</ion-content>
src/pages/searchride/searchride.scss
View file @
90c17499
...
@@ -6,4 +6,13 @@ page-searchride {
...
@@ -6,4 +6,13 @@ page-searchride {
.cab_search_result_page
p
{
color
:
#fff
;
margin
:
0px
;
font-size
:
18px
;
font-weight
:
300
;
padding
:
10px
;
letter-spacing
:
4px
;}
.cab_search_result_page
p
{
color
:
#fff
;
margin
:
0px
;
font-size
:
18px
;
font-weight
:
300
;
padding
:
10px
;
letter-spacing
:
4px
;}
.cab_search_result_page
ul
li
h5
{
color
:
#ff9000
;
margin
:
0px
;
padding
:
0px
;
padding-bottom
:
5px
;
font-size
:
14px
;
letter-spacing
:
1px
;
font-weight
:
400
;}
.cab_search_result_page
ul
li
h5
{
color
:
#ff9000
;
margin
:
0px
;
padding
:
0px
;
padding-bottom
:
5px
;
font-size
:
14px
;
letter-spacing
:
1px
;
font-weight
:
400
;}
.cab_search_result_page
ul
li
h6
{
color
:
#929292
;
margin
:
0px
;
padding
:
0px
;
font-weight
:
400
;}
.cab_search_result_page
ul
li
h6
{
color
:
#929292
;
margin
:
0px
;
padding
:
0px
;
font-weight
:
400
;}
.cab_location_input
{
width
:
100%
;
height
:
45px
;
font-weight
:
300
;
border
:none
;
color
:
#fff
;
font-size
:
18px
;
background
:
transparent
;
background-position
:
right
!
important
;
background-repeat
:
no-repeat
!
important
;
background-size
:
23px
!
important
;}
.
cab_location_input
:
:-
webkit-input-placeholder
{
color
:
#fff
;}
.
cab_location_input
:
:-
moz-placeholder
{
color
:
#fff
;}
.
cab_location_input
:
-
ms-input-placeholder
{
color
:
#fff
;}
.
cab_location_input
:
-
moz-placeholder
{
color
:
#fff
;}
.cab_search
{
background-image
:
url("../assets/img/search.png")
!
important
;
background-position
:
right
;
background-repeat
:
no-repeat
;}
.cab_footer_location
{
width
:
100%
;
padding
:
10px
;}
.no_rslt
{
text-align
:
center
;
color
:
#ff9000
;
font-size
:
16px
;}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment