Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d54f3680
authored
2024-05-24 15:31:55 +0800
by
yyx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
240ef2b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
src/viewsPc/seat/order-detail.vue
src/viewsPc/seat/order-detail.vue
View file @
d54f368
...
...
@@ -62,20 +62,24 @@ const props = defineProps({
let
timer
=
null
;
const
startCheckSuccessListener
=
(
orderSn
,
actId
)
=>
{
console
.
log
(
123
);
timer
=
setInterval
(()
=>
{
checkPaySuccess
({
orderSn
}).
then
((
res
)
=>
{
if
(
res
.
data
)
{
checkPaySuccess
({
orderSn
})
.
then
((
res
)
=>
{
if
(
res
.
data
)
{
clearInterval
(
timer
);
timer
=
null
;
// 支付成功
detail
.
showCodeDialog
=
false
;
detail
.
fetchData
();
ElMessage
({
type
:
"success"
,
message
:
"支付成功"
});
}
else
{
return
false
;
}
})
.
catch
((
e
)
=>
{
clearInterval
(
timer
);
timer
=
null
;
// 支付成功
detail
.
showCodeDialog
=
false
;
detail
.
fetchData
();
ElMessage
({
type
:
"success"
,
message
:
"支付成功"
});
}
else
{
return
false
;
}
});
});
},
3000
);
};
...
...
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