import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "@/components/HelloWorld";
import index from "@/components/views/homepage/index.vue";

Vue.use(Router);

export default new Router({
    mode: "history",
    routes: [{
            path: "/",
            name: "index",
            component: index,
            meta: {
                title: "中国面条"
            }
        },
        {
            path: "/xiaoxi",
            name: "xiaoxi",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/xiaoxi/index.vue"], resolve)
        },
        {
            path: "/xiaoxidetail",
            name: "xiaoxidetail",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/xiaoxi/xiaoxidetail.vue"], resolve)
        },
        {
            path: "/kefu",
            name: "kefu",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/kefu/index.vue"], resolve)
        },
        {
            path: "/mine",
            name: "mine",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/mine/index.vue"], resolve)
        },
        {
            path: "/myshoucang",
            name: "myshoucang",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/mine/myshoucang.vue"], resolve)
        },
        {
            path: "/videoplay",
            name: "videoplay",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/videoplay.vue"], resolve)
        },
        {
            path: "/publish",
            name: "publish",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/publish.vue"], resolve)
        },

        {
            path: "/mianfanglsit",
            name: "mianfanglsit",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/mianfanglsit.vue"], resolve)
        },
        {
            path: "/duanshipinlist",
            name: "duanshipinlist",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/duanshipinlist.vue"], resolve)
        },
        {
            path: "/tiezidetail",
            name: "tiezidetail",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/tiezidetail.vue"], resolve)
        },
        {
            path: "/personpage",
            name: "personpage",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/personpage.vue"], resolve)
        },
        {
            path: "/zhongmianzixun",
            name: "zhongmianzixun",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/zhongmianzixun.vue"], resolve)
        },
        {
            path: "/zixundetail",
            name: "zixundetail",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/zixundetail.vue"], resolve)
        },
        {
            path: "/zhongmianzizhi",
            name: "zhongmianzizhi",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/zhongmianzizhi.vue"], resolve)
        },
        {
            path: "/tousuweiquan",
            name: "tousuweiquan",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/tousuweiquan.vue"], resolve)
        },
        {
            path: "/mykaoshi",
            name: "mykaoshi",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/mykaoshi.vue"], resolve)
        },
        {
            path: "/shezhi",
            name: "shezhi",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/mine/shezhi.vue"], resolve)
        },
        {
            path: "/personziliao",
            name: "personziliao",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/mine/personziliao.vue"], resolve)
        },
        {
            path: "/mycollect",
            name: "mycollect",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/mine/mycollect.vue"], resolve)
        },
        {
            path: "/kaoshenginfo",
            name: "kaoshenginfo",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/kaoshenginfo.vue"], resolve)
        },
        {
            path: "/kaoshiresult",
            name: "kaoshiresult",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/kaoshiresult.vue"], resolve)
        },
        {
            path: "/examinetext",
            name: "examinetext",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/examinetext.vue"], resolve)
        },
        {
            path: "/articledetail",
            name: "articledetail",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/homepage/articledetail.vue"], resolve)
        },
        {
            path: "/myxianzan",
            name: "myxianzan",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/mine/myxianzan.vue"], resolve)
        },
        {
            path: "/mycomment",
            name: "mycomment",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/mine/mycomment.vue"], resolve)
        },
        {
            path: "/myguanzhu",
            name: "myguanzhu",
            meta: { title: "中国面条" },
            component: resolve =>
                require(["@/components/views/mine/myguanzhu.vue"], resolve)
        },
        {
            path: "/login",
            name: "login",
            meta: { title: "中国面条" },
            component: resolve => require(["@/components/login.vue"], resolve)
        },

        // {
        //   path: '/',
        //   name: 'HelloWorld',
        //   component: HelloWorld
        // }
    ]
});