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
8b1441f7
authored
2019-01-10 22:35:35 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加提示
1 parent
71c40ae1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
js/controller/mainController.js
js/controller/mapController.js
js/controller/mainController.js
View file @
8b1441f
...
...
@@ -69,8 +69,7 @@ angular.module('myApp')
localStorage
.
removeItem
(
'ls.user'
)
return
}
if
(
date
.
meta
.
code
===
200
)
{
if
(
data
.
data
.
unfinishedOrder
.
status
==
200
)
{
if
(
data
.
meta
.
code
===
200
)
{
if
(
data
.
data
.
unfinishedOrder
.
id
)
{
$rootScope
.
isRendBike
=
true
;
$scope
.
unfinishOrder
=
data
.
data
.
unfinishedOrder
;
...
...
@@ -88,7 +87,6 @@ angular.module('myApp')
}
});
}
}
}).
error
(
function
(
data
,
status
)
{
console
.
log
(
JSON
.
stringify
(
data
))
...
...
js/controller/mapController.js
View file @
8b1441f
...
...
@@ -306,9 +306,6 @@ angular.module('myApp')
}
else
{
appClient
.
getGPS
(
''
,
function
(
latitude
,
longitude
,
cb
)
{
layer
.
open
({
content
:
latitude
+
"_"
+
longitude
})
onSuccess
({
latitude
:
latitude
,
longitude
:
longitude
...
...
@@ -384,12 +381,20 @@ angular.module('myApp')
//// navigator.geolocation.getCurrentPosition(onSuccess,onError,options);
// } , 1000 * 60 * 60);
}
else
{
try
{
myMarker
.
position
=
point
;
if
(
isForce
)
{
var
map
=
myMarker
.
getMap
();
//
var map = myMarker.getMap();
map
.
panTo
(
point
);
map
.
setZoom
(
15
)
}
refreshNewPoints
(
point
);
}
catch
(
e
)
{
layer
.
open
({
content
:
e
})
}
}
})
}
...
...
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