更改
This commit is contained in:
@@ -17,10 +17,10 @@
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<div class="header-stats">
|
||||
<div class="quick-stat">
|
||||
<!-- <div class="quick-stat">
|
||||
<span class="stat-value">{{ statsData.users.total_users }}</span>
|
||||
<span class="stat-label">总用户数</span>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="quick-stat">
|
||||
<span class="stat-value">{{ statsData.commissions.total_commission }}</span>
|
||||
<span class="stat-label">总收入</span>
|
||||
@@ -275,17 +275,19 @@ const userChartPeriod = ref('30')
|
||||
// 统计数据
|
||||
const statsData = ref({
|
||||
users: {
|
||||
total_users: 0,
|
||||
// total_users: 0,
|
||||
total_operated: 0,
|
||||
agent_share_users: 0,
|
||||
operated_share_users: 0,
|
||||
total_directly_agents: 0,
|
||||
directly_agents_income: 0,
|
||||
active_users_income: 0,
|
||||
total_directly_agents: 0
|
||||
},
|
||||
commissions: {
|
||||
total_commission: 0,
|
||||
today_commission: 0,
|
||||
directly_agents_income: 0,
|
||||
active_users_income: 0,
|
||||
operated_commission: 0,
|
||||
get_commission: 0,
|
||||
loading_commission: 0,
|
||||
}
|
||||
})
|
||||
|
||||
@@ -307,9 +309,9 @@ const stats = computed(() => [
|
||||
value: statsData.value.users.total_directly_agents,
|
||||
icon: User,
|
||||
class: 'stat-users',
|
||||
change: `直销商户利润${statsData.value.users.directly_agents_income}`,
|
||||
changeClass: statsData.value.users.directly_agents_income >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.users.directly_agents_income >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
change: `直销商户利润${statsData.value.commissions.directly_agents_income}`,
|
||||
changeClass: statsData.value.commissions.directly_agents_income >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.commissions.directly_agents_income >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
},
|
||||
{
|
||||
key: 'users',
|
||||
@@ -317,9 +319,9 @@ const stats = computed(() => [
|
||||
value: statsData.value.users.agent_share_users,
|
||||
icon: User,
|
||||
class: 'stat-users',
|
||||
change: `直销商户分享利润${statsData.value.users.active_users_income}`,
|
||||
changeClass: statsData.value.users.active_users_income >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.users.active_users_income >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
change: `直销商户分享利润${statsData.value.commissions.active_users_income}`,
|
||||
changeClass: statsData.value.commissions.active_users_income >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.commissions.active_users_income >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
},
|
||||
{
|
||||
key: 'users',
|
||||
@@ -327,9 +329,9 @@ const stats = computed(() => [
|
||||
value: `${statsData.value.users.total_operated}`,
|
||||
icon: Money,
|
||||
class: 'stat-commission',
|
||||
change: `直营佣金${statsData.value.commissions.today_commission}`,
|
||||
changeClass: statsData.value.commissions.today_commission >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.commissions.today_commission >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
change: `直营佣金${statsData.value.commissions.operated_commission}`,
|
||||
changeClass: statsData.value.commissions.operated_commission >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.commissions.operated_commission >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
},
|
||||
{
|
||||
key: 'users',
|
||||
@@ -337,19 +339,19 @@ const stats = computed(() => [
|
||||
value: `${statsData.value.users.active_users}`,
|
||||
icon: Coin,
|
||||
class: 'stat-today',
|
||||
change: `已提现佣金${statsData.value.commissions.today_commission}`,
|
||||
changeClass: statsData.value.commissions.today_commission >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.commissions.today_commission >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
change: `已提现佣金${statsData.value.commissions.get_commission}`,
|
||||
changeClass: statsData.value.commissions.get_commission >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.commissions.get_commission >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
},
|
||||
{
|
||||
key: 'users',
|
||||
label: '直营商户分享人数',
|
||||
value: `${statsData.value.commissions.operated_share_users}`,
|
||||
value: `${statsData.value.users.operated_share_users}`,
|
||||
icon: Coin,
|
||||
class: 'stat-today',
|
||||
change: `待提现佣金${statsData.value.commissions.today_commission}`,
|
||||
changeClass: statsData.value.commissions.today_commission >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.commissions.today_commission >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
change: `待提现佣金${statsData.value.commissions.loading_commission}`,
|
||||
changeClass: statsData.value.commissions.loading_commission >= 0 ? 'positive' : 'negative',
|
||||
changeIcon: statsData.value.commissions.loading_commission >= 0 ? 'ArrowUp' : 'ArrowDown'
|
||||
}
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user