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
5196708a
authored
2018-08-25 18:05:52 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
‘layer’
1 parent
cfbe0386
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
js/JSBridge.js
js/controller/mainController.js
js/controller/mapController.js
js/JSBridge.js
View file @
5196708
...
...
@@ -56,10 +56,16 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
}
};
window
.
postERCode
=
function
(
_params
)
{
alert
(
JSON
.
stringify
(
_params
))
layer
.
open
({
content
:
JSON
.
stringify
(
_params
),
time
:
10
});
}
window
.
postGPS
=
function
(
params
)
{
alert
(
JSON
.
stringify
(
params
))
layer
.
open
({
content
:
JSON
.
stringify
(
_params
),
time
:
10
});
}
if
(
window
.
android
)
{
...
...
js/controller/mainController.js
View file @
5196708
...
...
@@ -115,7 +115,10 @@ angular.module('myApp')
$rootScope
.
openScan
=
false
;
if
(
appClient
){
appClient
.
getERCode
(
'postERCode'
,
function
(
res
)
{
alert
(
JSON
.
stringify
(
res
))
layer
.
open
({
content
:
JSON
.
stringify
(
res
)
+
'cb'
,
time
:
10
});
},
''
)
}
else
{
layer
.
open
({
...
...
js/controller/mapController.js
View file @
5196708
...
...
@@ -299,7 +299,10 @@ angular.module('myApp')
// });
if
(
appClient
){
appClient
.
getERCode
(
'postGPS'
,
function
(
res
)
{
alert
(
JSON
.
stringify
(
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