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
ddd5d5cd
Commit
ddd5d5cd
authored
May 21, 2026
by
zengqiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/2026-05-08-wechat-transfer' into 'dev'
chore(withdraw): 移除H5 appId校验逻辑 See merge request wykolor/mall-webview!13
parents
80b95b34
890c4c1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
39 deletions
+3
-39
ConfirmReceipt.vue
src/views/withdraw/ConfirmReceipt.vue
+3
-39
No files found.
src/views/withdraw/ConfirmReceipt.vue
View file @
ddd5d5cd
...
...
@@ -6,10 +6,6 @@
</div>
<template
v-else
>
<div
class=
"upgrade-tip"
v-if=
"showAppIdMismatchTip"
>
该提现需在微信小程序中确认收款,请前往微信小程序操作。
</div>
<div
class=
"confirm-icon"
>
💰
</div>
<div
class=
"confirm-title"
>
提现申请已提交
</div>
<div
class=
"confirm-amount"
>
¥
{{
amount
}}
</div>
...
...
@@ -21,7 +17,7 @@
<p
class=
"timeout-hint"
>
⏰ 请在24小时内确认,超时将自动退回
</p>
</div>
<button
class=
"btn-confirm"
:disabled=
"showAppIdMismatchTip"
:class=
"
{ disabled: showAppIdMismatchTip }"
@click="handleConfirm">👆 确认收款
</button>
<button
class=
"btn-confirm"
@
click=
"handleConfirm"
>
👆 确认收款
</button>
<button
class=
"btn-back"
@
click=
"handleBack"
>
返回奖励金首页
</button>
<div
class=
"confirm-faq"
>
...
...
@@ -47,9 +43,6 @@ export default defineComponent({
packageInfo
:
''
,
mchId
:
''
,
appId
:
''
,
// H5 APP 的 appId 固定值
currentAppId
:
'wxce3ddfea994471b9'
,
showAppIdMismatchTip
:
false
,
loading
:
true
}
},
...
...
@@ -64,7 +57,7 @@ export default defineComponent({
this
.
packageInfo
=
decodeURIComponent
(
query
.
packageInfo
as
string
)
this
.
mchId
=
(
query
.
mchId
as
string
)
||
''
this
.
appId
=
(
query
.
appId
as
string
)
||
''
this
.
checkAppIdMismatch
()
this
.
loading
=
false
}
else
if
(
this
.
withdrawNo
)
{
// 场景2:从列表页进入,需要查询 packageInfo
await
this
.
fetchPackageInfo
()
...
...
@@ -73,13 +66,6 @@ export default defineComponent({
}
},
methods
:
{
checkAppIdMismatch
()
{
// 检查 appId 是否与当前平台一致(暂时禁用,保留代码用于测试)
// if (this.appId && this.appId !== this.currentAppId) {
// this.showAppIdMismatchTip = true
// }
this
.
loading
=
false
},
async
fetchPackageInfo
()
{
try
{
console
.
log
(
'fetchPackageInfo called, withdrawNo:'
,
this
.
withdrawNo
)
...
...
@@ -90,23 +76,18 @@ export default defineComponent({
this
.
mchId
=
res
.
mchId
||
''
this
.
appId
=
res
.
appId
||
''
console
.
log
(
'packageInfo:'
,
this
.
packageInfo
,
'mchId:'
,
this
.
mchId
,
'appId:'
,
this
.
appId
)
this
.
checkAppIdMismatch
()
}
else
{
console
.
log
(
'no data in response'
)
alert
(
'获取提现信息失败'
)
this
.
loading
=
false
}
}
catch
(
error
)
{
console
.
error
(
'fetchPackageInfo error:'
,
error
)
alert
(
'网络请求失败: '
+
error
)
}
finally
{
this
.
loading
=
false
}
},
async
handleConfirm
()
{
if
(
this
.
showAppIdMismatchTip
)
{
return
}
if
(
!
this
.
packageInfo
||
!
this
.
mchId
||
!
this
.
appId
)
{
console
.
error
(
'Missing params:'
,
{
packageInfo
:
this
.
packageInfo
,
mchId
:
this
.
mchId
,
appId
:
this
.
appId
})
alert
(
'缺少必要参数,无法确认收款'
)
...
...
@@ -163,18 +144,6 @@ export default defineComponent({
font-size
:
4vw
;
}
.upgrade-tip
{
width
:
100%
;
background
:
#fff3e0
;
color
:
#fa8c16
;
padding
:
3vw
4vw
;
border-radius
:
2vw
;
font-size
:
3.2vw
;
text-align
:
left
;
margin-bottom
:
4vw
;
box-sizing
:
border-box
;
}
.confirm-icon
{
font-size
:
10vw
;
margin-bottom
:
4vw
;
...
...
@@ -238,11 +207,6 @@ export default defineComponent({
cursor
:
pointer
;
}
.btn-confirm.disabled
{
background
:
#ccc
;
cursor
:
not-allowed
;
}
.btn-back
{
width
:
100%
;
padding
:
3.5vw
;
...
...
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