Commit 2e6165cc by Sweet Zhang

增加二级菜单页面

parent dc460b5a
...@@ -85,7 +85,7 @@ export class MenuItemComponent implements OnInit { ...@@ -85,7 +85,7 @@ export class MenuItemComponent implements OnInit {
}, },
{ {
title: '教育培训', title: '教育培训',
type:'training', type:'trainingCenter',
content: [ content: [
{ no: 5, subtitle: '保险ABC', icon: 'abc', path: `https://${window.location.host}/issue`, routerLink: '' ,showSubMenu:true}, { no: 5, subtitle: '保险ABC', icon: 'abc', path: `https://${window.location.host}/issue`, routerLink: '' ,showSubMenu:true},
{ no: 6, subtitle: '培训课件', icon: 'train', path: '', routerLink: 'training',showSubMenu:true }, { no: 6, subtitle: '培训课件', icon: 'train', path: '', routerLink: 'training',showSubMenu:true },
...@@ -97,7 +97,6 @@ export class MenuItemComponent implements OnInit { ...@@ -97,7 +97,6 @@ export class MenuItemComponent implements OnInit {
} }
]; ];
this.currentMenuLists = this.menuLists.filter(item=>item.type == this.type)[0]['content']; this.currentMenuLists = this.menuLists.filter(item=>item.type == this.type)[0]['content'];
console.log(this.currentMenuLists)
} }
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<div class="part2_item" routerLink="exhibition"> <div class="part2_item" routerLink="exhibition">
<span>我的展业</span> <span>我的展业</span>
</div> </div>
<div class="part2_item" routerLink="training"> <div class="part2_item" routerLink="trainingCenter">
<span>教育培训</span> <span>教育培训</span>
</div> </div>
</div> </div>
......
...@@ -275,7 +275,7 @@ ul,ol{ ...@@ -275,7 +275,7 @@ ul,ol{
width: 120px; width: 120px;
height: 120px; height: 120px;
border-radius: 50%; border-radius: 50%;
background: antiquewhite; background: #0c5c90;
border: 10px solid #fff; border: 10px solid #fff;
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -139,7 +139,7 @@ const myRoutes: Routes = [ ...@@ -139,7 +139,7 @@ const myRoutes: Routes = [
{ path: 'marketing',component:MenuItemComponent,data:[{title:'银盾保经-营销工具',type:'marketing'}],canActivate:[AuthGuard]}, { path: 'marketing',component:MenuItemComponent,data:[{title:'银盾保经-营销工具',type:'marketing'}],canActivate:[AuthGuard]},
{ path: 'team',component:MenuItemComponent,data:[{title:'银盾保经-我的团队',type:'team'}],canActivate:[AuthGuard]}, { path: 'team',component:MenuItemComponent,data:[{title:'银盾保经-我的团队',type:'team'}],canActivate:[AuthGuard]},
{ path: 'exhibition',component:MenuItemComponent,data:[{title:'银盾保经-我的展业',type:'exhibition'}],canActivate:[AuthGuard]}, { path: 'exhibition',component:MenuItemComponent,data:[{title:'银盾保经-我的展业',type:'exhibition'}],canActivate:[AuthGuard]},
{ path: 'training',component:MenuItemComponent,data:[{title:'银盾保经-教育培训',type:'training'}],canActivate:[AuthGuard]}, { path: 'trainingCenter',component:MenuItemComponent,data:[{title:'银盾保经-教育培训',type:'trainingCenter'}],canActivate:[AuthGuard]},
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment