|
|
@ -4,139 +4,149 @@ import {NavigationComponent} from './admin/navigation/navigation.component'; |
|
|
|
import {InitGuardService} from './services/init-guard.service'; |
|
|
|
import {InitGuardService} from './services/init-guard.service'; |
|
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [ |
|
|
|
const routes: Routes = [ |
|
|
|
{path: '', pathMatch: 'full', redirectTo: 'adminLogin'}, |
|
|
|
{path: '', pathMatch: 'full', redirectTo: 'adminLogin'}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'adminLogin', |
|
|
|
path: 'adminLogin', |
|
|
|
loadChildren: () => import('./admin/login/login.module').then(m => m.LoginModule) |
|
|
|
loadChildren: () => import('./admin/login/login.module').then(m => m.LoginModule) |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'admin', component: NavigationComponent, |
|
|
|
path: 'admin', component: NavigationComponent, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'index', |
|
|
|
path: 'index', |
|
|
|
loadChildren: () => import('./admin/index/index.module').then(m => m.IndexModule), |
|
|
|
loadChildren: () => import('./admin/index/index.module').then(m => m.IndexModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'user', |
|
|
|
path: 'user', |
|
|
|
loadChildren: () => import('./admin/user/user.module').then(m => m.UserModule), |
|
|
|
loadChildren: () => import('./admin/user/user.module').then(m => m.UserModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'merchant', |
|
|
|
path: 'merchant', |
|
|
|
loadChildren: () => import('./admin/merchant/merchant.module').then(m => m.MerchantModule), |
|
|
|
loadChildren: () => import('./admin/merchant/merchant.module').then(m => m.MerchantModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'merchantStore', |
|
|
|
path: 'merchantStore', |
|
|
|
loadChildren: () => import('./admin/merchant-store/merchant-store.module').then(m => m.MerchantStoreModule), |
|
|
|
loadChildren: () => import('./admin/merchant-store/merchant-store.module').then(m => m.MerchantStoreModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'coupon', |
|
|
|
path: 'coupon', |
|
|
|
loadChildren: () => import('./admin/coupon/coupon.module').then(m => m.CouponModule), |
|
|
|
loadChildren: () => import('./admin/coupon/coupon.module').then(m => m.CouponModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'company', |
|
|
|
path: 'company', |
|
|
|
loadChildren: () => import('./admin/company/company.module').then(m => m.CompanyModule), |
|
|
|
loadChildren: () => import('./admin/company/company.module').then(m => m.CompanyModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'price', |
|
|
|
path: 'price', |
|
|
|
loadChildren: () => import('./admin/price/price.module').then(m => m.PriceModule), |
|
|
|
loadChildren: () => import('./admin/price/price.module').then(m => m.PriceModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'audit', |
|
|
|
path: 'audit', |
|
|
|
loadChildren: () => import('./admin/audit/audit.module').then(m => m.AuditModule), |
|
|
|
loadChildren: () => import('./admin/audit/audit.module').then(m => m.AuditModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'order', |
|
|
|
path: 'order', |
|
|
|
loadChildren: () => import('./admin/order/order.module').then(m => m.OrderModule), |
|
|
|
loadChildren: () => import('./admin/order/order.module').then(m => m.OrderModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'discount', |
|
|
|
path: 'discount', |
|
|
|
loadChildren: () => import('./admin/discount/discount.module').then(m => m.DiscountModule), |
|
|
|
loadChildren: () => import('./admin/discount/discount.module').then(m => m.DiscountModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'system', |
|
|
|
path: 'system', |
|
|
|
loadChildren: () => import('./admin/system/system.module').then(m => m.SystemModule), |
|
|
|
loadChildren: () => import('./admin/system/system.module').then(m => m.SystemModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'agent', |
|
|
|
path: 'agent', |
|
|
|
loadChildren: () => import('./admin/agent/agent.module').then(m => m.AgentModule), |
|
|
|
loadChildren: () => import('./admin/agent/agent.module').then(m => m.AgentModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'rechargeOrder', |
|
|
|
path: 'rechargeOrder', |
|
|
|
loadChildren: () => import('./admin/recharge-order/recharge-order.module').then(m => m.RechargeOrderModule), |
|
|
|
loadChildren: () => import('./admin/recharge-order/recharge-order.module').then(m => m.RechargeOrderModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'cms', |
|
|
|
path: 'cms', |
|
|
|
loadChildren: () => import('./admin/cms/cms.module').then(m => m.CmsModule), |
|
|
|
loadChildren: () => import('./admin/cms/cms.module').then(m => m.CmsModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'activate', |
|
|
|
path: 'activate', |
|
|
|
loadChildren: () => import('./admin/activate/activate.module').then(m => m.ActivateModule), |
|
|
|
loadChildren: () => import('./admin/activate/activate.module').then(m => m.ActivateModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'config-manage', |
|
|
|
path: 'config-manage', |
|
|
|
loadChildren: () => import('./admin/config-manage/config-manage.module').then(m => m.ConfigManageModule), |
|
|
|
loadChildren: () => import('./admin/config-manage/config-manage.module').then(m => m.ConfigManageModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'discount-package', |
|
|
|
path: 'discount-package', |
|
|
|
loadChildren: () => import('./admin/discount-package/discount-package.module').then(m => m.DiscountPackageModule), |
|
|
|
loadChildren: () => import('./admin/discount-package/discount-package.module').then(m => m.DiscountPackageModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'tuanyou-agent', |
|
|
|
path: 'tuanyou-agent', |
|
|
|
loadChildren: () => import('./admin/tuanyou-agent/tuanyou-agent.module').then(m => m.TuanyouAgentModule), |
|
|
|
loadChildren: () => import('./admin/tuanyou-agent/tuanyou-agent.module').then(m => m.TuanyouAgentModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'company-amount', |
|
|
|
path: 'company-amount', |
|
|
|
loadChildren: () => import('./admin/company-amount/company-amount.module').then(m => m.CompanyAmountModule), |
|
|
|
loadChildren: () => import('./admin/company-amount/company-amount.module').then(m => m.CompanyAmountModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'oil-card', |
|
|
|
path: 'oil-card', |
|
|
|
loadChildren: () => import('./admin/oil-card/oil-card.module').then(m => m.OilCardModule), |
|
|
|
loadChildren: () => import('./admin/oil-card/oil-card.module').then(m => m.OilCardModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'gz-sinopec', |
|
|
|
path: 'gz-sinopec', |
|
|
|
loadChildren: () => import('./admin/gz-sinopec/gz-sinopec.module').then(m => m.GzSinopecModule), |
|
|
|
loadChildren: () => import('./admin/gz-sinopec/gz-sinopec.module').then(m => m.GzSinopecModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'gas-staff', |
|
|
|
path: 'gas-staff', |
|
|
|
loadChildren: () => import('./admin/gas-staff/gas-staff.module').then(m => m.GasStaffModule), |
|
|
|
loadChildren: () => import('./admin/gas-staff/gas-staff.module').then(m => m.GasStaffModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'gas-oil-price', |
|
|
|
path: 'gas-oil-price', |
|
|
|
loadChildren: () => import('./admin/gas-oil-price/gas-oil-price.module').then(m => m.GasOilPriceModule), |
|
|
|
loadChildren: () => import('./admin/gas-oil-price/gas-oil-price.module').then(m => m.GasOilPriceModule), |
|
|
|
canActivate: [InitGuardService] |
|
|
|
canActivate: [InitGuardService] |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
{ |
|
|
|
}, |
|
|
|
path: 'api-product', |
|
|
|
|
|
|
|
loadChildren: () => import('./admin/api-product/api-product.module').then(m => m.ApiProductModule), |
|
|
|
|
|
|
|
canActivate: [InitGuardService] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
path: 'api-merchants', |
|
|
|
|
|
|
|
loadChildren: () => import('./admin/api-merchants/api-merchants.module').then(m => m.ApiMerchantsModule), |
|
|
|
|
|
|
|
canActivate: [InitGuardService] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
@NgModule({ |
|
|
|
@NgModule({ |
|
|
|
imports: [RouterModule.forRoot(routes)], |
|
|
|
imports: [RouterModule.forRoot(routes)], |
|
|
|
exports: [RouterModule], |
|
|
|
exports: [RouterModule], |
|
|
|
providers: [ |
|
|
|
providers: [ |
|
|
|
// { provide: RouteReuseStrategy, useClass: RouteStrategyService }
|
|
|
|
// { provide: RouteReuseStrategy, useClass: RouteStrategyService }
|
|
|
|
], |
|
|
|
], |
|
|
|
}) |
|
|
|
}) |
|
|
|
export class AppRoutingModule { |
|
|
|
export class AppRoutingModule { |
|
|
|
} |
|
|
|
} |
|
|
|