Commit ddd5d5cd authored by zengqiang's avatar zengqiang

Merge branch 'feature/2026-05-08-wechat-transfer' into 'dev'

chore(withdraw): 移除H5 appId校验逻辑 See merge request wykolor/mall-webview!13
parents 80b95b34 890c4c1a
...@@ -6,10 +6,6 @@ ...@@ -6,10 +6,6 @@
</div> </div>
<template v-else> <template v-else>
<div class="upgrade-tip" v-if="showAppIdMismatchTip">
该提现需在微信小程序中确认收款,请前往微信小程序操作。
</div>
<div class="confirm-icon">💰</div> <div class="confirm-icon">💰</div>
<div class="confirm-title">提现申请已提交</div> <div class="confirm-title">提现申请已提交</div>
<div class="confirm-amount">¥{{ amount }}</div> <div class="confirm-amount">¥{{ amount }}</div>
...@@ -21,7 +17,7 @@ ...@@ -21,7 +17,7 @@
<p class="timeout-hint">⏰ 请在24小时内确认,超时将自动退回</p> <p class="timeout-hint">⏰ 请在24小时内确认,超时将自动退回</p>
</div> </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> <button class="btn-back" @click="handleBack">返回奖励金首页</button>
<div class="confirm-faq"> <div class="confirm-faq">
...@@ -47,9 +43,6 @@ export default defineComponent({ ...@@ -47,9 +43,6 @@ export default defineComponent({
packageInfo: '', packageInfo: '',
mchId: '', mchId: '',
appId: '', appId: '',
// H5 APP 的 appId 固定值
currentAppId: 'wxce3ddfea994471b9',
showAppIdMismatchTip: false,
loading: true loading: true
} }
}, },
...@@ -64,7 +57,7 @@ export default defineComponent({ ...@@ -64,7 +57,7 @@ export default defineComponent({
this.packageInfo = decodeURIComponent(query.packageInfo as string) this.packageInfo = decodeURIComponent(query.packageInfo as string)
this.mchId = (query.mchId as string) || '' this.mchId = (query.mchId as string) || ''
this.appId = (query.appId as string) || '' this.appId = (query.appId as string) || ''
this.checkAppIdMismatch() this.loading = false
} else if (this.withdrawNo) { } else if (this.withdrawNo) {
// 场景2:从列表页进入,需要查询 packageInfo // 场景2:从列表页进入,需要查询 packageInfo
await this.fetchPackageInfo() await this.fetchPackageInfo()
...@@ -73,13 +66,6 @@ export default defineComponent({ ...@@ -73,13 +66,6 @@ export default defineComponent({
} }
}, },
methods: { methods: {
checkAppIdMismatch () {
// 检查 appId 是否与当前平台一致(暂时禁用,保留代码用于测试)
// if (this.appId && this.appId !== this.currentAppId) {
// this.showAppIdMismatchTip = true
// }
this.loading = false
},
async fetchPackageInfo () { async fetchPackageInfo () {
try { try {
console.log('fetchPackageInfo called, withdrawNo:', this.withdrawNo) console.log('fetchPackageInfo called, withdrawNo:', this.withdrawNo)
...@@ -90,23 +76,18 @@ export default defineComponent({ ...@@ -90,23 +76,18 @@ export default defineComponent({
this.mchId = res.mchId || '' this.mchId = res.mchId || ''
this.appId = res.appId || '' this.appId = res.appId || ''
console.log('packageInfo:', this.packageInfo, 'mchId:', this.mchId, 'appId:', this.appId) console.log('packageInfo:', this.packageInfo, 'mchId:', this.mchId, 'appId:', this.appId)
this.checkAppIdMismatch()
} else { } else {
console.log('no data in response') console.log('no data in response')
alert('获取提现信息失败') alert('获取提现信息失败')
this.loading = false
} }
} catch (error) { } catch (error) {
console.error('fetchPackageInfo error:', error) console.error('fetchPackageInfo error:', error)
alert('网络请求失败: ' + error) alert('网络请求失败: ' + error)
} finally {
this.loading = false this.loading = false
} }
}, },
async handleConfirm () { async handleConfirm () {
if (this.showAppIdMismatchTip) {
return
}
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('缺少必要参数,无法确认收款') alert('缺少必要参数,无法确认收款')
...@@ -163,18 +144,6 @@ export default defineComponent({ ...@@ -163,18 +144,6 @@ export default defineComponent({
font-size: 4vw; 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 { .confirm-icon {
font-size: 10vw; font-size: 10vw;
margin-bottom: 4vw; margin-bottom: 4vw;
...@@ -238,11 +207,6 @@ export default defineComponent({ ...@@ -238,11 +207,6 @@ export default defineComponent({
cursor: pointer; cursor: pointer;
} }
.btn-confirm.disabled {
background: #ccc;
cursor: not-allowed;
}
.btn-back { .btn-back {
width: 100%; width: 100%;
padding: 3.5vw; padding: 3.5vw;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment