import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';


const routes: Routes = [

  {
    path: '',
    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  },
  {
    path: 'contact',
    loadChildren: () => import('./contact/contact.module').then( m => m.ContactPageModule)
  },
  {
    path: 'tab1',
    children: [
      {
        path: 'shouye-view',
        loadChildren: () => import('../modules/page/shouye-view/shouye-view.module').then(m => m.ShouyeViewPageModule)
      }
    ]
  },
  {
    path: 'tab3',
    children: [
      {
        path: 'login',
        loadChildren: () => import('../modules/user/edit-info/edit-info.module').then(m => m.EditInfoPageModule)
      },
      {
        path: 'tab3-create',
        loadChildren: () => import('../modules/page/tab3-create/tab3-create.module').then(m => m.Tab3CreatePageModule)
      },
    ]
  },
  {
    path: 'user',
    loadChildren: () => import('../modules/user/user.module').then(m => m.UserModule)
  }


];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }),
   
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
