import type { PointsMallOverview, PointsMallProduct } from '../../api'; export const MOCK_OVERVIEW: PointsMallOverview = { me: { points: 1280, level: 'Lv.2' }, categories: [ { id: 'all', name: '全部', sort: 0 }, { id: 'digital', name: '虚拟权益', sort: 1 }, { id: 'tool', name: '工具周边', sort: 2 }, { id: 'gift', name: '礼品卡券', sort: 3 }, { id: 'limited', name: '限时活动', sort: 4 } ], announcements: [], banners: [{ id: 'b1', title: '本期活动', subtitle: 'Up to 25% Off', imageUrl: '', linkUrl: '' }], promoEntries: [ { id: 'p1', title: '促销活动', subtitle: '本周精选', linkUrl: '' }, { id: 'p2', title: '积分任务', subtitle: '快速涨积分', linkUrl: '' } ] }; export const MOCK_PRODUCTS: PointsMallProduct[] = Array.from({ length: 12 }).map((_, i) => ({ id: String(i + 1), categoryId: i % 2 === 0 ? 'digital' : 'tool', name: `商品 ${i + 1}`, subtitle: '这里是商品简短描述', coverUrl: '', pointsPrice: 199 + i * 10, stock: 99, sold: 12 + i, tags: i % 3 === 0 ? ['限时'] : i % 3 === 1 ? ['热卖'] : [] }));