@@ -6,7 +6,7 @@ import logoImg from './logo.png'
6
6
import { Menu , Breadcrumb , Icon } from 'antd'
7
7
import 'antd/dist/antd.css'
8
8
9
- import { Link } from 'react-router'
9
+ import { IndexLink , Link } from 'react-router'
10
10
11
11
class CoreLayout extends Component {
12
12
constructor ( props ) {
@@ -35,50 +35,57 @@ class CoreLayout extends Component {
35
35
< span className = "logo-user" > Alice...</ span > 童书馆
36
36
</ span >
37
37
</ div >
38
- < Menu mode = "inline" theme = "dark" defaultSelectedKeys = { [ 'user' ] } >
39
- < Menu . Item key = "home" >
40
- < Link to = '/' >
41
- < Icon type = "home" /> < span className = "nav-text" > 首页</ span >
42
- </ Link >
43
- </ Menu . Item >
44
- < Menu . Item key = "tag" >
45
- < Link to = '/list' activeClassName = 'ant-menu-item-selected' >
46
- < Icon type = "tag" /> < span className = "nav-text" > 团购</ span >
47
- </ Link >
48
- </ Menu . Item >
49
- < Menu . Item key = "book" >
50
- < i className = "iconfont icon-book" > </ i > < span className = "nav-text" > 自定义书单</ span >
51
- </ Menu . Item >
52
- < Menu . Item key = "notification" >
53
- < Icon type = "notification" /> < span className = "nav-text" > 童书</ span >
54
- </ Menu . Item >
55
- < Menu . Item key = "text" >
56
- < Icon type = "file-text" /> < span className = "nav-text" > 订单</ span >
57
- </ Menu . Item >
58
- < Menu . Item key = "reward" >
59
- < Icon type = "pay-circle" /> < span className = "nav-text" > 奖励</ span >
60
- </ Menu . Item >
61
- < Menu . Item key = "team" >
62
- < Icon type = "team" /> < span className = "nav-text" > 推广伙伴</ span >
63
- </ Menu . Item >
64
- < Menu . Item key = "family" >
65
- < Icon type = "file-text" /> < span className = "nav-text" > 阅读家庭</ span >
66
- </ Menu . Item >
67
- < Menu . Item key = "chart" >
68
- < Icon type = "file-text" /> < span className = "nav-text" > 统计</ span >
69
- </ Menu . Item >
70
- < Menu . Item key = "setting" >
71
- < Icon type = "setting" /> < span className = "nav-text" > 设置</ span >
72
- </ Menu . Item >
73
- </ Menu >
38
+ < div className = "ant-menu ant-menu-inline ant-menu-dark ant-menu-root" >
39
+ < IndexLink to = '/' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
40
+ < i className = "anticon anticon-home" /> < span class = "nav-text" > 首页</ span >
41
+ </ IndexLink >
42
+ < Link to = '/list' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
43
+ < i className = "anticon anticon-tag" /> < span class = "nav-text" > 团购</ span >
44
+ </ Link >
45
+ < Link to = '/a' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
46
+ < i className = "iconfont icon-logo" /> < span class = "nav-text" > 自定义书单</ span >
47
+ </ Link >
48
+ < Link to = '/a' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
49
+ < i className = "iconfont icon-book" /> < span class = "nav-text" > 童书</ span >
50
+ </ Link >
51
+ < Link to = '/a' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
52
+ < i className = "anticon anticon-file-text" /> < span class = "nav-text" > 订单</ span >
53
+ </ Link >
54
+ < Link to = '/a' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
55
+ < i className = "anticon anticon-pay-circle" /> < span class = "nav-text" > 奖励</ span >
56
+ </ Link >
57
+ < Link to = '/a' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
58
+ < i className = "anticon anticon-team" /> < span class = "nav-text" > 推广伙伴</ span >
59
+ </ Link >
60
+ < Link to = '/a' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
61
+ < i className = "iconfont icon-family" /> < span class = "nav-text" > 阅读家庭</ span >
62
+ </ Link >
63
+ < Link to = '/a' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
64
+ < i className = "anticon anticon-line-chart" /> < span class = "nav-text" > 统计</ span >
65
+ </ Link >
66
+ < Link to = '/a' className = "ant-menu-item" activeClassName = 'ant-menu-item-selected' >
67
+ < i className = "anticon anticon-setting" /> < span class = "nav-text" > 设置</ span >
68
+ </ Link >
69
+ </ div >
74
70
< div className = { classes . service } > 在线客服</ div >
75
71
< div className = "ant-aside-action" onClick = { this . onCollapseChange . bind ( this ) } >
76
72
{ collapse ? < Icon type = "right" /> : < Icon type = "left" /> }
77
73
</ div >
78
74
</ aside >
79
75
< div className = "ant-layout-main" >
80
- < div className = "ant-layout-header" >
81
- < div className = "ant-title" > 童书馆管理中心</ div >
76
+ < div className = "ant-layout-header clearfix" >
77
+ < div class = { classes . header_left } >
78
+ < div className = "ant-title" > 童书馆管理中心</ div >
79
+ < div className = { classes . spa } > </ div >
80
+ < div className = { classes . header_qr } >
81
+ < i className = "iconfont icon-qr" />
82
+ </ div >
83
+ </ div >
84
+ < div class = { classes . header_right } >
85
+ < div class = { classes . header_icon } >
86
+
87
+ </ div >
88
+ </ div >
82
89
</ div >
83
90
< div className = "ant-layout-container" >
84
91
< div className = "ant-layout-content" >
0 commit comments