feat(home): landing-style live chart, dynamic product tabs, and price copy

Replace home chart with landing live card, catalog-driven tabs, and smoother range transitions; normalize مظنه to قیمت in user-facing strings; add installment and zaarbox chart APIs.
This commit is contained in:
2026-10-21 03:39:00 -04:00
parent 7626453def
commit 2048680d7a
33 changed files with 1498 additions and 91 deletions
+26
View File
@@ -0,0 +1,26 @@
import useAxios from '@/utils/useAxios'
export interface DigipayInstallmentStatus {
enabled: boolean
status: 'none' | 'pending' | 'active' | string
plan4_remaining_toman: number
plan12_remaining_toman: number
gram_price_rial: number
config: {
onboarding_url: string
fee_shop_percent: number
fee_gateway_percent: number
fee_extra_percent: number
plan4_cap_toman: number
plan12_cap_toman: number
}
}
export const fetchDigipayInstallment = () =>
useAxios.get<DigipayInstallmentStatus>('/customer/digipay_installment')
export const startDigipayInstallment = () =>
useAxios.post<DigipayInstallmentStatus>('/customer/digipay_installment/start')
export const buyDigipayInstallment = (plan: 4 | 12, amountToman: number) =>
useAxios.post('/customer/digipay_installment/buy', { plan, amount_toman: amountToman })