Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
dy-wx2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0a434cf0
authored
2018-08-25 18:34:56 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
‘getVal’
1 parent
cd5cca68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
js/JSBridge.js
js/controller/mapController.js
js/JSBridge.js
View file @
0a434cf
...
...
@@ -71,8 +71,11 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
}
else
{
this
.
appObj
.
callHandler
(
"getGPS"
,
iOSData
,
callback
);
this
.
appObj
.
registerHandler
(
'postGPS'
,
function
(
data
,
responseCallback
)
{
var
res
=
JSON
.
parse
(
data
)
var
key
=
res
.
testKey
layer
.
open
({
content
:
JSON
.
stringify
(
data
),
content
:
JSON
.
stringify
(
key
),
time
:
10
});
// log('ObjC called testJavascriptHandler with', data)
...
...
js/controller/mapController.js
View file @
0a434cf
...
...
@@ -298,11 +298,11 @@ angular.module('myApp')
// }
// });
if
(
appClient
){
appClient
.
get
ERCode
(
'pos
tGPS'
,
function
(
res
)
{
layer
.
open
({
content
:
JSON
.
stringify
(
res
)
+
'cb'
,
time
:
10
});
appClient
.
get
GPS
(
'ge
tGPS'
,
function
(
res
)
{
//
layer.open({
//
content: JSON.stringify(res) + 'cb',
//
time: 10
//
});
onSuccess
({
latitude
:
30.2741500000
,
longitude
:
120.1551500000
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment