feat: 新增政务端,保险端
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user