import { UserLayout, TabLayout, RouteView, BlankLayout, PageView } from '@/components/layouts'

/**
 * 走菜单，走权限控制
 * @type {[null,null]}
 */
export const asyncRouterMap = [{
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      },
        {
            path: 'ueditor2',
            name: 'ueditor2',
            component: () => import(/* webpackChunkName: "user" */ '@/views/user/ueditor2')
        }
    ]
  }, {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
    , {
        path: '/hhr',
        component: BlankLayout,
        redirect: '/hhr/home',
        children: [
            {
                path: 'home',
                name: 'TestHome',
                component: () => import('@/views/hhr-view/hhrCustomer.vue')
            },
            {
                path: 'newPackageTips',
                name: 'newPackageTips',
                component: () => import('@views/hhr-view/newpackage/newPackageTips.vue')
            },
            {
                path: 'newPackageTips',
                name: 'newPackageTips',
                component: () => import('@views/hhr-view/newpackage/newPackageTips.vue')
            },
            {
                path: 'chooseCard',
                name: 'chooseCard',
                component: () => import('@views/hhr-view/newpackage/chooseCard.vue')
            },
            {
                path: 'danKuan',
                name: 'danKuan',
                component: () => import('@views/hhr-view/bandwidth/danKuan.vue')
            },
            {
                path: 'rongHe',
                name: 'rongHe',
                component: () => import('@views/hhr-view/bandwidth/rongHe.vue')
            },
            {
                path: 'packageUpgrade',
                name: 'packageUpgrade',
                component: () => import('@views/hhr-view/packageUpgrade/packageUpgrade.vue')
            },
            {
                path: 'readAgree',
                name: 'readAgree',
                component: () => import('@views/hhr-view/newpackage/readAgree.vue')
            },
            {
                path: 'welfareScheme',
                name: 'welfareScheme',
                component: () => import('@views/hhr-view/packageUpgrade/welfareScheme.vue')
            }
        ]
    }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [{
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      }
    ]
  }, {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
    , {
        path: '/hhr',
        component: BlankLayout,
        redirect: '/hhr/home',
        children: [
            {
                path: 'home',
                name: 'TestHome',
                component: () => import('@/views/hhr-view/hhrCustomer.vue')
            }
            ,
            {
                path: 'newPackageTips',
                name: 'newPackageTips',
                component: () => import('@views/hhr-view/newpackage/newPackageTips.vue')
            }
        ]
    }
]
