feat: 新增政务端,保险端

This commit is contained in:
FlowerWater
2026-01-05 17:17:54 +08:00
parent 3c8b3cf442
commit e08b9694a5
18 changed files with 2742 additions and 9 deletions

View File

@@ -123,13 +123,71 @@ export const bankTabbarList: CustomTabBarItem[] = [
},
]
// ==================== 政务端 Tabbar 配置 ====================
export const governmentTabbarList: CustomTabBarItem[] = [
{
text: '工作台',
pagePath: 'pagesGovernment/dashboard/index',
iconType: 'unocss',
icon: 'i-carbon-dashboard',
},
{
pagePath: 'pagesGovernment/supervise/list',
text: '检查',
iconType: 'unocss',
icon: 'i-carbon-task',
},
{
pagePath: 'pagesGovernment/report/list',
text: '报表',
iconType: 'unocss',
icon: 'i-carbon-document',
},
{
pagePath: 'pagesGovernment/me/index',
text: '我的',
iconType: 'unocss',
icon: 'i-carbon-user',
},
]
// ==================== 保险端 Tabbar 配置 ====================
export const insuranceTabbarList: CustomTabBarItem[] = [
{
text: '工作台',
pagePath: 'pagesInsurance/dashboard/index',
iconType: 'unocss',
icon: 'i-carbon-dashboard',
},
{
pagePath: 'pagesInsurance/policy/list',
text: '保单',
iconType: 'unocss',
icon: 'i-carbon-document-protected',
},
{
pagePath: 'pagesInsurance/claim/list',
text: '理赔',
iconType: 'unocss',
icon: 'i-carbon-request-quote',
},
{
pagePath: 'pagesInsurance/me/index',
text: '我的',
iconType: 'unocss',
icon: 'i-carbon-user',
},
]
// 根据客户端类型获取对应的 tabbar 配置
export type ClientTypeKey = 'user' | 'merchant' | 'bank'
export type ClientTypeKey = 'user' | 'merchant' | 'bank' | 'government' | 'insurance'
export function getTabbarListByClientType(clientType: ClientTypeKey): CustomTabBarItem[] {
const tabbarMap: Record<ClientTypeKey, CustomTabBarItem[]> = {
user: userTabbarList,
merchant: merchantTabbarList,
bank: bankTabbarList,
government: governmentTabbarList,
insurance: insuranceTabbarList,
}
return tabbarMap[clientType] || userTabbarList
}