业务更名为撞车并切换crash路由

用户可见文案与页面/API路径改为撞车与crash,保留mohong表与权限码兼容;移动端入口去掉租/撞图标。
This commit is contained in:
yml2213
2026-07-16 21:19:35 +08:00
parent 8b637cf499
commit a4189db4ca
38 changed files with 232 additions and 179 deletions
+7 -3
View File
@@ -14,7 +14,7 @@ export interface ChatParticipant {
joined_at: string
}
export type SupportScene = 'general' | 'mohong'
export type SupportScene = 'general' | 'crash'
export interface ChatConversation {
id: number
@@ -42,15 +42,19 @@ export interface ChatConversation {
updated_at: string
}
/** 根据当前路由推断客服场景:摸大红页 → mohong,其它 → general */
/** 根据当前路由推断客服场景:撞车页 → crash,其它 → general */
export function resolveSupportScene(path: string): SupportScene {
if (
path === '/crash' ||
path.startsWith('/crash/') ||
path === '/m/crash' ||
path.startsWith('/m/crash/') ||
path === '/mohong' ||
path.startsWith('/mohong/') ||
path === '/m/mohong' ||
path.startsWith('/m/mohong/')
) {
return 'mohong'
return 'crash'
}
return 'general'
}