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
4f7d23d9
authored
Oct 26, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新支付功能测试2.0
parent
7d6edd26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/views/computingResource/resourceList.vue
+5
-6
No files found.
src/views/computingResource/resourceList.vue
View file @
4f7d23d9
...
...
@@ -420,8 +420,7 @@ function create() {
// 创建订单(使用旺铺聚合支付)
createOrderSubmitWpgj
(
createData
).
then
(
res
=>
{
console
.
log
(
'WPGJ支付响应数据:'
,
res
.
data
);
if
(
res
.
data
.
payOrderId
)
{
// 弹出确认对话框
// 直接弹出确认对话框(WPGJ接口调用成功就显示)
ElMessageBox
.
confirm
(
'确定购买吗?'
,
// 对话框提示文字
'购买确认'
,
// 对话框标题
...
...
@@ -434,8 +433,8 @@ function create() {
.
then
(()
=>
{
// WPGJ聚合支付处理 - 后端现在直接返回AppPayOrderSubmitRespVO
if
(
res
.
data
.
displayContent
)
{
// 使用displayContent字段生成二维码
getCode
(
res
.
data
.
displayContent
,
null
);
// WPGJ接口不需要payOrderId
// 使用displayContent字段生成二维码,使用orderExtensionId作为payOrderId
getCode
(
res
.
data
.
displayContent
,
res
.
data
.
orderExtensionId
);
}
else
{
ElMessage
.
error
(
'获取支付信息失败'
);
}
...
...
@@ -454,9 +453,9 @@ function create() {
showDrawer
.
value
=
false
;
})
});
}
}).
catch
(
err
=>
{
// 接口调用失败的处理(如提示错误)
console
.
error
(
'创建订单失败:'
,
err
);
ElMessage
.
error
(
'创建订单失败,请重试'
);
});
// 原有支付方式代码(已注释)
...
...
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