From 249121585a8d6280252d8d539a6d533920136ec9 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Fri, 20 Mar 2026 17:22:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=B8=BB=E6=92=AD=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E3=80=81=E4=BB=A3=E7=90=86=E4=B8=AD=E5=BF=83):=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=8F=90=E7=8E=B0=E6=9D=83=E9=99=90=E7=8A=B6=E6=80=81?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E4=BA=8E=E6=8F=90=E7=8E=B0=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E9=9A=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AgencyCenter/index.vue | 21 +++++++++++++++++++-- src/views/HostCenter/index.vue | 26 +++++++++++++++++++++++--- 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/src/views/AgencyCenter/index.vue b/src/views/AgencyCenter/index.vue index adf87eb..dc7b92d 100644 --- a/src/views/AgencyCenter/index.vue +++ b/src/views/AgencyCenter/index.vue @@ -360,7 +360,8 @@ - + @@ -454,6 +455,7 @@ import { getUserIdentity, getBankCardList, // 获取正在使用的银行卡 getWithdrawInfoList, // 获取申请提现信息 + apiGetWithdrawEnabled, // 获取提现权限 } from '@/api/wallet.js' import GeneralHeader from '@/components/GeneralHeader.vue' @@ -466,6 +468,7 @@ const router = useRouter() // 监听语言变化并设置文档方向 locale.value && setDocumentDirection(locale.value) +const withdrawEnabled = ref(false) // 提现权限 const maskLayerShow = ref(false) // 弹窗遮罩层显示状态 const totalSalary = ref('0') //历史收入 @@ -795,6 +798,19 @@ const getWithdrawInfoListData = async () => { } } +// 获取提现权限 +const getWithdrawEnabled = async () => { + try { + const resWithdrawEnabled = await apiGetWithdrawEnabled() + if (resWithdrawEnabled.body && resWithdrawEnabled.status) { + withdrawEnabled.value = resWithdrawEnabled.body + } + } catch (error) { + console.error('获取提现信息列表失败:', error) + showError(error.response?.errorMsg) + } +} + const { userInfo, salaryInfo, taskInfo } = usePageInitializationWithConfig('AGENCY_CENTER', { needsTeamInfo: true, forceRefresh: true, // 强制刷新 @@ -808,6 +824,7 @@ const { userInfo, salaryInfo, taskInfo } = usePageInitializationWithConfig('AGEN onMounted(() => { getBankCards() // 获取正在使用的银行卡 getWithdrawInfoListData() // 获取提现信息列表 + getWithdrawEnabled() // 获取提现权限 underlineStyle.value // 触发计算属性更新 diff --git a/src/views/HostCenter/index.vue b/src/views/HostCenter/index.vue index a41ba31..f4ad3f3 100644 --- a/src/views/HostCenter/index.vue +++ b/src/views/HostCenter/index.vue @@ -179,7 +179,7 @@ > -