import Header from "@/components/qtHeader"
import Footer from "@/components/qtFooter"
const Index = () => import("@/views/index/qtIndex")
const Cate = () => import("@/views/index/qtCateClick")
const Login = () => import("@/views/login/qtLogin")
const Register = () => import("@/views/register/qtRegister")

const Profile = () => import("@/views/profile/qtProfile")
const mineshop = () => import("@/views/profile/qtMineshop")
const mineCollect = () => import("@/views/profile/qtCollect")
const Center = () => import("@/views/profile/qtCenter")

const addshop = () => import("@/views/addshop/qtAddshop")
const editshop = () => import("@/views/addshop/qtEditshop")
const shopDetail = () => import("@/views/details/qtDetails")
const cate = () => import("@/views/cate/cate")
const college = () => import("@/views/college/college")
const user = () => import("@/views/user/user")

export default [
    {
        path: "/",
        redirect: '/index',
    },
    {
        path: '/index',
        name: 'Index',
        components: {
            default: Index,
            header: Header,
            footer: Footer
        }
    },
    {
        path: '/account/login',
        name: "Login",
        components: {
            default: Login
        }
    },
    {
        path: '/account/register',
        name: "Register",
        components: {
            default: Register
        }
    },
    {
        path: '/account/profile',
        name: 'Profile',
        components: {
            default: Profile,
            header: Header,
            footer: Footer,

        },
        meta: { requireAuth: true }
    },
    {
        path: "/account/add/shop",
        name: "Addshop",
        components: {
            default: addshop,
            header: Header,
            footer: Footer
        },
        meta: { requireAuth: true }
    },
    {
        path: "/shop/details",
        name: "Details",
        components: {
            default: shopDetail,
            header: Header,
            footer: Footer
        }
    },
    {
        path: "/account/mineshop",
        name: "Mineshop",
        components: {
            default: mineshop,
            header: Header,
            footer: Footer
        },
        meta: { requireAuth: true }
    },
    {
        path: "/account/collect",
        name: "Collect",
        components: {
            default: mineCollect,
            header: Header,
            footer: Footer
        }
    },
    {
        path: "/account/center",
        name: "Center",
        components: {
            default: Center,
            header: Header,
            footer: Footer
        },
        meta: { requireAuth: true }
    },
    {
        path: "/account/edit/shop",
        name: "Editshop",
        components: {
            default: editshop,
            footer: Footer,
            header: Header
        }

    },
    {
        path: '/cate/list',
        name: 'Cate',
        components: {
            default: Cate,
            header: Header,
            footer: Footer
        }
    },
    {
        path: '/college',
        name: 'college',
        components: {
            default: college,
            header: Header,
            footer: Footer
        },
        meta: { requireAuth: true }

    },
    {
        path: '/CateIndex',
        name: 'cate',
        components: {
            default: cate,
            header: Header,
            footer: Footer
        },
        meta: { requireAuth: true }
        
    },
    {
        path: '/user',
        name: 'user',
        components: {
            default: user,
            header: Header,
            footer: Footer
        },
        meta: { requireAuth: true }
        
    }
]