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
f3a29a76
authored
2024-05-24 11:18:13 +0800
by
yyx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
!
1 parent
ce96a9a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
src/viewsPc/seat/order-detail.vue
src/viewsPc/seat/utils/request.js
src/viewsPc/seat/order-detail.vue
View file @
f3a29a7
...
...
@@ -55,6 +55,7 @@ const props = defineProps({
let
timer
=
null
;
const
startCheckSuccessListener
=
(
orderSn
,
actId
)
=>
{
console
.
log
(
123
);
timer
=
setInterval
(()
=>
{
checkPaySuccess
({
orderSn
}).
then
((
res
)
=>
{
if
(
res
.
data
)
{
...
...
@@ -125,7 +126,7 @@ const detail = reactive({
payment
()
{
if
(
detail
.
pay_loading
)
return
;
detail
.
pay_loading
=
true
;
if
(
language
.
value
)
{
if
(
language
.
value
==
0
)
{
// 中文支付
immediatePay
({
orderSn
:
detail
.
data
.
orderSn
,
payType
:
1
})
.
then
((
res
)
=>
{
...
...
@@ -136,8 +137,8 @@ const detail = reactive({
detail
.
qrCodeData
=
url
;
}
});
startCheckSuccessListener
(
detail
.
data
.
orderSn
);
detail
.
showCodeDialog
=
true
;
startCheckSuccessListener
(
detail
.
data
.
orderSn
);
}
})
.
finally
(()
=>
(
detail
.
pay_loading
=
false
));
...
...
src/viewsPc/seat/utils/request.js
View file @
f3a29a7
...
...
@@ -16,6 +16,7 @@ const http = axios.create({
timeout
,
headers
:
{
"Content-Type"
:
"application/json"
,
Language
:
'zh-cn'
},
});
...
...
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