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
39e1fc7f
authored
2018-09-01 17:25:46 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
js
1 parent
65654f9b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
js/JSBridge.js
js/JSBridge.js
View file @
39e1fc7
...
...
@@ -60,9 +60,13 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
from
:
'H5'
,
params
:
dataParams
};
// layer.open({
// content: this.isAndroid,
// time: 2
//
// })
if
(
this
.
isAndroid
)
{
window
.
WebViewJavascriptBridge
.
appObj
.
callHandler
(
'getGPS'
,
jsonStr
,
function
(
res
)
{
window
.
WebViewJavascriptBridge
.
callHandler
(
'getGPS'
,
jsonStr
,
function
(
res
)
{
layer
.
open
({
content
:
res
,
time
:
2
...
...
@@ -100,11 +104,7 @@ if(isAndroid || isiOS) {
setupWebViewJavascriptBridge
(
function
(
bridge
)
{
if
(
isAndroid
)
{
appClient
=
new
AppClient
(
bridge
,
true
);
layer
.
open
({
content
:
JSON
.
stringify
(
appClient
),
time
:
2
})
bridge
.
init
(
function
(
message
,
responseCallback
)
{
responseCallback
({
'Javascript Responds'
:
'Wee!'
})
})
...
...
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