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)