删除提现相关功能
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -105,20 +105,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 快速操作 -->
|
||||
<div class="quick-actions">
|
||||
<div class="action-card" @click="goToWithdrawals">
|
||||
<div class="action-icon withdraw">
|
||||
<el-icon><CreditCard /></el-icon>
|
||||
</div>
|
||||
<div class="action-content">
|
||||
<div class="action-title">营收提现</div>
|
||||
<div class="action-desc">快速提现到账</div>
|
||||
</div>
|
||||
<el-icon class="arrow"><ArrowRight /></el-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 标签页 -->
|
||||
<el-tabs v-model="activeTab" class="main-tabs">
|
||||
<!-- 商户管理 -->
|
||||
@@ -318,43 +304,6 @@
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
|
||||
|
||||
|
||||
<!-- 营收提现 -->
|
||||
<el-tab-pane label="营收提现" name="withdrawals">
|
||||
<div class="withdrawals-section">
|
||||
<div class="section-header">
|
||||
<h3>营收提现</h3>
|
||||
<el-button type="primary" @click="goToWithdrawals">
|
||||
进入提现页面
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<div class="withdrawal-summary">
|
||||
<div class="summary-card">
|
||||
<div class="summary-item">
|
||||
<span class="label">可提现金额:</span>
|
||||
<span class="value amount">¥{{ (Number(stats.available_amount) || 0).toFixed(2) }}</span>
|
||||
</div>
|
||||
<div class="summary-item">
|
||||
<span class="label">提现中金额:</span>
|
||||
<span class="value">¥{{ (Number(stats.pending_withdrawal) || 0).toFixed(2) }}</span>
|
||||
</div>
|
||||
<div class="summary-item">
|
||||
<span class="label">已提现金额:</span>
|
||||
<span class="value">¥{{ (Number(stats.withdrawn_amount) || 0).toFixed(2) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="quick-actions">
|
||||
<el-button type="primary" size="large" @click="goToWithdrawals">
|
||||
立即提现
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
|
||||
<!-- 商户转账记录 -->
|
||||
<el-tab-pane label="商户转账记录" name="transfers">
|
||||
<div class="transfers-section">
|
||||
@@ -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) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user