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
9f0d88d7
authored
2018-09-01 15:14:22 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
h5 2
1 parent
fea2f665
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
js/JSBridge.js
js/JSBridge.js
View file @
9f0d88d
...
...
@@ -40,7 +40,12 @@ AppClient.prototype.getERCode = function (callbackName, callback, jsonStr) {
params
:
dataParams
};
if
(
this
.
isAndroid
)
{
this
.
appObj
.
getERCode
(
'H5'
,
jsonStr
);
window
.
WebViewJavascriptBridge
.
callHandler
(
'getERCode'
,
jsonStr
,
function
(
res
)
{
layer
.
open
({
content
:
res
,
time
:
2
})
});
}
else
{
this
.
appObj
.
callHandler
(
"getERCode"
,
iOSData
,
callback
);
...
...
@@ -106,7 +111,7 @@ if(isAndroid || isiOS) {
}
setupWebViewJavascriptBridge
(
function
(
bridge
)
{
if
(
isAndroid
)
{
appClient
=
new
AppClient
(
bridge
,
isAndroid
);
}
if
(
isiOS
)
{
appClient
=
new
AppClient
(
bridge
,
isAndroid
);
...
...
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