Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
H
h5-baby
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
malin
h5-baby
Commits
eb2bfb4c
Commit
eb2bfb4c
authored
Apr 06, 2021
by
malin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t
parent
858f875f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
index.vue
src/views/Result/index.vue
+16
-13
No files found.
src/views/Result/index.vue
View file @
eb2bfb4c
...
@@ -154,7 +154,6 @@ export default {
...
@@ -154,7 +154,6 @@ export default {
},
},
mounted
()
{
mounted
()
{
location
.
reload
();
this
.
babyInfo
=
JSON
.
parse
(
utils
.
getCookie
(
"babyInfo"
));
// 将宝宝信息解析出来
this
.
babyInfo
=
JSON
.
parse
(
utils
.
getCookie
(
"babyInfo"
));
// 将宝宝信息解析出来
this
.
_queryOrder
();
// 查询是否支付成功
this
.
_queryOrder
();
// 查询是否支付成功
...
@@ -215,19 +214,23 @@ export default {
...
@@ -215,19 +214,23 @@ export default {
this
.
testInfo
=
JSON
.
stringify
(
params
);
this
.
testInfo
=
JSON
.
stringify
(
params
);
API
.
API_gatewayQueryOrder
(
params
).
then
((
res
)
=>
{
API
.
API_gatewayQueryOrder
(
params
).
then
((
res
)
=>
{
let
status
=
res
.
result
.
data
.
status
;
let
status
=
res
.
result
.
data
.
status
;
let
timer
=
setInterval
(()
=>
{
if
(
status
==
200
)
{
this
.
countdown
+=
1
;
return
;
if
(
status
==
200
)
{
}
else
{
clearInterval
(
timer
);
// 支付不成功
}
else
{
// if () {
// 支付不成功
// return location.reload();
if
(
this
.
countdown
<
4
)
{
// } else {
return
this
.
_queryOrder
();
// this.$router.push({ path: "/pay", query: this.babyInfo });
}
else
{
// }
this
.
$router
.
push
({
path
:
"/pay"
,
query
:
this
.
babyInfo
});
setTimeout
(()
=>
{
if
(
this
.
countdown
==
1
)
{
return
;
}
}
}
this
.
countdown
+=
1
;
},
1000
);
this
.
_queryOrder
();
},
3000
);
}
});
});
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment