From f733f5b805e364d2b22d2a4a036d888892c8e339 Mon Sep 17 00:00:00 2001 From: Seven Date: Tue, 20 Jan 2026 00:33:23 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=AE=9E=E5=90=8D?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=95=B4=E5=90=88?= =?UTF-8?q?KYC=E7=BB=84=E4=BB=B6=E5=88=B0=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=94=AF=E6=8C=81=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/components/kyc.vue | 135 ++++++++++++++++++++++++++++++ src/views/user/index.vue | 23 +++-- 2 files changed, 153 insertions(+), 5 deletions(-) create mode 100644 src/views/user/components/kyc.vue diff --git a/src/views/user/components/kyc.vue b/src/views/user/components/kyc.vue new file mode 100644 index 0000000..986ab19 --- /dev/null +++ b/src/views/user/components/kyc.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 12aa34c..eb1f0c4 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -9,6 +9,7 @@ import Address from './components/address.vue'; import Payment from './components/payment.vue'; import Withdraw from './components/withdraw.vue'; import Team from './components/team.vue'; +import Kyc from './components/kyc.vue'; const dialog = useDialog(); @@ -64,7 +65,7 @@ const columns: TableBaseColumns = [ title: '用户钱包', showIcon: false, style: { width: '1000px' }, - content: () => h(Wallet, { userId: row.userId }) + content: () => h(Wallet, { userId: row.id }) }); } }, @@ -76,7 +77,7 @@ const columns: TableBaseColumns = [ title: '收货地址', showIcon: false, style: { width: '1000px' }, - content: () => h(Address, { userId: row.userId }) + content: () => h(Address, { userId: row.id }) }); } }, @@ -88,7 +89,7 @@ const columns: TableBaseColumns = [ title: '收款方式', showIcon: false, style: { width: '1000px' }, - content: () => h(Payment, { userId: row.userId }) + content: () => h(Payment, { userId: row.id }) }); } }, @@ -100,7 +101,7 @@ const columns: TableBaseColumns = [ title: '提现订单', showIcon: false, style: { width: '1000px' }, - content: () => h(Withdraw, { userId: row.userId }) + content: () => h(Withdraw, { userId: row.id }) }); } }, @@ -115,7 +116,7 @@ const columns: TableBaseColumns = [ negativeText: '取消', onPositiveClick: async () => { const { data } = await safeClient(() => - client.api.admin.user_security({ userId: row.userId })['transaction-password'].reset.post() + client.api.admin.user_security({ userId: row.id })['transaction-password'].reset.post() ); dialog.success({ @@ -137,6 +138,18 @@ const columns: TableBaseColumns = [ content: () => h(Team, { code: row.userProfile.referralCode }) }); } + }, + { + contentText: '实名认证', + size: 'small', + onClick: () => { + dialog.create({ + title: '实名认证', + showIcon: false, + style: { width: '1000px' }, + content: () => h(Kyc, { userId: row.id }) + }); + } } ] }