const system = [
    {
        path: '/system',
        name:"system",
        meta: {
            title: '后台系统'
        },
      component: () => import('@/layouts/system/index.vue'),
        children: [
          {
            path: '/system',
            name: 'system_index',
            meta: {
              title: '首页',
              auth: false
            },
            component: () => import('@/components/system/index/index')
          },
          {
                path: '/system/index',
                name: 'system_index',
                meta: {
                    title: '首页',
                    auth: false
                },
                component: () => import('@/components/system/index/index')
            },
          {
            path: '/system/user/index',
            name: 'system_user_index',
            meta: {
              title: '个人设置',
              auth: true
            },
            component: () => import('@/components/system/setting/user/index')
          },
          {
            path: '/system/role/index',
            name: 'system_role_index',
            meta: {
              title: '角色管理'
            },
            component: () => import('@/components/system/setting/role/index')
          },
          {
            path: '/system/role/permissions',
            name: 'system_role_permissions',
            meta: {
              title: '权限配置'
            },
            component: () => import('@/components/system/setting/role/permissions')
          },
          {
            path: '/system/role/seting',
            name: 'system_role_seting',
            meta: {
              title: '角色设置'
            },
            component: () => import('@/components/system/setting/role/seting')
          },
          {
            path: '/system/admin/index',
            name: 'system_admin_index',
            meta: {
              title: '账号管理',
              auth: true
            },
            component: () => import('@/components/system/setting/admin/index')
          },
          {
            path: '/system/setting/log/index',
            name: 'system_setting_log_index',
            meta: {
              title: '日志管理',
              auth: true
            },
            component: () => import('@/components/system/setting/log/index')
          },
		  {
		    path: '/system/setting/log/login',
		    name: 'system_setting_log_login',
		    meta: {
		      title: '用户登录',
		      auth: true
		    },
		    component: () => import('@/components/system/setting/log/login')
		  },
		  {
		    path: '/system/user/list',
		    name: 'system_user_list',
		    meta: {
		      title: '用户列表',
		      auth: true
		    },
		    component: () => import('@/components/system/user/list')
		  },
		  {
		    path: '/system/user/workerList',
		    name: 'system_user_workerList',
		    meta: {
		      title: '从业人员',
		      auth: true
		    },
		    component: () => import('@/components/system/user/workerList')
		  },
		  
		  {
		    path: '/system/user/showTemplateList',
		    name: 'system_user_showTemplateList',
		    meta: {
		      title: '用户模板',
		      auth: true
		    },
		    component: () => import('@/components/system/user/showTemplateList')
		  },
		  
		  
		  
		  
		  {
		    path: '/system/audit/infoAudit',
		    name: 'system_audit_infoAudit',
		    meta: {
		      title: '信息审核',
		      auth: true
		    },
		    component: () => import('@/components/system/audit/infoAudit')
		  },
		  {
		    path: '/system/audit/infoAuditItem',
		    name: 'system_audit_infoAuditItem',
		    meta: {
		      title: '信息审核详情',
		      auth: true
		    },
		    component: () => import('@/components/system/audit/infoAuditItem')
		  },
		  {
		    path: '/system/audit/typeAudit',
		    name: 'system_audit_typeAudit',
		    meta: {
		      title: '平台认证',
		      auth: true
		    },
		    component: () => import('@/components/system/audit/typeAudit')
		  },
		  {
		    path: '/system/audit/typeAuditItem',
		    name: 'system_audit_typeAuditItem',
		    meta: {
		      title: '平台认证详情',
		      auth: true
		    },
		    component: () => import('@/components/system/audit/typeAuditItem')
		  },
		  // {
		  //   path: '/system/audit/userAudit',
		  //   name: 'system_audit_userAudit',
		  //   meta: {
		  //     title: '用户审核',
		  //     auth: true
		  //   },
		  //   component: () => import('@/components/system/audit/userAudit')
		  // },
		  
		  {
		    path: '/system/showTemplate/list',
		    name: 'system_showTemplate_list',
		    meta: {
		      title: '模板列表',
		      auth: true
		    },
		    component: () => import('@/components/system/showTemplate/list')
		  },
		  {
		    path: '/system/showTemplate/serviceType',
		    name: 'system_showTemplate_serviceType',
		    meta: {
		      title: '服务内容',
		      auth: true
		    },
		    component: () => import('@/components/system/showTemplate/serviceType')
		  },
		  {
		    path: '/system/showTemplate/serviceTimeType',
		    name: 'system_showTemplate_serviceTimeType',
		    meta: {
		      title: '收费时长类型',
		      auth: true
		    },
		    component: () => import('@/components/system/showTemplate/serviceTimeType')
		  },
		  {
		    path: '/system/showTemplate/serviceLabel',
		    name: 'system_showTemplate_serviceLabel',
		    meta: {
		      title: '标签列表',
		      auth: true
		    },
		    component: () => import('@/components/system/showTemplate/serviceLabel')
		  },
		  {
		    path: '/system/user/workType',
		    name: 'system_user_workType',
		    meta: {
		      title: '职业类别',
		      auth: true
		    },
		    component: () => import('@/components/system/user/workType')
		  },
		  
		  
		  {
		    path: '/system/user/moneyDetail',
		    name: 'system_user_moneyDetail',
		    meta: {
		      title: '余额明细',
		      auth: true
		    },
		    component: () => import('@/components/system/user/moneyDetail')
		  },
          {
            path: '/system/sys/index',
            name: 'system_sys_index',
            meta: {
              title: '网站基本管理',
              auth: true
            },
            component: () => import('@/components/system/setting/sys/index')
          },
		 
          {
            path: '/system/menu/sys',
            name: 'system_menu_sys',
            meta: {
              title: '菜单管理',
              auth: true
            },
            component: () => import('@/components/system/setting/menu/sys')
          },
		 
		  {
		    path: '/system/adver/page',
		    name: 'system_adver_page',
		    meta: {
		      title: '广告类别',
		      auth: true
		    },
		    component: () => import('@/components/system/adver/page.vue')
		  },
		  {
		    path: '/system/adver/index',
		    name: 'system_adver_index',
		    meta: {
		      title: '广告中心',
		      auth: true
		    },
		    component: () => import('@/components/system/adver/index.vue')
		  
		  },
		  {
		    path: '/system/adver/upsource',
		    name: 'system_adver_upsource',
		    meta: {
		      title: '图片资源',
		      auth: true
		    },
		    component: () => import('@/components/system/adver/upsource.vue')
		  
		  },
		  
		  {
		    path: '/system/order/showTemplate',
		    name: 'system_order_showTemplate',
		    meta: {
		      title: '模板订单',
		      auth: true
		    },
		    component: () => import('@/components/system/order/showTemplate')
		  },
		  {
		    path: '/system/task/paytrade',
		    name: 'system_task_paytrade',
		    meta: {
		      title: '支付记录',
		      auth: true
		    },
		    component: () => import('@/components/system/task/paytrade')
		  }
        ]
    },

    {
        path: '/system/widget/images/index.html',
        name: `images`,
        meta: {
            auth: ['admin-user-user-index'],
            title: '上传图片'
        },
        component: () => import('@/components/system/uploadPictures/widgetImg')
    },
  {
    path: '/system/login',
    name: "system_login",
    meta: {
      title: '总用户登录'
    },
    component: () => import('@/components/system/login/index')
  },
  // {
  //   path: '/index',
  //   name: "system_index_index",
  //   meta: {
  //     title: '首页'
  //   },
  //   component: () => import('@/components/system/index/index')
  // },
  
  
  {
    path: '/',
    name: "system_login2",
    meta: {
      title: '总用户登录'
    },
    component: () => import('@/components/system/login/index')
  }


];
/**
 * 错误页面
 */

const errorPage = [
  {
    path: '/system/*',
    name: '404',
    meta: {
      title: '404'
    },
    component: () => import('@/components/system/error/404')
  }
];
export const systemInRoutes = system;

// 重新组织后导出
export default [
  ...system,
  ...errorPage
];
