Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
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
ca382606
authored
2024-05-23 15:39:38 +0800
by
yyx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
a5ad2c35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
src/viewsPc/seat/order-detail.vue
src/viewsPc/seat/order-detail.vue
View file @
ca38260
...
...
@@ -125,22 +125,25 @@ const detail = reactive({
payment
()
{
if
(
detail
.
pay_loading
)
return
;
detail
.
pay_loading
=
true
;
immediatePay
({
orderSn
:
detail
.
data
.
orderSn
,
payType
:
1
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
language
==
"zh-cn"
)
{
detail
.
qrInfo
=
res
.
data
;
qrcode
.
toDataURL
(
res
.
data
.
scanCodeUrl
,
(
err
,
url
)
=>
{
if
(
url
)
{
detail
.
qrCodeData
=
url
;
}
});
startCheckSuccessListener
(
detail
.
data
.
orderSn
);
detail
.
showCodeDialog
=
true
;
}
else
{
// TODO: 这里是PayPal支付
}
})
.
finally
(()
=>
(
detail
.
pay_loading
=
false
));
if
(
language
.
value
)
{
// 中文支付
immediatePay
({
orderSn
:
detail
.
data
.
orderSn
,
payType
:
1
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
language
==
"zh-cn"
)
{
detail
.
qrInfo
=
res
.
data
;
qrcode
.
toDataURL
(
res
.
data
.
scanCodeUrl
,
(
err
,
url
)
=>
{
if
(
url
)
{
detail
.
qrCodeData
=
url
;
}
});
startCheckSuccessListener
(
detail
.
data
.
orderSn
);
detail
.
showCodeDialog
=
true
;
}
})
.
finally
(()
=>
(
detail
.
pay_loading
=
false
));
}
else
{
// TODO: 这里是英文支付
}
},
handleClose
()
{
detail
.
showCodeDialog
=
false
;
...
...
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