123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- import Vue from "vue";
- import Router from "vue-router";
- import tab from "components/tab";
- import Login from "@/pages/login/Login";
- import Layout from "@/pages/layout/Layout";
- Vue.use(Router);
- const router = new Router({
- // mode: 'history',
- // base: process.env.BASE_URL,
- routes: [
- {
- path: "/login",
- name: "login",
- component: Login
- },
- {
- path: "/",
- name: "layout",
- component: Layout,
- redirect: "/login",
- hidden: true
- },
- {
- path: "/soundBox",
- component: Layout,
- children: [
- {
- path: "index",
- name: "xyyf-soundBox",
- meta: { title: "学有义方-音箱", url: "/soundBox/index" },
- component: () => import("@/pages/xyyf/SoundBox")
- }
- ]
- },
- {
- path: "/adaline",
- component: Layout,
- children: [
- {
- path: "index",
- name: "xyyf-adaline",
- meta: { title: "学有义方-学习机", url: "/adaline/index" },
- component: () => import("@/pages/xyyf/Adaline")
- }
- ]
- },
- {
- path: "/appStore",
- component: Layout,
- children: [
- {
- path: "index",
- name: "xyyf-appStore",
- meta: { title: "学有义方-APPStore", url: "/appStore/index" },
- component: () => import("@/pages/xyyf/AppStore")
- }
- ]
- },
- {
- path: "/order",
- component: Layout,
- children: [
- {
- path: "index",
- name: "Order",
- meta: { title: "TV-联运", url: "/order/index" },
- component: () => import("@/pages/order/Order")
- }
- ]
- },
- {
- path: "/skill",
- component: Layout,
- children: [
- {
- path: "index",
- name: "Skill",
- meta: { title: "技能相关", url: "/skill/index" },
- component: () => import("@/pages/skill/Skill")
- },
- {
- path: "yey",
- name: "Skill-yey",
- meta: { title: "爱上幼儿园", url: "/skill/yey" },
- component: () => import("@/pages/skill/yey")
- },
- {
- path: "xqb",
- name: "Skill-xqb",
- meta: { title: "学前领先班", url: "/skill/xqb" },
- component: () => import("@/pages/skill/xqb")
- },
- {
- path: "xxms",
- name: "Skill-xxms",
- meta: { title: "小学名师优课", url: "/skill/xxms" },
- component: () => import("@/pages/skill/xxms")
- }
- ]
- },
- {
- path: "/tv",
- component: Layout,
- children: [
- {
- path: "index",
- name: "Tv",
- meta: { title: "tv8.0", url: "/tv/index" },
- component: () => import("@/pages/tv/TV")
- }
- ]
- },
- {
- path: "/mobile",
- component: Layout,
- children: [
- {
- path: "index",
- name: "mobile",
- meta: { title: "Mobile 8.0", url: "/mobile/index" },
- component: () => import("@/pages/mobile/Mobile")
- }
- ]
- },
- {
- path: "/oppo",
- component: Layout,
- children: [
- {
- path: "index",
- name: "oppo",
- meta: { title: "tv8.0", url: "/oppo/index" },
- component: () => import("@/pages/oppo/xxtbfd")
- }
- ]
- },
- {
- path: "/baidu",
- component: Layout,
- children: [
- {
- path: "index",
- name: "baidu",
- meta: { title: "tv8.0", url: "/baidu/index" },
- component: () => import("@/pages/baidu/Skill")
- }
- ]
- },
- {
- path: "/reader",
- component: Layout,
- children: [
- {
- path: "index",
- name: "reader",
- meta: { title: "语文朗读配音", url: "/reader/index" },
- component: () => import("@/pages/reader/index")
- // component: () => import("@/pages/reader/develop")
- },
- {
- path: "develop",
- name: "xkx-develop",
- meta: { title: "用户发展报告", url: "/reader/develop" },
- component: () => import("@/pages/reader/develop")
- },
- {
- path: "develop2",
- name: "xkx-develop2",
- meta: { title: "分销发展报告", url: "/reader/develop2" },
- component: () => import("@/pages/reader/develop2")
- }
- ]
- }
- // {
- // path: '/course',
- // component: Layout,
- // children: [{
- // path: 'index',
- // name:'Course',
- // meta: { title: '课程管理', url: '/course/index' },
- // component: () => import('@/pages/course/Course'),
- // }]
- // },
- // {
- // path: '/relation',
- // component: Layout,
- // children: [{
- // path: 'index',
- // name:'Relation',
- // meta: { title: '渠道课程管理', url: '/relation/index' },
- // component: () => import('@/pages/relation/Relation'),
- // }]
- // },
- // {
- // path: '/operation',
- // component: Layout,
- // children: [{
- // path: 'index',
- // name:'Operation',
- // meta: { title: '渠道课程管理', url: '/operation/index' },
- // component: () => import('@/pages/operation/Operation'),
- // }]
- // }
- ]
- });
- export default router;
|