export const TAB_WORKBENCH = 0
export const TAB_MY = 1

export const CLINIC_TAB_ROUTES = [
	'/subPackages/sub_clinic_admin/home/index',
	'/subPackages/sub_clinic_admin/my/index',
]

export function getClinicTabList() {
	return [
		{
			iconPath: require('@/static/image/w-sf.png'),
			selectedIconPath: require('@/static/image/sf.png'),
			text: '工作台',
		},
		{
			iconPath: require('@/static/image/w-wd.png'),
			selectedIconPath: require('@/static/image/wd.png'),
			text: '我的',
		},
	]
}

export function switchClinicTab(index) {
	const url = CLINIC_TAB_ROUTES[index]
	if (!url) return
	uni.reLaunch({ url })
}
