export const constantRoute = [
    {
        path: '/',
        name: 'login',
        component: () => import("@/views/Login.vue"),
        meta: {
            title: '登录界面',
            hidden: true
        }
    },
    //首页
    {
        path: '/HomePage',
        name: '首页',
        redirect: '/DashBoard',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '首页',
            icon: 'House',
            hidden: false
        },
        children: [
            {
                path: '/DashBoard',
                name: '仪表盘',
                component: () => import("@/views/HomePage/DashBoard.vue"),
                meta: {
                    title: '仪表盘',
                    icon: 'Odometer',
                    hidden: false
                }
            }
        ]
    },
    // 实体类商品
    {
        path: '/entityProduct',
        redirect: '/AddProduct',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '实体类商品管理',
            icon: 'TakeawayBox',
            hidden: false
        },
        children: [
            {
                path: '/AddProduct',
                name: '添加商品',
                component: () => import("@/views/Commodity/AddProduct.vue"),
                meta: {
                    title: '添加商品',
                    icon: 'Edit',
                    hidden: false
                }
            },
            {
                path: '/MerchandiseCenter',
                name: '商品中心',
                component: () => import("@/views/Commodity/MerchandiseCenter.vue"),
                meta: {
                    title: '商品中心',
                    icon: 'DataAnalysis',
                    hidden: false
                }
            },
            {
                path: '/TypeManagement',
                name: '类别管理',
                component: () => import("@/views/Commodity/TypeManagement.vue"),
                meta: {
                    title: '类别管理',
                    icon: 'Files',
                    hidden: false
                }
            },
            {
                path: '/EntityProductDetail/:id/:flag',
                name: '商品详情',
                component: () => import("@/views/Commodity/EntityProductDetail.vue"),
                meta: {
                    title: '商品详情',
                    icon: 'Files',
                    hidden: true
                }
            }
        ]
    },
    // 服务类商品
    {
        path: '/serviceProduct',
        redirect: '/AddServiceProduct',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '服务类商品管理',
            icon: 'Calendar',
            hidden: false
        },
        children: [
            {
                path: '/AddServiceProduct',
                name: '添加服务类商品',
                component: () => import("@/views/ServiceType/AddServiceProduct.vue"),
                meta: {
                    title: '添加服务类商品',
                    icon: 'Edit',
                    hidden: false
                }
            },
            {
                path: '/ProductCenter',
                name: '服务类商品管理中心',
                component: () => import("@/views/ServiceType/ProductCenter.vue"),
                meta: {
                    title: '服务类商品管理中心',
                    icon: 'DataBoard',
                    hidden: false
                }
            },
            {
                path: '/ServiceProductDetail/:id/:flag',
                name: '课程详情',
                component: () => import("@/views/ServiceType/ServiceProductDetail.vue"),
                meta: {
                    title: '课程详情',
                    hidden: true
                }
            }
        ]
    },
    // 订单管理(服务类+实体类)
    {
        path: '/order',
        redirect: '/OrderList',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '商品订单管理',
            icon: 'DataAnalysis',
            hidden: false
        },
        children: [
            {
                path: '/OrderList',
                name: '订单列表',
                component: () => import("@/views/Orders/OrderList.vue"),
                meta: {
                    title: '实体商品订单列表',
                    icon: 'Box',
                    hidden: false
                }
            },
            {
                path: '/ServiceOrderList',
                name: '服务类订单列表',
                component: () => import("@/views/Orders/ServiceOrderList.vue"),
                meta: {
                    title: '服务类订单列表',
                    icon: 'MessageBox',
                    hidden: false
                }
            },
            {
                path: '/PendingServiceOrderList',
                name: '服务类商品待处理订单',
                component: () => import("@/views/Orders/PendingServiceOrderList.vue"),
                meta: {
                    title: '服务类商品待处理订单',
                    icon: 'Notification',
                    hidden: false
                }
            }
        ]
    },
    // 写真预约
    {
        path: '/outfitManage',
        redirect: '/AddCostumes',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '写真预约管理',
            icon: 'Camera',
            hidden: false
        },
        children: [
            {
                path: '/AddCostumes',
                name: '添加写真产品',
                component: () => import("@/views/CostumeAppointments/AddCostumes.vue"),
                meta: {
                    title: '添加写真产品',
                    icon: 'Edit',
                    hidden: false
                }
            },
            {
                path: '/ClothingGrade',
                name: '写真产品类别',
                component: () => import("@/views/CostumeAppointments/ClothingGrade.vue"),
                meta: {
                    title: '写真产品类别',
                    icon: 'Files',
                    hidden: false
                }
            },
            {
                path: '/OutfitManagementCenter',
                name: '写真产品中心',
                component: () => import("@/views/CostumeAppointments/ManagementCenter.vue"),
                meta: {
                    title: '写真产品中心',
                    icon: 'Tickets',
                    hidden: false
                }
            },
            {
                path: '/AppointmentOrder',
                name: '写真预约订单',
                component: () => import("@/views/CostumeAppointments/AppointmentOrder.vue"),
                meta: {
                    title: '写真预约订单',
                    icon: 'MessageBox',
                    hidden: false
                }
            },
            {
                path: '/OutfitOrderDetail/:id',
                name: '写真预约订单详情',
                component: () => import("@/views/CostumeAppointments/OutfitOrderDetail.vue"),
                meta: {
                    title: '写真订单详情',
                    hidden: true
                }
            },
            {
                path: '/OutfitDetail/:id/:flag',
                name: '服装详情',
                component: () => import("@/views/CostumeAppointments/OutfitDetail.vue"),
                meta: {
                    title: '服装详情',
                    hidden: true
                }
            }
        ]
    },
    {
        path: '/outfitLeaseManage',
        redirect: '/AddOutfit',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '服装租赁管理',
            icon: 'Money',
            hidden: false
        },
        children: [
            {
                path: '/AddOutfit',
                name: '添加租赁服装',
                component: () => import("@/views/OutfitLease/AddOutfit.vue"),
                meta: {
                    title: '添加租赁服装',
                    icon: 'Edit',
                    hidden: false
                }
            },
            {
                path: '/LeaseOutfitCenter',
                name: '租赁产品中心',
                component: () => import("@/views/OutfitLease/LeaseOutfitCenter.vue"),
                meta: {
                    title: '租赁产品中心',
                    icon: 'DataAnalysis',
                    hidden: false
                }
            },
            {
                path: '/OutfitType',
                name: '服装类别',
                component: () => import("@/views/OutfitLease/OutfitType.vue"),
                meta: {
                    title: '服装类别管理',
                    icon: 'Files',
                    hidden: false
                }
            },
            {
                path: '/LeaseOutfitDetail/:id/:flag',
                name: '租赁服装详情',
                component: () => import("@/views/OutfitLease/LeaseOutfitDetail.vue"),
                meta: {
                    title: '租赁服装详情',
                    hidden: true
                }
            },
            {
                path: '/OutfitLeaseOrder',
                name: '租赁订单中心',
                component: () => import("@/views/OutfitLease/OutfitLeaseOrderCenter.vue"),
                meta: {
                    title: '租赁订单中心',
                    icon: 'DataBoard',
                    hidden: false
                }
            },
            {
                path: '/LeaseOrderDetail/:id',
                name: '租赁订单详情',
                component: () => import("@/views/OutfitLease/LeaseOrderDetail.vue"),
                meta: {
                    title: '租赁订单详情',
                    hidden: true
                }
            }
        ]
    },
    //活动资讯管理
    {
        path: '/activityMessage',
        redirect: '/AddMessage',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '活动资讯管理',
            icon: 'Notebook',
            hidden: false
        },
        children: [
            {
                path: '/AddMessage',
                name: '添加活动资讯',
                component: () => import("@/views/ActivityMessageManagement/AddMessage.vue"),
                meta: {
                    title: '添加活动资讯',
                    icon: 'Edit',
                    hidden: false
                }
            },
            {
                path: '/MessageCenter',
                name: '活动资讯中心',
                component: () => import("@/views/ActivityMessageManagement/MessageCenter.vue"),
                meta: {
                    title: '活动资讯中心',
                    icon: 'DataAnalysis',
                    hidden: false
                }
            },
            {
                path: '/SingleMessageDetail/:id/:flag',
                name: '资讯详情',
                component: () => import("@/views/ActivityMessageManagement/SingleMessageDetail.vue"),
                meta: {
                    title: '资讯详情',
                    hidden: true
                }
            }
        ]
    },
    // 优惠卷信息
    {
        path: '/coupon',
        redirect: '/AddCoupons',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '优惠卷管理',
            icon: 'Discount',
            hidden: false
        },
        children: [
            {
                path: '/AddCoupons',
                name: '添加优惠券',
                component: () => import("@/views/Coupons/AddCoupons.vue"),
                meta: {
                    title: '添加优惠券',
                    icon: 'Edit',
                    hidden: false
                }
            },
            {
                path: '/CouponCenter',
                name: '优惠券中心',
                component: () => import("@/views/Coupons/CouponCenter.vue"),
                meta: {
                    title: '优惠券中心',
                    icon: 'DataAnalysis',
                    hidden: false
                }
            }
        ]
    },
    // 退款管理
    {
        path: '/refund',
        redirect: '/refundManage',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '退款管理',
            icon: 'Switch',
            hidden: false
        },
        children: [
            {
                path: '/refundManage',
                name: '退款管理',
                component: () => import("@/views/Refund/Refund.vue"),
                meta: {
                    title: '退款管理',
                    icon: 'Money',
                    hidden: false
                }
            },
        ]
    },
    // 个人中心页面
    {
        path: '/User',
        redirect: '/PersonalCenter',
        name: 'person',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '用户管理',
            icon: 'Menu',
            hidden: false
        },
        children: [
            {
                path: '/UserManagement',
                name: '用户列表',
                component: () => import("@/views/User/UserManagement.vue"),
                meta: {
                    title: '用户列表',
                    icon: 'Postcard',
                    hidden: false
                }
            },
            {
                path: '/PersonalCenter',
                name: '个人中心',
                component: () => import("@/views/User/PersonalCenter.vue"),
                meta: {
                    title: '个人中心',
                    icon: 'User',
                    hidden: false
                }
            },
            {
                path: '/SingleUserDetail/:id/:flag',
                name: '用户详情',
                component: () => import("@/views/User/SingleUserDetail.vue"),
                meta: {
                    title: '用户详情',
                    hidden: true
                }
            }
        ]
    },
    //节日管理+商城轮播图管理+课程首页轮播图管理+优惠力度&预约须知管理
    {
        path: '/OtherManage',
        redirect: '/EntityCarouseCenter',
        component: () => import("@/layout/Manage.vue"),
        meta: {
            title: '其他管理',
            icon: 'More',
            hidden: false
        },
        children: [
            {
                path: '/EntityCarouseCenter',
                name: '商城轮播图管理',
                component: () => import("@/views/OtherManagement/EntityCarouseCenter.vue"),
                meta: {
                    title: '商城轮播图管理',
                    icon: 'Picture',
                    hidden: false
                }
            },
            {
                path: '/CourseCarouseCenter',
                name: '课程轮播图管理',
                component: () => import("@/views/OtherManagement/CourseCarouseCenter.vue"),
                meta: {
                    title: '课程轮播图管理',
                    icon: 'PictureRounded',
                    hidden: false
                }
            },
            {
                path: '/FestivalManage',
                name: '节日管理',
                component: () => import("@/views/OtherManagement/FestivalManagement.vue"),
                meta: {
                    title: '节日管理',
                    icon: 'Calendar',
                    hidden: false
                }
            },
            {
                path: '/NoticeAndFavorable',
                name: '优惠和预约须知',
                component: () => import("@/views/OtherManagement/NoticeAndFavorable.vue"),
                meta: {
                    title: '优惠和预约须知',
                    icon: 'Files',
                    hidden: false
                }
            },
            {
                path: '/ExpressManagement',
                name: '偏远地区物流费用',
                component: () => import("@/views/OtherManagement/ExpressManagement.vue"),
                meta: {
                    title: '偏远地区物流费用',
                    icon: 'Money',
                    hidden: false
                }
            }
        ]
    },
    {
        path: '/Test',
        name: '测试页面',
        component: () => import("../views/test.vue")
    },
    {
        path: '/Test2',
        name: '测试页面2',
        component: () => import("../views/test2.vue")
    },
    {
        path: '/Test3',
        name: '测试页面3',
        component: () => import("../views/excelTest.vue")
    }
]
