router.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. import Vue from "vue";
  2. import Router from "vue-router";
  3. import tab from "components/tab";
  4. import Login from "@/pages/login/Login";
  5. import Layout from "@/pages/layout/Layout";
  6. Vue.use(Router);
  7. const router = new Router({
  8. // mode: 'history',
  9. // base: process.env.BASE_URL,
  10. routes: [
  11. {
  12. path: "/login",
  13. name: "login",
  14. component: Login
  15. },
  16. {
  17. path: "/",
  18. name: "layout",
  19. component: Layout,
  20. redirect: "/login",
  21. hidden: true
  22. },
  23. {
  24. path: "/soundBox",
  25. component: Layout,
  26. children: [
  27. {
  28. path: "index",
  29. name: "xyyf-soundBox",
  30. meta: { title: "学有义方-音箱", url: "/soundBox/index" },
  31. component: () => import("@/pages/xyyf/SoundBox")
  32. }
  33. ]
  34. },
  35. {
  36. path: "/adaline",
  37. component: Layout,
  38. children: [
  39. {
  40. path: "index",
  41. name: "xyyf-adaline",
  42. meta: { title: "学有义方-学习机", url: "/adaline/index" },
  43. component: () => import("@/pages/xyyf/Adaline")
  44. }
  45. ]
  46. },
  47. {
  48. path: "/appStore",
  49. component: Layout,
  50. children: [
  51. {
  52. path: "index",
  53. name: "xyyf-appStore",
  54. meta: { title: "学有义方-APPStore", url: "/appStore/index" },
  55. component: () => import("@/pages/xyyf/AppStore")
  56. }
  57. ]
  58. },
  59. {
  60. path: "/order",
  61. component: Layout,
  62. children: [
  63. {
  64. path: "index",
  65. name: "Order",
  66. meta: { title: "TV-联运", url: "/order/index" },
  67. component: () => import("@/pages/order/Order")
  68. }
  69. ]
  70. },
  71. {
  72. path: "/skill",
  73. component: Layout,
  74. children: [
  75. {
  76. path: "index",
  77. name: "Skill",
  78. meta: { title: "技能相关", url: "/skill/index" },
  79. component: () => import("@/pages/skill/Skill")
  80. },
  81. {
  82. path: "yey",
  83. name: "Skill-yey",
  84. meta: { title: "爱上幼儿园", url: "/skill/yey" },
  85. component: () => import("@/pages/skill/yey")
  86. },
  87. {
  88. path: "xqb",
  89. name: "Skill-xqb",
  90. meta: { title: "学前领先班", url: "/skill/xqb" },
  91. component: () => import("@/pages/skill/xqb")
  92. },
  93. {
  94. path: "xxms",
  95. name: "Skill-xxms",
  96. meta: { title: "小学名师优课", url: "/skill/xxms" },
  97. component: () => import("@/pages/skill/xxms")
  98. }
  99. ]
  100. },
  101. {
  102. path: "/tv",
  103. component: Layout,
  104. children: [
  105. {
  106. path: "index",
  107. name: "Tv",
  108. meta: { title: "tv8.0", url: "/tv/index" },
  109. component: () => import("@/pages/tv/TV")
  110. }
  111. ]
  112. },
  113. {
  114. path: "/mobile",
  115. component: Layout,
  116. children: [
  117. {
  118. path: "index",
  119. name: "mobile",
  120. meta: { title: "Mobile 8.0", url: "/mobile/index" },
  121. component: () => import("@/pages/mobile/Mobile")
  122. }
  123. ]
  124. },
  125. {
  126. path: "/oppo",
  127. component: Layout,
  128. children: [
  129. {
  130. path: "index",
  131. name: "oppo",
  132. meta: { title: "tv8.0", url: "/oppo/index" },
  133. component: () => import("@/pages/oppo/xxtbfd")
  134. }
  135. ]
  136. },
  137. {
  138. path: "/baidu",
  139. component: Layout,
  140. children: [
  141. {
  142. path: "index",
  143. name: "baidu",
  144. meta: { title: "tv8.0", url: "/baidu/index" },
  145. component: () => import("@/pages/baidu/Skill")
  146. }
  147. ]
  148. },
  149. {
  150. path: "/reader",
  151. component: Layout,
  152. children: [
  153. {
  154. path: "index",
  155. name: "reader",
  156. meta: { title: "语文朗读配音", url: "/reader/index" },
  157. component: () => import("@/pages/reader/index")
  158. // component: () => import("@/pages/reader/develop")
  159. },
  160. {
  161. path: "develop",
  162. name: "xkx-develop",
  163. meta: { title: "用户发展报告", url: "/reader/develop" },
  164. component: () => import("@/pages/reader/develop")
  165. },
  166. {
  167. path: "develop2",
  168. name: "xkx-develop2",
  169. meta: { title: "分销发展报告", url: "/reader/develop2" },
  170. component: () => import("@/pages/reader/develop2")
  171. }
  172. ]
  173. }
  174. // {
  175. // path: '/course',
  176. // component: Layout,
  177. // children: [{
  178. // path: 'index',
  179. // name:'Course',
  180. // meta: { title: '课程管理', url: '/course/index' },
  181. // component: () => import('@/pages/course/Course'),
  182. // }]
  183. // },
  184. // {
  185. // path: '/relation',
  186. // component: Layout,
  187. // children: [{
  188. // path: 'index',
  189. // name:'Relation',
  190. // meta: { title: '渠道课程管理', url: '/relation/index' },
  191. // component: () => import('@/pages/relation/Relation'),
  192. // }]
  193. // },
  194. // {
  195. // path: '/operation',
  196. // component: Layout,
  197. // children: [{
  198. // path: 'index',
  199. // name:'Operation',
  200. // meta: { title: '渠道课程管理', url: '/operation/index' },
  201. // component: () => import('@/pages/operation/Operation'),
  202. // }]
  203. // }
  204. ]
  205. });
  206. export default router;