routes-common.ts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. const paymentType = (window as any).paymentType
  2. import { RouteRecordRaw } from 'vue-router'
  3. // 需要登录的路由
  4. export const router: RouteRecordRaw[] = [
  5. {
  6. path: '/lessonCourseware',
  7. name: 'lessonCourseware',
  8. component: () => import('@/views/lessonCourseware/index'),
  9. meta: {
  10. title: '选择课件'
  11. }
  12. },
  13. {
  14. path: '/courseList',
  15. name: 'courseList',
  16. component: () => import('@/views/courseList/index'),
  17. meta: {
  18. title: '课程列表'
  19. }
  20. },
  21. {
  22. path: '/coursewarePlay',
  23. name: 'coursewarePlay',
  24. component: () => import('@/views/coursewarePlay/index'),
  25. meta: {
  26. title: '课程播放'
  27. }
  28. },
  29. {
  30. path: '/play',
  31. name: 'play',
  32. component: () => import('@/views/coursewarePlay/play'),
  33. meta: {
  34. title: '课程播放'
  35. }
  36. },
  37. {
  38. path: '/exerciseAfterClass',
  39. name: 'exerciseAfterClass',
  40. component: () => import('@/views/exercise-after-class/index'),
  41. meta: {
  42. title: '观看视频'
  43. }
  44. },
  45. {
  46. path: '/accompany',
  47. name: 'accompany',
  48. component: () => import('@/views/accompany/index'),
  49. meta: {
  50. title: '云教练'
  51. }
  52. },
  53. {
  54. path: '/musicList',
  55. name: 'music-list',
  56. component: () => import('@/views/accompany/music-list'),
  57. meta: {
  58. title: '曲谱列表'
  59. }
  60. },
  61. {
  62. path: '/information-list',
  63. name: 'information-list',
  64. component: () => import('@/views/information'),
  65. meta: {
  66. title: '资讯列表'
  67. }
  68. },
  69. {
  70. path: '/information-detail',
  71. name: 'information-detail',
  72. component: () => import('@/views/information/information-detail'),
  73. meta: {
  74. title: '资讯详情'
  75. }
  76. },
  77. {
  78. path: '/notice-detail',
  79. name: 'notice-detail',
  80. component: () => import('@/views/information/notice-detail'),
  81. meta: {
  82. title: '公告详情'
  83. }
  84. },
  85. {
  86. path: '/help-center',
  87. name: 'help-center',
  88. component: () => import('@/views/information/help-center'),
  89. meta: {
  90. title: '帮助中心'
  91. }
  92. },
  93. {
  94. path: '/help-detail',
  95. name: 'help-detail',
  96. component: () => import('@/views/information/help-center/detail'),
  97. meta: {
  98. title: '帮助中心详情'
  99. }
  100. },
  101. {
  102. path: '/unit-test',
  103. name: 'unit-test',
  104. component: () => import('@/views/unit-test'),
  105. meta: {
  106. title: '阶段自测'
  107. }
  108. },
  109. {
  110. path: '/unit-detail',
  111. name: 'unit-detail',
  112. component: () => import('@/views/unit-test/unit-detail'),
  113. meta: {
  114. title: '测验详情'
  115. }
  116. },
  117. {
  118. path: '/test-exercise',
  119. name: 'test-exercise',
  120. component: () => import('@/views/unit-test/test-exercise'),
  121. meta: {
  122. title: '测试练习'
  123. }
  124. },
  125. {
  126. path: '/practice-mode',
  127. name: 'practice-mode',
  128. component: () => import('@/views/unit-test/practice-mode'),
  129. meta: {
  130. title: '练习模式'
  131. }
  132. },
  133. {
  134. path: '/examination-mode',
  135. name: 'examination-mode',
  136. component: () => import('@/views/unit-test/examination-mode'),
  137. meta: {
  138. title: '测试详情'
  139. }
  140. },
  141. {
  142. path: '/approval-manage-subsidy',
  143. name: 'approval-manage-subsidy',
  144. component: () => import('@/school/approval-manage/subsidy/index'),
  145. meta: {
  146. title: '补助确认'
  147. }
  148. },
  149. {
  150. path: '/mine-orchestra',
  151. name: 'mine-orchestra',
  152. component: () => import('@/views/mine-orchestra/index'),
  153. meta: {
  154. title: '我的乐团'
  155. }
  156. },
  157. {
  158. path: '/mine-myphoto',
  159. name: 'mine-myphoto',
  160. component: () => import('@/views/mine-orchestra/my-photo'),
  161. meta: {
  162. title: '乐团剪影'
  163. }
  164. },
  165. {
  166. path: '/photo-list',
  167. name: 'photo-list',
  168. component: () => import('@/views/mine-orchestra/photo-list/index'),
  169. meta: {
  170. title: '相册'
  171. }
  172. },
  173. {
  174. path: '/photo-list-detail',
  175. name: 'photo-list-detail',
  176. component: () => import('@/views/mine-orchestra/photo-list/detail'),
  177. meta: {
  178. title: '相册详情'
  179. }
  180. },
  181. // message-detail
  182. {
  183. path: '/message-detail',
  184. name: 'message-detail',
  185. component: () => import('@/views/information/message-detail'),
  186. meta: {
  187. title: '消息详情'
  188. }
  189. },
  190. ]
  191. // 不需要登录的路由
  192. export const rootRouter = [
  193. {
  194. path: '/payCenter',
  195. name: 'payCenter',
  196. component: () => import('@/views/adapay/pay-center'),
  197. meta: {
  198. title: '支付'
  199. }
  200. },
  201. {
  202. path: '/payDefine',
  203. name: 'payDefine',
  204. component: () => import('@/views/adapay/pay-define'),
  205. meta: {
  206. title: '支付'
  207. }
  208. },
  209. {
  210. path: '/payResult',
  211. name: 'payResult',
  212. component: () => import('@/views/adapay/pay-result'),
  213. meta: {
  214. title: '支付'
  215. }
  216. },
  217. {
  218. path: '/preview-protocol',
  219. name: 'preview-protocol',
  220. component: () => import('@/views/preview-protocol/index'),
  221. meta: {
  222. title: '管乐团用户注册协议'
  223. }
  224. },
  225. {
  226. path: '/privacyProtocol',
  227. name: 'privacyProtocol',
  228. component: () => import('@/views/preview-protocol/privacy'),
  229. meta: {
  230. title: '管乐团隐私政策'
  231. }
  232. },
  233. {
  234. path: '/cashProtocol',
  235. name: 'cashProtocol',
  236. component: () => import('@/views/preview-protocol/cash-protocol'),
  237. meta: {
  238. title: '管乐团隐私政策'
  239. }
  240. },
  241. {
  242. path: '/guide',
  243. name: 'guide',
  244. component: () => import('@/views/guide/guide'),
  245. meta: {
  246. title: '投屏帮助'
  247. }
  248. },
  249. {
  250. path: '/follow-account',
  251. name: 'follow-account',
  252. component: () => import('@/views/follow-account'),
  253. meta: {
  254. title: '关注微信公众号'
  255. }
  256. },
  257. {
  258. path: '/bind-wechat',
  259. name: 'bind-wechat',
  260. component: () => import('@/views/bind-wechat'),
  261. meta: {
  262. title: '绑定微信'
  263. }
  264. },
  265. {
  266. path: '/transfer',
  267. component: () => import('@/student/download/transfer'),
  268. meta: {
  269. title: '管乐团'
  270. }
  271. },
  272. {
  273. path: '/:pathMatch(.*)*',
  274. component: () => import('@/views/404'),
  275. meta: {
  276. title: '404',
  277. platform: paymentType
  278. }
  279. }
  280. ]