Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7d6edd26
authored
Oct 24, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新支付功能测试2.0
parent
c24e2a5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/views/computingResource/resourceList.vue
+11
-5
No files found.
src/views/computingResource/resourceList.vue
View file @
7d6edd26
...
@@ -269,7 +269,8 @@
...
@@ -269,7 +269,8 @@
></iframe>
></iframe>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
name=
"ResourceList"
setup
>
<
script
name=
"ResourceList"
setup
>
...
@@ -309,10 +310,11 @@ const pdfUrl = ref(import.meta.env.VITE_APP_BASE_API+'/infra/file/preview?url=ht
...
@@ -309,10 +310,11 @@ const pdfUrl = ref(import.meta.env.VITE_APP_BASE_API+'/infra/file/preview?url=ht
const
qrCode
=
ref
({
const
qrCode
=
ref
({
url
:
''
,
url
:
''
,
title
:
'请使用微信
”扫一扫“
扫码支付'
,
title
:
'请使用微信
或支付宝
扫码支付'
,
visible
:
false
visible
:
false
})
})
function
getTypeData
()
{
function
getTypeData
()
{
categoryMenuNew
().
then
(
res
=>
{
categoryMenuNew
().
then
(
res
=>
{
productTypes
.
value
=
res
.
data
productTypes
.
value
=
res
.
data
...
@@ -417,6 +419,7 @@ function create() {
...
@@ -417,6 +419,7 @@ function create() {
// 创建订单(使用旺铺聚合支付)
// 创建订单(使用旺铺聚合支付)
createOrderSubmitWpgj
(
createData
).
then
(
res
=>
{
createOrderSubmitWpgj
(
createData
).
then
(
res
=>
{
console
.
log
(
'WPGJ支付响应数据:'
,
res
.
data
);
if
(
res
.
data
.
payOrderId
)
{
if
(
res
.
data
.
payOrderId
)
{
// 弹出确认对话框
// 弹出确认对话框
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
...
@@ -429,11 +432,14 @@ function create() {
...
@@ -429,11 +432,14 @@ function create() {
}
}
)
)
.
then
(()
=>
{
.
then
(()
=>
{
// WPGJ
支付不需要再调用createPay,直接生成二维码
// WPGJ
聚合支付处理 - 后端现在直接返回AppPayOrderSubmitRespVO
if
(
res
.
data
.
displayContent
)
{
if
(
res
.
data
.
displayContent
)
{
getCode
(
res
.
data
.
displayContent
,
res
.
data
.
payOrderId
)
// 使用displayContent字段生成二维码
getCode
(
res
.
data
.
displayContent
,
null
);
// WPGJ接口不需要payOrderId
}
else
{
ElMessage
.
error
(
'获取支付信息失败'
);
}
}
//
showDrawer.value = false;
showDrawer
.
value
=
false
;
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
...
...
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