From 55b0028ddbafbb0ca3535b3e95a03a18f6cbb57b Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Mon, 6 Apr 2026 11:34:07 +0700 Subject: [PATCH] Simplify bonus account page --- app/pages/bonus-system/[userId].vue | 89 +++++++++++++---------------- 1 file changed, 40 insertions(+), 49 deletions(-) diff --git a/app/pages/bonus-system/[userId].vue b/app/pages/bonus-system/[userId].vue index 9a54ce5..368423a 100644 --- a/app/pages/bonus-system/[userId].vue +++ b/app/pages/bonus-system/[userId].vue @@ -23,19 +23,6 @@ const bonusAccount = computed(() => bonusAccountQuery.result.value?.managerBonus const transactions = computed(() => bonusAccount.value?.transactions ?? []); const pendingWithdrawals = computed(() => bonusAccount.value?.pendingWithdrawals ?? []); -const accountStats = computed(() => { - if (!bonusAccount.value) { - return []; - } - - return [ - { label: 'Всего начислено', value: formatAmount(bonusAccount.value.earnedAmount) }, - { label: 'Транзакций', value: String(bonusAccount.value.transactionsCount) }, - { label: 'Активных связок', value: String(bonusAccount.value.referralsCount) }, - { label: 'На выводе', value: formatAmount(bonusAccount.value.pendingWithdrawalAmount) }, - ]; -}); - function formatAmount(value: number) { return new Intl.NumberFormat('ru-RU', { minimumFractionDigits: 0, @@ -62,17 +49,48 @@ function formatDateTime(value: string) {