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
dcdc695d
authored
2018-09-08 16:13:21 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
GPS
1 parent
7f33dc07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
14 deletions
js/controller/mainController.js
js/controller/mapController.js
js/controller/mainController.js
View file @
dcdc695
...
...
@@ -167,11 +167,40 @@ angular.module('myApp')
});
}
else
{
appClient
.
getERCode
(
''
,
function
(
data
,
cb
)
{
layer
.
open
({
content
:
data
,
time
:
2
})
appClient
.
getERCode
(
''
,
function
(
str
,
cb
)
{
dingdaService
.
verifyScanCode
(
str
).
success
(
function
(
data
,
status
){
// alert(JSON.stringify(data))
if
(
data
.
meta
.
code
==
200
)
{
if
(
data
.
data
.
orderDetail
.
id
)
{
layer
.
open
({
content
:
"租车成功,订单号为:"
+
data
.
data
.
orderDetail
.
id
,
time
:
2
});
// alert("租车成功,订单号为:" + data.data.orderDetail.id);
$rootScope
.
isRendBike
=
true
;
$state
.
go
(
'rentDetail'
,
{},
{
reload
:
true
});
}
}
else
if
(
data
.
meta
.
code
==
202
)
{
layer
.
open
({
content
:
data
.
meta
.
message
,
time
:
2
});
$state
.
go
(
'bond'
,
{
longitude
:
$rootScope
.
currentPoint
.
longitude
,
latitude
:
$rootScope
.
currentPoint
.
latitude
});
}
else
{
layer
.
open
({
content
:
data
.
meta
.
message
,
time
:
2
});
}
}).
error
(
function
(
data
,
status
){
layer
.
open
({
content
:
"租车失败"
+
JSON
.
stringify
(
data
),
time
:
2
});
});
})
// window.WebViewJavascriptBridge.registerHandler('postERCode', function(data, responseCallback) {
// layer.open({
...
...
js/controller/mapController.js
View file @
dcdc695
...
...
@@ -315,11 +315,7 @@ angular.module('myApp')
latitude
=
arr
[
0
].
split
(
':'
)[
1
]
longitude
=
arr
[
1
].
split
(
':'
)[
1
]
}
layer
.
open
({
content
:
latitude
,
time
:
5
})
// return
onSuccess
({
latitude
:
latitude
,
longitude
:
longitude
...
...
@@ -375,10 +371,6 @@ angular.module('myApp')
function
onSuccess
(
position
){
layer
.
open
({
content
:
Object
.
keys
(
position
),
time
:
5
})
// layer.open({
// content: JSON.stringify(position)+',longitude:'+ position.longitude+',latitude:' + position.latitude,
// time: 5
...
...
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