Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-webview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frontend
mall-webview
Commits
a62a68cc
Commit
a62a68cc
authored
May 22, 2026
by
zengqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(withdraw): 处理微信确认收款回调结果
- 成功时跳转到处理状态页面 - 用户取消时显示Toast提示 - 其他错误显示操作失败提示
parent
e2ef00ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
ConfirmReceipt.vue
src/views/withdraw/ConfirmReceipt.vue
+11
-4
No files found.
src/views/withdraw/ConfirmReceipt.vue
View file @
a62a68cc
...
@@ -97,13 +97,15 @@ export default defineComponent({
...
@@ -97,13 +97,15 @@ export default defineComponent({
try
{
try
{
// 调用原生方法唤起微信确认收款
// 调用原生方法唤起微信确认收款
await
requestMerchantTransfer
({
const
result
=
await
requestMerchantTransfer
({
mchId
:
this
.
mchId
,
mchId
:
this
.
mchId
,
appId
:
this
.
appId
,
appId
:
this
.
appId
,
package
:
this
.
packageInfo
package
:
this
.
packageInfo
})
})
// 跳转到处理状态页面
console
.
log
(
'requestMerchantTransfer result:'
,
result
)
// 成功:跳转到处理状态页面
this
.
$router
.
replace
({
this
.
$router
.
replace
({
path
:
'/withdraw/processing-status'
,
path
:
'/withdraw/processing-status'
,
query
:
{
query
:
{
...
@@ -112,9 +114,14 @@ export default defineComponent({
...
@@ -112,9 +114,14 @@ export default defineComponent({
amount
:
this
.
amount
amount
:
this
.
amount
}
}
})
})
}
catch
(
error
)
{
}
catch
(
error
:
any
)
{
console
.
error
(
'requestMerchantTransfer error:'
,
error
)
console
.
error
(
'requestMerchantTransfer error:'
,
error
)
Toast
.
fail
(
'确认收款失败'
)
// 用户取消
if
(
error
.
message
===
'cancel'
)
{
Toast
(
'用户取消'
)
}
else
{
Toast
.
fail
(
'操作失败'
)
}
}
}
},
},
handleBack
()
{
handleBack
()
{
...
...
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