feat: 添加充值组件并在用户页面中集成充值订单对话框

This commit is contained in:
2026-01-25 18:33:20 +07:00
parent 0b2544fe11
commit 531f90d9a4
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<script lang="ts" setup>
import DepositPage from '@/views/deposit/index.vue';
defineOptions({
name: 'DepositDialog'
});
const props = defineProps<{
userId?: string;
}>();
</script>
<template>
<DepositPage :user-id="userId" :scroll-x="800" :show-header-operation="false" />
</template>
<style lang="css" scoped></style>

View File

@@ -12,6 +12,7 @@ import Withdraw from './components/withdraw.vue';
import Team from './components/team.vue';
import Kyc from './components/kyc.vue';
import Ledger from './components/ledger.vue';
import Deposit from './components/deposit.vue';
const dialog = useDialog();
const message = useMessage();
@@ -95,6 +96,18 @@ const columns: TableBaseColumns = [
});
}
},
{
contentText: '充值订单',
size: 'small',
onClick: () => {
dialog.create({
title: '充值订单',
showIcon: false,
style: { width: '1000px' },
content: () => h(Deposit, { userId: row.id })
});
}
},
{
contentText: '提现订单',
size: 'small',