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
9b506f74
authored
2018-09-02 17:38:01 +0800
by
unknown
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提示运行环境
1 parent
d895b994
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
19 deletions
contactUs.html
js/JSBridge.js
contactUs.html
View file @
9b506f7
...
...
@@ -10,7 +10,7 @@
font-family
:
黑体
;
overflow
:
hidden
;
margin
:
0px
;
border
:
0px
;
add
border
:
0px
;
padding
:
0px
;
background-color
:
#ffffff
;
color
:
#333333
;
...
...
js/JSBridge.js
View file @
9b506f7
...
...
@@ -23,13 +23,10 @@ function toJson(str) {
return
{}
}
}
// window.invokeJsPassCompanyCodeAndName = function(_params) {
// companyCode = _params.companyCode;
// companyName = _params.companyName;
// var jsonStr = "";
// getSign(jsonStr);
// }
//
layer
.
open
({
content
:
"isAndroid:"
+
isAndroid
+
",isiOS"
+
isiOS
,
time
:
2
})
AppClient
.
prototype
.
getERCode
=
function
(
jsonStr
,
getCallback
,
postCallback
)
{
var
dataParams
=
""
;
if
(
isJson
(
jsonStr
)){
...
...
@@ -47,8 +44,8 @@ AppClient.prototype.getERCode = function (jsonStr, getCallback, postCallback) {
})
});
}
else
{
this
.
appObj
.
callHandler
(
"getERCode"
,
param
,
getCallback
);
this
.
appObj
.
registerHandler
(
"postERCOde"
,
postCallback
)
this
.
appObj
.
callHandler
(
"getERCode"
,
param
,
getCallback
);
}
};
AppClient
.
prototype
.
getGPS
=
function
(
jsonStr
,
getCallback
,
postCallback
)
{
...
...
@@ -60,11 +57,6 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
from
:
'H5'
,
params
:
dataParams
};
// layer.open({
// content: this.isAndroid,
// time: 2
//
// })
if
(
this
.
isAndroid
)
{
window
.
WebViewJavascriptBridge
.
callHandler
(
'getGPS'
,
jsonStr
,
function
(
res
)
{
layer
.
open
({
...
...
@@ -73,11 +65,10 @@ AppClient.prototype.getGPS = function (jsonStr, getCallback, postCallback) {
})
});
}
else
{
this
.
appObj
.
callHandler
(
"getERCode"
,
param
,
getCallback
);
this
.
appObj
.
registerHandler
(
"postERCOde"
,
postCallback
)
this
.
appObj
.
registerHandler
(
"postGPS"
,
postCallback
)
this
.
appObj
.
callHandler
(
"getGPS"
,
param
,
getCallback
);
}
this
.
appObj
.
registerHandler
(
"postGPS"
,
postCallback
)
this
.
appObj
.
callHandler
(
"getGPS"
,
param
,
getCallback
);
// }
};
...
...
@@ -118,5 +109,5 @@ if(isAndroid || isiOS) {
// 此处可以调用一些init的方法
});
}
else
{
appClient
=
new
AppClient
({},
false
);
//
appClient = new AppClient({}, false);
}
...
...
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