oa-base/config/tabbar/index.js
2024-10-25 09:21:28 +08:00

59 lines
1.7 KiB
JavaScript

// 图片资源导入
import clockInIcon from '@/static/image/tabbar/wz@3x1.png' // 打卡图标
import clockInSelectedIcon from '@/static/image/tabbar/zu3499@3x.png' // 打卡选中图标
import attendanceIcon from '@/static/image/tabbar/attendance2.png' // 考勤图标
import attendanceSelectedIcon from '@/static/image/tabbar/kaoqin.png' // 考勤选中图标
import myIcon from '@/static/image/tabbar/my1.png' // 我的图标
import mySelectedIcon from '@/static/image/tabbar/my2.png' // 我的选中图标
import applyIcon from '@/static/image/apply/zu3809@3x.png' // 申请图标
import applySelectedIcon from '@/static/image/apply/zu3808@3x.png' // 申请选中图标
import spIcon from '@/static/image/apply/sp.png' // 审批图标
import spSelectedIcon from '@/static/image/apply/zu3812@3x.png' // 审批选中图标
// Tabbar 配置
export const tabbar = [
{
text: "打卡",
iconPath: clockInIcon,
selectedIconPath: clockInSelectedIcon,
value: 0,
iconWidth: '33.32rpx',
iconHeight: '40rpx',
url: '/pages/clockIn/index'
},
{
text: "考勤",
iconPath: attendanceIcon,
selectedIconPath: attendanceSelectedIcon,
value: 1,
url: '/pages/attendance/index'
},
{
text: "我的",
iconPath: myIcon,
selectedIconPath: mySelectedIcon,
value: 3,
url: '/pages/mine/index'
}
]
// 审批页面 Tabbar 配置
export const approveTabbar = [
{
text: "申请",
iconPath: applyIcon,
selectedIconPath: applySelectedIcon,
value: 0,
iconWidth: '33.32rpx',
iconHeight: '40rpx'
},
{
text: "审批中心",
iconPath: spIcon,
selectedIconPath: spSelectedIcon,
value: 1,
iconWidth: '37rpx',
iconHeight: '40rpx'
}
]