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
7d2fadd2
authored
2024-05-24 13:41:58 +0800
by
yyx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
67a978cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
41 deletions
src/viewsPc/seat/confirm-order.vue
src/viewsPc/seat/order-detail.vue
src/viewsPc/seat/confirm-order.vue
View file @
7d2fadd
...
...
@@ -80,28 +80,26 @@ const payment = reactive({
),
});
}
if
(
language
.
value
==
0
)
{
payOrder
({
contactPhone
:
payment
.
form
.
phone
,
customerIds
:
payment
.
form
.
viewers
,
orderToken
:
order
.
data
?.
orderToken
,
payType
:
1
,
paymentAmount
:
order
.
data
?.
paymentAmount
,
}).
then
((
res
)
=>
{
if
(
res
.
data
.
language
==
"zh-cn"
)
{
payment
.
qrInfo
=
res
.
data
;
qrcode
.
toDataURL
(
res
.
data
.
scanCodeUrl
,
(
err
,
url
)
=>
{
if
(
url
)
{
payment
.
qrCodeData
=
url
;
}
});
payment
.
showCodeDialog
=
true
;
startCheckSuccessListener
(
res
.
data
.
orderSn
,
props
.
activityId
);
}
});
}
else
{
// 这里是英文环境支付
}
payOrder
({
contactPhone
:
payment
.
form
.
phone
,
customerIds
:
payment
.
form
.
viewers
,
orderToken
:
order
.
data
?.
orderToken
,
payType
:
1
,
paymentAmount
:
order
.
data
?.
paymentAmount
,
}).
then
((
res
)
=>
{
if
(
res
.
data
.
language
==
"zh-cn"
)
{
payment
.
qrInfo
=
res
.
data
;
qrcode
.
toDataURL
(
res
.
data
.
scanCodeUrl
,
(
err
,
url
)
=>
{
if
(
url
)
{
payment
.
qrCodeData
=
url
;
}
});
payment
.
showCodeDialog
=
true
;
startCheckSuccessListener
(
res
.
data
.
orderSn
,
props
.
activityId
);
}
else
{
// TODO:这里是英文环境支付
}
});
},
handleCloce
()
{
payment
.
showCodeDialog
=
false
;
...
...
src/viewsPc/seat/order-detail.vue
View file @
7d2fadd
...
...
@@ -126,25 +126,23 @@ const detail = reactive({
payment
()
{
if
(
detail
.
pay_loading
)
return
;
detail
.
pay_loading
=
true
;
if
(
language
.
value
==
0
)
{
// 中文支付
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
;
}
});
detail
.
showCodeDialog
=
true
;
startCheckSuccessListener
(
detail
.
data
.
orderSn
);
}
})
.
finally
(()
=>
(
detail
.
pay_loading
=
false
));
}
else
{
// TODO: 这里是英文支付
}
// 中文支付
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
;
}
});
detail
.
showCodeDialog
=
true
;
startCheckSuccessListener
(
detail
.
data
.
orderSn
);
}
else
{
// TODO:这里是英文环境支付
}
})
.
finally
(()
=>
(
detail
.
pay_loading
=
false
));
},
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