diff --git a/app/pages/catalog/offers/index.vue b/app/pages/catalog/offers/index.vue index 5141a36..dbcafc9 100644 --- a/app/pages/catalog/offers/index.vue +++ b/app/pages/catalog/offers/index.vue @@ -80,8 +80,15 @@ const goToProduct = (productId: string) => { navigateTo(localePath(`/catalog/offers/${productId}`)) } -// Price history - empty for now, will be populated from real data -const getPriceHistory = (_uuid: string): number[] => [] +// Mock price history generator (seeded by uuid for consistent results) +const getMockPriceHistory = (uuid: string): number[] => { + const seed = uuid.split('').reduce((acc, char) => acc + char.charCodeAt(0), 0) + const basePrice = 100 + (seed % 200) + return Array.from({ length: 7 }, (_, i) => { + const variation = Math.sin(seed + i * 0.5) * 20 + Math.cos(seed * 0.3 + i) * 10 + return Math.round(basePrice + variation) + }) +} // Initialize await init()