业务更名为撞车并切换crash路由
用户可见文案与页面/API路径改为撞车与crash,保留mohong表与权限码兼容;移动端入口去掉租/撞图标。
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user