天波h5前端应用
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

76 lignes
3.1KB

  1. /*
  2. * @Date: 2023-06-01 18:41:50
  3. * @LastEditors: JinxChen
  4. * @LastEditTime: 2023-06-07 10:40:03
  5. * @FilePath: \TelpoH5FrontendWeb\src\router\index.js
  6. * @description:
  7. */
  8. /*
  9. * @Date: 2023-05-30 15:37:06
  10. * @LastEditors: JinxChen
  11. * @LastEditTime: 2023-06-01 09:48:23
  12. * @FilePath: \TelpoH5FrontendWeb\src\router\index.js
  13. * @description:
  14. */
  15. /*
  16. * @Date: 2023-02-25 16:34:35
  17. * @LastEditors: JinxChen
  18. * @LastEditTime: 2023-05-30 11:05:35
  19. * @FilePath: \TelpoH5FrontendWeb\src\router\index.js
  20. * @description:
  21. */
  22. /*
  23. * @Date: 2022-01-19 10:08:26
  24. * @LastEditors: JinxChen
  25. * @LastEditTime: 2023-02-25 16:33:59
  26. * @FilePath: \TelpoH5FrontendWeb\src\router\index.js
  27. * @description:
  28. */
  29. import Vue from "vue";
  30. import VueRouter from "vue-router";
  31. import Nprogress from "nprogress";
  32. import "nprogress/nprogress.css";
  33. Vue.use(VueRouter);
  34. const routes = [
  35. { path: '/', redirect: 'index' },
  36. { path: '/index', name: 'index', component: resolve => require(['@/views/index'], resolve) },
  37. { path: '/packageHome', name: 'packageHome', component: resolve => require(['@/views/package-home'], resolve) },
  38. { path: '/packageList', name: 'packageList', component: resolve => require(['@/views/package-list'], resolve) },
  39. { path: '/payResult', name: 'payResult', component: resolve => require(['@/views/pay-result'], resolve) },
  40. { path: '/cardInfo', name: 'cardInfo', component: resolve => require(['@/views/card-info'], resolve) },
  41. { path: '/packageBuy', name: 'packageBuy', component: resolve => require(['@/views/package-buy'], resolve) },
  42. { path: '/buyRecord', name: 'buyRecord', component: resolve => require(['@/views/buy-record'], resolve) },
  43. { path: '/activeStatus', name: 'activeStatus', component: resolve => require(['@/views/active-status'], resolve) },
  44. { path: '/cardActive', name: 'cardActive', component: resolve => require(['@/views/card-active'], resolve) },
  45. { path: '/alarmDetails', name: 'alarmDetails', component: resolve => require(['@/views/alarm/alarm-details'], resolve) },
  46. // 心理监测
  47. { path: '/PsychologicalModeling', name: 'PsychologicalModeling', component: resolve => require(['@/views/psychological-modeling'], resolve) },
  48. { path: '/PsychologicalQuestionnaire', name: 'PsychologicalQuestionnaire', component: resolve => require(['@/views/psychological-questionnaire'], resolve) },
  49. // 健康-心理监测详情,抑郁,压力和疲劳
  50. { path: '/psychological', name: 'psychological', component: resolve => require(['@/views/health/psychological'], resolve) },
  51. // 健康-抑郁,压力和疲劳汇总入口
  52. { path: '/psychologicalMain', name: 'psychologicalMain', component: resolve => require(['@/views/health/psychological-main'], resolve) },
  53. // 告警详情-中间页
  54. { path: '/aiCallAlarm', name: 'aiCallAlarm', component: resolve => require(['@/views/ai-call-alarm'], resolve) },
  55. ];
  56. const router = new VueRouter({
  57. //mode: "history",
  58. base: process.env.BASE_URL,
  59. routes,
  60. });
  61. router.beforeEach((to, form, next) => {
  62. /* Nprogress.start(); */
  63. next();
  64. });
  65. router.afterEach(() => {
  66. /* Nprogress.done(); */
  67. });
  68. export default router;