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
bb2643e8
authored
2019-01-06 16:22:49 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
未完成订单
1 parent
3a19c2d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
js/controller/mainController.js
js/controller/mainController.js
View file @
bb2643e
...
...
@@ -69,24 +69,27 @@ angular.module('myApp')
localStorage
.
removeItem
(
'ls.user'
)
return
}
if
(
data
.
data
.
unfinishedOrder
.
status
==
200
)
{
if
(
data
.
data
.
unfinishedOrder
.
id
)
{
$rootScope
.
isRendBike
=
true
;
$scope
.
unfinishOrder
=
data
.
data
.
unfinishedOrder
;
if
(
date
.
meta
.
code
===
200
)
{
if
(
data
.
data
.
unfinishedOrder
.
status
==
200
)
{
if
(
data
.
data
.
unfinishedOrder
.
id
)
{
$rootScope
.
isRendBike
=
true
;
$scope
.
unfinishOrder
=
data
.
data
.
unfinishedOrder
;
}
layer
.
open
({
content
:
'您有未支付的订单,是否前往支付?'
,
btn
:
[
'确认'
,
'取消'
],
shadeClose
:
false
,
yes
:
function
(
index
){
layer
.
close
(
index
);
$state
.
go
(
'tripDetail'
,
{
orderId
:
$scope
.
unfinishOrder
.
id
});
return
;
},
no
:
function
(
index
){
layer
.
close
(
index
);
}
});
}
layer
.
open
({
content
:
'您有未支付的订单,是否前往支付?'
,
btn
:
[
'确认'
,
'取消'
],
shadeClose
:
false
,
yes
:
function
(
index
){
layer
.
close
(
index
);
$state
.
go
(
'tripDetail'
,
{
orderId
:
$scope
.
unfinishOrder
.
id
});
return
;
},
no
:
function
(
index
){
layer
.
close
(
index
);
}
});
}
}).
error
(
function
(
data
,
status
)
{
console
.
log
(
JSON
.
stringify
(
data
))
})
...
...
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