You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

11 months ago
import $ from '@/common/globalJs/globalJs.js'
function tabbar() {
// let role = $.getData('userInfo').role || []
// console.log('拉拉')
// if (!role.includes('领导')) {
// uni.setTabBarItem({
// index: 1,
// visible: false,
// "pagePath": "pages/approve/index",
// "iconPath": "static/nav/jobfind.png",
// "selectedIconPath": "static/nav/jobfind_active.png",
// "text": "审批"
// });
// }
// if (!role.includes('排查人员') && !role.includes('领导')) {
// uni.setTabBarItem({
// index: 2,
// visible: false,
// "pagePath": "pages/investigation/index",
// "iconPath": "static/nav/job.png",
// "selectedIconPath": "static/nav/job_active.png",
// "text": "排查"
// });
// }
// if (!role.includes('治理人员') && !role.includes('领导')) {
// uni.setTabBarItem({
// index: 3,
// visible: false,
// "pagePath": "pages/governance/index",
// "iconPath": "static/nav/lean.png",
// "selectedIconPath": "static/nav/lean_active.png",
// "text": "治理"
// });
// }
// console.log($.getData('userInfo'))
// return uni.getSystemInfoSync().platform;
};
export default {
tabbar
}