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
9f8b872b
Commit
9f8b872b
authored
May 21, 2026
by
zengqiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/2026-05-08-wechat-transfer' into 'test'
fix(withdraw): 将alert提示改为Vant Toast See merge request wykolor/mall-webview!18
parents
4344d861
e2ef00ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ConfirmReceipt.vue
src/views/withdraw/ConfirmReceipt.vue
+5
-4
No files found.
src/views/withdraw/ConfirmReceipt.vue
View file @
9f8b872b
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
'vue'
import
{
defineComponent
}
from
'vue'
import
{
Toast
}
from
'vant'
import
{
getWithdrawPackageInfo
}
from
'@/server/api/withdrawService'
import
{
getWithdrawPackageInfo
}
from
'@/server/api/withdrawService'
import
{
requestMerchantTransfer
}
from
'@/util/use-native-bridge'
import
{
requestMerchantTransfer
}
from
'@/util/use-native-bridge'
...
@@ -78,11 +79,11 @@ export default defineComponent({
...
@@ -78,11 +79,11 @@ export default defineComponent({
console
.
log
(
'packageInfo:'
,
this
.
packageInfo
,
'mchId:'
,
this
.
mchId
,
'appId:'
,
this
.
appId
)
console
.
log
(
'packageInfo:'
,
this
.
packageInfo
,
'mchId:'
,
this
.
mchId
,
'appId:'
,
this
.
appId
)
}
else
{
}
else
{
console
.
log
(
'no data in response'
)
console
.
log
(
'no data in response'
)
alert
(
'获取提现信息失败'
)
Toast
.
fail
(
'获取提现信息失败'
)
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'fetchPackageInfo error:'
,
error
)
console
.
error
(
'fetchPackageInfo error:'
,
error
)
alert
(
'网络请求失败: '
+
error
)
Toast
.
fail
(
'网络请求失败'
)
}
finally
{
}
finally
{
this
.
loading
=
false
this
.
loading
=
false
}
}
...
@@ -90,7 +91,7 @@ export default defineComponent({
...
@@ -90,7 +91,7 @@ export default defineComponent({
async
handleConfirm
()
{
async
handleConfirm
()
{
if
(
!
this
.
packageInfo
||
!
this
.
mchId
||
!
this
.
appId
)
{
if
(
!
this
.
packageInfo
||
!
this
.
mchId
||
!
this
.
appId
)
{
console
.
error
(
'Missing params:'
,
{
packageInfo
:
this
.
packageInfo
,
mchId
:
this
.
mchId
,
appId
:
this
.
appId
})
console
.
error
(
'Missing params:'
,
{
packageInfo
:
this
.
packageInfo
,
mchId
:
this
.
mchId
,
appId
:
this
.
appId
})
alert
(
'缺少必要参数,无法确认收款'
)
Toast
.
fail
(
'缺少必要参数,无法确认收款'
)
return
return
}
}
...
@@ -113,7 +114,7 @@ export default defineComponent({
...
@@ -113,7 +114,7 @@ export default defineComponent({
})
})
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'requestMerchantTransfer error:'
,
error
)
console
.
error
(
'requestMerchantTransfer error:'
,
error
)
alert
(
'确认收款失败: '
+
error
)
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