Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Callmycab-Driverapp
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-Driverapp
Commits
8c9ccd3e
Commit
8c9ccd3e
authored
Aug 09, 2018
by
Alen Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aug-8
parent
3d5b34ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
app.component.ts
src/app/app.component.ts
+12
-12
app.html
src/app/app.html
+0
-1
No files found.
src/app/app.component.ts
View file @
8c9ccd3e
...
@@ -42,9 +42,9 @@ export class MyApp {
...
@@ -42,9 +42,9 @@ export class MyApp {
initializeApp
()
{
initializeApp
()
{
this
.
platform
.
ready
().
then
(()
=>
{
this
.
platform
.
ready
().
then
(()
=>
{
//
this.statusBar.styleLightContent();
this
.
statusBar
.
styleLightContent
();
//
this.initOnesignal();
this
.
initOnesignal
();
//
this.enableLoc()
this
.
enableLoc
()
this
.
languageTrans
();
this
.
languageTrans
();
this
.
events
.
subscribe
(
'driver:lang'
,
data
=>
{
this
.
events
.
subscribe
(
'driver:lang'
,
data
=>
{
...
@@ -83,9 +83,9 @@ export class MyApp {
...
@@ -83,9 +83,9 @@ export class MyApp {
this
.
locSubs
.
unsubscribe
();
this
.
locSubs
.
unsubscribe
();
})
})
//
this.events.subscribe('driver:locOn',_=>{
this
.
events
.
subscribe
(
'driver:locOn'
,
_
=>
{
//
this.liveLoc();
this
.
liveLoc
();
//
})
})
this
.
storage
.
get
(
'driver_data'
).
then
(
data
=>
{
this
.
storage
.
get
(
'driver_data'
).
then
(
data
=>
{
if
(
data
!=
null
)
{
if
(
data
!=
null
)
{
...
@@ -111,12 +111,12 @@ export class MyApp {
...
@@ -111,12 +111,12 @@ export class MyApp {
}
}
checkStatus
()
{
checkStatus
()
{
//
this.oneSignal.getIds().then((id) => {
this
.
oneSignal
.
getIds
().
then
((
id
)
=>
{
//
console.log(id.userId)
console
.
log
(
id
.
userId
)
//
this.myservice.load_post({deviceid:id.userId,driverid:this.local.id},'updateDeviceid').subscribe(resp=>{
this
.
myservice
.
load_post
({
deviceid
:
id
.
userId
,
driverid
:
this
.
local
.
id
},
'updateDeviceid'
).
subscribe
(
resp
=>
{
//
console.log(resp)
console
.
log
(
resp
)
//
})
})
//
})
})
console
.
log
(
this
.
local
)
console
.
log
(
this
.
local
)
var
This
=
this
var
This
=
this
var
query
=
firebase
.
database
().
ref
(
"drivers/"
).
orderByChild
(
"id"
).
equalTo
((
this
.
local
.
id
))
var
query
=
firebase
.
database
().
ref
(
"drivers/"
).
orderByChild
(
"id"
).
equalTo
((
this
.
local
.
id
))
...
...
src/app/app.html
View file @
8c9ccd3e
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
<select
[(
ngModel
)]="
lang
"
(
change
)="
changeLang
(
lang
)"
>
<select
[(
ngModel
)]="
lang
"
(
change
)="
changeLang
(
lang
)"
>
<option
value=
"en"
>
EN
</option>
<option
value=
"en"
>
EN
</option>
<option
value=
"en2"
>
EN2
</option>
</select>
</select>
<div
menuClose
class=
"cab_profile_banner"
(
click
)="
openPage
('
MyprofilePage
')"
>
<div
menuClose
class=
"cab_profile_banner"
(
click
)="
openPage
('
MyprofilePage
')"
>
...
...
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