From a91bfc9527bb461d5a83105436ed51db0faaab56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Fri, 24 Oct 2025 17:33:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(dealer):=20=E6=B7=BB=E5=8A=A0=E6=8F=90?= =?UTF-8?q?=E7=8E=B0=E5=89=8D=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在提现流程中增加实名认证状态检查 - 未认证用户将被重定向到认证页面 - 认证审核中的用户将收到提示信息 - 集成用户认证状态查询接口 - 添加认证状态判断逻辑和错误处理 --- src/dealer/withdraw/index.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/dealer/withdraw/index.tsx b/src/dealer/withdraw/index.tsx index 0d9a3df..bac427e 100644 --- a/src/dealer/withdraw/index.tsx +++ b/src/dealer/withdraw/index.tsx @@ -22,6 +22,8 @@ import type {ShopDealerWithdraw} from '@/api/shop/shopDealerWithdraw/model' import {ShopDealerBank} from "@/api/shop/shopDealerBank/model"; import {listShopDealerBank} from "@/api/shop/shopDealerBank"; import {listCmsWebsiteField} from "@/api/cms/cmsWebsiteField"; +import {myUserVerify} from "@/api/system/userVerify"; +import navTo from "@/utils/common"; interface WithdrawRecordWithDetails extends ShopDealerWithdraw { accountDisplay?: string @@ -241,6 +243,19 @@ const DealerWithdraw: React.FC = () => { return } + // 验证实名认证 + const isChecked = await myUserVerify({}) + if(!isChecked){ + console.log(isChecked,'isCheckedisCheckedisCheckedisChecked'); + return navTo(`/user/userVerify/index`,true) + } + if(isChecked.status === 0){ + Taro.showToast({ + title: '实名认证还在审核中...', + icon: 'none' + }) + return false; + } try { setSubmitting(true)