From 239e46037eb9626f53b4398015cda08ba2becd5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Sat, 23 May 2026 14:22:27 +0300 Subject: [PATCH] =?UTF-8?q?fix(billing-v2):=20BillingView=20=E2=80=94=20dr?= =?UTF-8?q?op=20=C2=AB=D0=BB=D0=B8=D0=B4=D0=BE=D0=B2=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D0=B0=D1=81=C2=BB,=20wire=20new=20BalanceCard=20props?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/resources/js/views/BillingView.vue | 12 ++++-------- app/tests/Frontend/BillingView.spec.ts | 21 ++++++++++++++++----- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/app/resources/js/views/BillingView.vue b/app/resources/js/views/BillingView.vue index 6da1475c..10e14d4d 100644 --- a/app/resources/js/views/BillingView.vue +++ b/app/resources/js/views/BillingView.vue @@ -29,10 +29,10 @@ const topupSnackbar = ref(false); const txTableRef = ref | null>(null); const walletRub = computed(() => Number(wallet.value?.balance_rub ?? 0)); -const leadsBalance = computed(() => wallet.value?.balance_leads ?? 0); +const affordableLeads = computed(() => wallet.value?.affordable_leads ?? 0); +const currentTierPriceRub = computed(() => wallet.value?.current_tier?.price_rub ?? '0.00'); const runwayDays = computed(() => wallet.value?.runway_days ?? null); const tariffName = computed(() => wallet.value?.tariff?.name ?? null); -const tariffPrice = computed(() => wallet.value?.tariff?.price_monthly ?? null); const tariffFeatures = computed(() => (wallet.value?.tariff?.features ?? []).map(featureLabel)); async function loadWallet(): Promise { @@ -73,10 +73,6 @@ defineExpose({ loadWallet, wallet, topupOpen }); {{ formatPlain(walletRub) }} кошелёк - · - {{ leadsBalance }} лидов запас