diff --git a/src/router/index.js b/src/router/index.js index 18c10e9..b22b1f0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -167,16 +167,6 @@ const routes = [ isAgent: true } }, - { - path: '/agent/withdrawals', - name: 'AgentWithdrawals', - component: () => import('@/views/AgentWithdrawals.vue'), - meta: { - title: '佣金提现', - requiresAuth: true, - isAgent: true - } - }, { path: '/customerservice', name: 'CustomerService', diff --git a/src/views/AgentDashboard.vue b/src/views/AgentDashboard.vue index ab5c49d..a34dfc0 100644 --- a/src/views/AgentDashboard.vue +++ b/src/views/AgentDashboard.vue @@ -105,20 +105,6 @@ - -
-
-
- -
-
-
营收提现
-
快速提现到账
-
- -
-
- @@ -318,43 +304,6 @@ - - - - -
-
-

营收提现

- - 进入提现页面 - -
- -
-
-
- 可提现金额: - ¥{{ (Number(stats.available_amount) || 0).toFixed(2) }} -
-
- 提现中金额: - ¥{{ (Number(stats.pending_withdrawal) || 0).toFixed(2) }} -
-
- 已提现金额: - ¥{{ (Number(stats.withdrawn_amount) || 0).toFixed(2) }} -
-
- -
- - 立即提现 - -
-
-
-
-
@@ -805,19 +754,9 @@ const getTransferTypeType = (type) => { */ const getTransferTypeText = (type) => { const texts = { - // deposit: '充值', - // withdraw: '提现', - // transfer: '转账', - // commission: '营收', - // refund: '退款', - // penalty: '罚金', - // initial: '初始转账', - // return: '返还转账', user_to_user: '用户转账', user_to_agent: '用户转代理', user_to_system: '用户转系统', - // user_to_public: '用户转公户', - // public_to_user: '公户转用户' } return texts[type] || type } @@ -876,13 +815,6 @@ const maskUsername = (username) => { return username[0] + '*'.repeat(username.length - 2) + username[username.length - 1] } -/** - * 跳转到提现页面 - */ -const goToWithdrawals = () => { - router.push('/agent/withdrawals') -} - /** * 刷新所有数据 */ @@ -1383,6 +1315,25 @@ onMounted(async () => { padding: 0 16px; } +:deep(.el-tabs__nav) { + width: 100%; + display: flex; +} + +:deep(.el-tabs__item) { + flex: 1; + text-align: center; + justify-content: center; + padding: 12px 8px; + border-radius: 12px; + margin: 0 2px; + transition: all 0.3s ease; + min-width: 0; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + .section-header { display: flex; justify-content: space-between; @@ -1423,10 +1374,17 @@ onMounted(async () => { } :deep(.el-tabs__item) { - padding: 12px 20px; + flex: 1; + text-align: center; + justify-content: center; + padding: 12px 8px; border-radius: 12px; - margin: 0 4px; + margin: 0 2px; transition: all 0.3s ease; + min-width: 0; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } :deep(.el-tabs__item.is-active) { @@ -1438,70 +1396,6 @@ onMounted(async () => { display: none; } -/* 提现相关样式 */ -.withdrawals-section { - min-height: 300px; -} - -.withdrawal-summary { - display: flex; - flex-direction: column; - gap: 20px; -} - -.summary-card { - background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%); - border-radius: 16px; - padding: 20px; - border: 1px solid rgba(64, 158, 255, 0.1); -} - -.summary-item { - display: flex; - justify-content: space-between; - align-items: center; - padding: 12px 0; - border-bottom: 1px solid rgba(64, 158, 255, 0.1); -} - -.summary-item:last-child { - border-bottom: none; -} - -.summary-item .label { - font-size: 14px; - color: #606266; - font-weight: 500; -} - -.summary-item .value { - font-size: 16px; - font-weight: 700; - color: #303133; -} - -.summary-item .value.amount { - color: #f56c6c; - font-size: 18px; -} - -.withdrawals-section .quick-actions { - padding: 0; - margin: 0; - background: none; - box-shadow: none; -} - -.withdrawals-section .quick-actions .el-button { - width: 100%; - height: 48px; - font-size: 16px; - font-weight: 600; - border-radius: 12px; - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - border: none; -} - /* 表格样式 */ :deep(.el-table) { border-radius: 12px; @@ -1661,8 +1555,17 @@ onMounted(async () => { } :deep(.el-tabs__item) { - padding: 8px 12px; + flex: 1; + text-align: center; + justify-content: center; + padding: 8px 4px; font-size: 14px; + border-radius: 8px; + margin: 0 1px; + min-width: 0; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } :deep(.el-table) { diff --git a/src/views/AgentWithdrawals.vue b/src/views/AgentWithdrawals.vue deleted file mode 100644 index 8cd48ad..0000000 --- a/src/views/AgentWithdrawals.vue +++ /dev/null @@ -1,1099 +0,0 @@ - - - - - \ No newline at end of file