Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
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
9ec66081
authored
Oct 04, 2024
by
痴货
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能优化】增加转账回调接口
parent
4a2eddbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/api/pay/app/index.ts
+2
-0
src/views/pay/app/components/AppForm.vue
+8
-2
No files found.
src/api/pay/app/index.ts
View file @
9ec66081
...
...
@@ -8,6 +8,7 @@ export interface AppVO {
remark
:
string
payNotifyUrl
:
string
refundNotifyUrl
:
string
transferNotifyUrl
:
string
merchantId
:
number
merchantName
:
string
createTime
:
Date
...
...
@@ -19,6 +20,7 @@ export interface AppPageReqVO extends PageParam {
remark
?:
string
payNotifyUrl
?:
string
refundNotifyUrl
?:
string
transferNotifyUrl
?:
string
merchantName
?:
string
createTime
?:
Date
[]
}
...
...
src/views/pay/app/components/AppForm.vue
View file @
9ec66081
...
...
@@ -30,6 +30,9 @@
<el-form-item
label=
"退款结果的回调地址"
prop=
"refundNotifyUrl"
>
<el-input
v-model=
"formData.refundNotifyUrl"
placeholder=
"请输入退款结果的回调地址"
/>
</el-form-item>
<el-form-item
label=
"转账结果的回调地址"
prop=
"transferNotifyUrl"
>
<el-input
v-model=
"formData.transferNotifyUrl"
placeholder=
"请输入转账结果的回调地址"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"formData.remark"
placeholder=
"请输入备注"
/>
</el-form-item>
...
...
@@ -62,14 +65,16 @@ const formData = ref({
status
:
CommonStatusEnum
.
ENABLE
,
remark
:
undefined
,
orderNotifyUrl
:
undefined
,
refundNotifyUrl
:
undefined
refundNotifyUrl
:
undefined
,
transferNotifyUrl
:
undefined
})
const
formRules
=
reactive
({
name
:
[{
required
:
true
,
message
:
'应用名不能为空'
,
trigger
:
'blur'
}],
appKey
:
[{
required
:
true
,
message
:
'应用标识不能为空'
,
trigger
:
'blur'
}],
status
:
[{
required
:
true
,
message
:
'开启状态不能为空'
,
trigger
:
'blur'
}],
orderNotifyUrl
:
[{
required
:
true
,
message
:
'支付结果的回调地址不能为空'
,
trigger
:
'blur'
}],
refundNotifyUrl
:
[{
required
:
true
,
message
:
'退款结果的回调地址不能为空'
,
trigger
:
'blur'
}]
refundNotifyUrl
:
[{
required
:
true
,
message
:
'退款结果的回调地址不能为空'
,
trigger
:
'blur'
}],
transferNotifyUrl
:
[{
required
:
true
,
message
:
'转账结果的回调地址不能为空'
,
trigger
:
'blur'
}]
})
const
formRef
=
ref
()
// 表单 Ref
...
...
@@ -126,6 +131,7 @@ const resetForm = () => {
remark
:
undefined
,
orderNotifyUrl
:
undefined
,
refundNotifyUrl
:
undefined
,
transferNotifyUrl
:
undefined
,
appKey
:
undefined
}
formRef
.
value
?.
resetFields
()
...
...
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