feat: 新增用车需求服务及线索管理全功能

- 新增后台用车服务配置模块,支持维护服务简介、优势与使用流程
- 新增需求线索管理页面,支持筛选、查看与更新用车线索状态
- 新增小程序用车需求页面,优化登录路径与回跳逻辑
- 优化车型卡片跳转与用车需求提交功能
- 新增服务端API与数据处理逻辑,完善权限校验
- 更新全站配置与API文档,新增相关测试用例
This commit is contained in:
duanshuwen committed 2026-08-22 21:48:08 +08:00
1 parent b7a81964c9
commit d42f69bd47
36 files changed
+1290 -33

No files matched your search

@@ -1,5 +1,5 @@
import { useMemo, useState } from "react";
import { Headset, Home, List, LogOut } from "lucide-react";
import { ClipboardList, Headset, Home, List, LogOut } from "lucide-react";
import { clearToken } from "@/api";
import { ToastStack } from "@/components/admin/ToastStack";
@@ -7,6 +7,7 @@ import { Button } from "@/components/ui/button";
import { ConciergePage } from "@/pages/structure/ConciergePage";
import { HomePage } from "@/pages/structure/HomePage";
import { WanfaPage } from "@/pages/structure/WanfaPage";
import { LeadsPage } from "@/pages/leads/LeadsPage";
import type { Tab, Toast } from "@/types/admin";
const sidebarGroups: {
@@ -21,6 +22,7 @@ const sidebarGroups: {
{ id: "home", label: "首页", icon: Home, description: "" },
{ id: "play", label: "玩法", icon: List, description: "" },
{ id: "butler", label: "管家", icon: Headset, description: "" },
{ id: "leads", label: "需求线索", icon: ClipboardList, description: "" },
],
},
];
@@ -118,6 +120,8 @@ export function AdminShell({ onLogout }: { onLogout: () => void }) {
<WanfaPage key="wanfa-page" notify={notify} />
) : activeTab === "butler" ? (
<ConciergePage key="concierge-page" notify={notify} />
) : activeTab === "leads" ? (
<LeadsPage key="leads-page" notify={notify} />
) : null}
</section>
<ToastStack