tabs.routes.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. import { Routes } from '@angular/router';
  2. import { TabsPage } from './tabs.page';
  3. export const routes: Routes = [
  4. {
  5. path: 'tabs',
  6. component: TabsPage,
  7. children: [
  8. {
  9. path: 'tab1',
  10. loadComponent: () =>
  11. import('../tab1/tab1.page').then((m) => m.Tab1Page),
  12. },
  13. {
  14. path: 'tab2',
  15. loadComponent: () =>
  16. import('../tab2/tab2.page').then((m) => m.Tab2Page),
  17. },
  18. {
  19. path: 'tab3',
  20. loadComponent: () =>
  21. import('../tab3/tab3.page').then((m) => m.Tab3Page),
  22. },
  23. {
  24. path: 'tab4',
  25. loadComponent: () =>
  26. import('../tab4/tab4.page').then((m) => m.Tab4Page),
  27. },
  28. {
  29. path: 'picture',
  30. loadComponent: () =>
  31. import('../poem-picture/poem-picture.component').then((m) => m.PoemPictureComponent),
  32. },
  33. {
  34. path: 'inquiry/ai',
  35. loadComponent: () =>
  36. import('../page/page-inquiry/page-inquiry.component').then((m) => m.PageInquiryComponent),
  37. },
  38. {
  39. path: 'inquiry/human',
  40. loadComponent: () =>
  41. import('../page/inquiry-human/inquiry-human.component').then((m) => m.InquiryHumanComponent),
  42. },
  43. {
  44. path: 'page-test',
  45. loadComponent: () =>
  46. import('../page-test/page-test.component').then((m) => m.PageTestComponent),
  47. },
  48. {
  49. path: 'my-health', // 我的健康
  50. loadComponent: () =>
  51. import('../page/page-my-health/page-my-health.component').then((m) => m.PageMyHealthComponent),
  52. },
  53. {
  54. path: 'health-records', // 健康档案
  55. loadComponent: () =>
  56. import('../page/page-health-records/page-health-records.component').then((m) => m.PageHealthRecordsComponent),
  57. },
  58. {
  59. path: 'drug-purchase', // 药品购买
  60. loadComponent: () =>
  61. import('../page/page-drug-purchase/page-drug-purchase.component').then((m) => m.PageDrugPurchaseComponent),
  62. },
  63. {
  64. path: 'authority-experts', // 权威专家
  65. loadComponent: () =>
  66. import('../page/page-authority-experts/page-authority-experts.component').then((m) => m.PageAuthorityExpertsComponent),
  67. },
  68. {
  69. path: 'health-information', // 健康资讯
  70. loadComponent: () =>
  71. import('../page/page-health-information/page-health-information.component').then((m) => m.PageHealthInformationComponent),
  72. },
  73. {
  74. path: 'phone-inquiry', // 电话咨询
  75. loadComponent: () =>
  76. import('../page/page-phone-inquiry/page-phone-inquiry.component').then((m) => m.PagePhoneInquiryComponent),
  77. },
  78. {
  79. path: 'smart-community', // 智慧社区
  80. loadComponent: () =>
  81. import('../page/page-smart-community/page-smart-community.component').then((m) => m.PageSmartCommunityComponent),
  82. },
  83. {
  84. path: '',
  85. redirectTo: '/tabs/tab1',
  86. pathMatch: 'full',
  87. },
  88. ],
  89. },
  90. {
  91. path: '',
  92. redirectTo: '/tabs/tab1',
  93. pathMatch: 'full',
  94. },
  95. ];