@@ -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 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
¥{{ commissionStats.total_commission || '0.00' }}
-
总佣金
-
-
-
-
-
-
-
-
¥{{ commissionStats.available_amount || '0.00' }}
-
可提现金额
-
-
-
-
-
-
-
-
¥{{ commissionStats.pending_withdrawal || '0.00' }}
-
提现中
-
-
-
-
-
-
-
-
¥{{ commissionStats.withdrawn_amount || '0.00' }}
-
已提现
-
-
-
-
-
-
-
-
-
-
-
-
-
加载中...
-
- 暂无提现记录
-
-
-
-
-
-
- 申请时间:
- {{ formatDate(record.created_at) }}
-
-
- 收款信息:
-
- {{ getPaymentTypeText(record.payment_type || 'bank') }}
-
- - {{ record.bank_name }} {{ maskAccount(record.account_number || record.bank_account) }}
-
-
- - {{ record.account_holder }} ({{ maskAccount(record.account_number) }})
-
-
-
-
- 备注:
- {{ record.admin_note }}
-
-
- 完成时间:
- {{ formatDate(record.completed_at) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
![]()
-
- 点击更换图片
-
-
-
-
-
点击上传收款码
-
支持 JPG、PNG 格式,大小不超过5MB
-
-
-
-
- 上传中...
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file