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
bf8c0cab
authored
2018-09-01 15:00:28 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
h5
1 parent
a90ff64e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
js/JSBridge.js
js/controller/mainController.js
js/JSBridge.js
View file @
bf8c0ca
...
...
@@ -90,10 +90,6 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
if
(
isAndroid
||
isiOS
)
{
layer
.
open
({
content
:
"isAndroid"
+
isAndroid
+
'-'
+
"isiOS"
+
isiOS
,
time
:
2
})
function
setupWebViewJavascriptBridge
(
callback
)
{
if
(
window
.
WebViewJavascriptBridge
)
{
return
callback
(
WebViewJavascriptBridge
);
}
if
(
window
.
WVJBCallbacks
)
{
return
window
.
WVJBCallbacks
.
push
(
callback
);
}
...
...
@@ -105,7 +101,7 @@ if(isAndroid || isiOS) {
setTimeout
(
function
()
{
document
.
documentElement
.
removeChild
(
WVJBIframe
)
},
0
)
}
setupWebViewJavascriptBridge
(
function
(
bridge
)
{
appClient
=
new
AppClient
(
bridge
,
false
);
appClient
=
new
AppClient
(
bridge
,
isAndroid
);
// 此处可以调用一些init的方法
});
}
else
{
...
...
js/controller/mainController.js
View file @
bf8c0ca
...
...
@@ -158,6 +158,11 @@ angular.module('myApp')
// return;
// }
$rootScope
.
openScan
=
false
;
layer
.
open
({
content
:
appClient
,
time
:
5
})
if
(
appClient
){
appClient
.
appObj
.
registerHandler
(
'postERCode'
,
function
(
data
,
responseCallback
)
{
layer
.
open
({
...
...
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