import { Routes } from '@angular/router';
import { NavMobileMenu } from './nav-mobile-menu/nav-mobile-menu';

export const MOBILE_ROUTES: Routes = [
  {
    path: '',
    component: NavMobileMenu,
    children: [
      {
        path: 'home',
        loadComponent: () => import('./page-crm-home/page-crm-home').then(m => m.PageCrmHome)
      },
      {
        path: 'platform',
        loadComponent: () => import('./page-crm-platform/page-crm-platform').then(m => m.PageCrmPlatform)
      },
      {
        path: 'business',
        loadComponent: () => import('./page-crm-business/page-vibration-monitor.component').then(m => m.PageVibrationMonitorComponent)
      },
      {
        path: 'member',
        loadComponent: () => import('./page-crm-member/page-crm-member').then(m => m.PageCrmMember)
      },
      {
        path: 'system',
        loadComponent: () => import('./page-crm-system/page-crm-system').then(m => m.PageCrmSystem)
      },
      {
        path: '',
        redirectTo: 'home',
        pathMatch: 'full'
      },
      {
        path: 'development',
        loadComponent: () => import('./page-crm-development/page-crm-development').then(m => m.PageCrmDevelopment),
        title: '功能开发中'
      },
      {
        path: 'news',
        loadComponent: () => import('./page-crm-home-news/page-crm-home-news').then(m => m.PageCrmHomeNews),
        title: '新闻'
      }
    ]
  }
];