Revert "feat(bonuses): экран «Бонусы» — уровень, серии, цели, история"
This reverts commit e6e1d705b3.
This commit is contained in:
1 parent
e6e1d705b3
commit
f6bc3da47b
7 files changed
+3
-512
No files matched your search
@@ -9,22 +9,6 @@ vi.mock("@/api/driver", () => ({
|
||||
// Колокольчик в шапке главного экрана спрашивает счётчик непрочитанного.
|
||||
getNotifications: vi.fn(async () => ({ items: [], unread: 0 })),
|
||||
markNotificationsRead: vi.fn(async () => ({ marked: 0 })),
|
||||
// Карточка бонусов на главной: та же форма, что отдаёт /driver/bonuses.
|
||||
getBonuses: vi.fn(async () => ({
|
||||
level: { code: "rhythm", title: "В ритме", subtitle: "Третья неделя", days: 18,
|
||||
next: { title: "Первый месяц", days_left: 12 }, series_start: null },
|
||||
week: { monday: "2026-08-10", orders: { yandex: 90, maxim: 37, total: 127,
|
||||
tier_amount: 1200, next_tier: { minimum: 140, amount: 1500 } } },
|
||||
payment_streak: { weeks: 3, weekly_amount: 500, monthly_cap: 3500 },
|
||||
clean: { days: 18, next: { days: 30, amount: 1000 } },
|
||||
discount: { active: true, per_day: 500, series: 2, max_series: 3, threshold: 70,
|
||||
this_week_best: 90, ends_at: "2026-08-16" },
|
||||
sums: { pending: 700, earned: 4300, this_month: 4300 },
|
||||
referral: { code: "PP-2630", connect_amount: 2000, days_amount: 8000, work_days: 21,
|
||||
invited: [{ driver_id: 9001, days: 9, connected: true }] },
|
||||
goals: [{ kind: "orders", text: "Ещё 13 заказов до 1 500 ₽ за неделю", left: 13 }],
|
||||
accruals: [],
|
||||
})),
|
||||
getBalance: vi.fn(async () => ({
|
||||
accounts: [
|
||||
{ bucket: "Долг аренда", balance: -3050, payable: true },
|
||||
|
||||
Reference in new issue
Block a user