Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
C
cloudlink
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
郑礼德
cloudlink
Commits
96a65c9b
提交
96a65c9b
authored
6 年前
作者:
曾美红
提交者:
zengBB96
6 年前
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Footer
上级
9336a7c6
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
99 行增加
和
0 行删除
+99
-0
index.js
20190226111443945/src/components/Footer/index.js
+85
-0
index.less
20190226111443945/src/components/Footer/index.less
+8
-0
package.json
20190226111443945/src/components/Footer/package.json
+6
-0
没有找到文件。
20190226111443945/src/components/Footer/index.js
0 → 100644
浏览文件 @
96a65c9b
/* eslint-disable react/destructuring-assignment */
import
React
from
'react'
;
import
'./index.less'
;
import
{
Tab
,
TabBar
,
TabBarItem
}
from
'react-weui'
;
import
{
browserHistory
}
from
'react-router'
;
import
UnTabBarlist
from
'../../../public/images/meeting.png'
;
import
TabBarlist
from
'../../../public/images/meeting2.png'
;
import
UnTabBarmeet
from
'../../../public/images/room.png'
;
import
TabBarmeet
from
'../../../public/images/room2.png'
;
import
UnTabBarordain
from
'../../../public/images/ordain.png'
;
import
TabBarordain
from
'../../../public/images/ordain2.png'
;
import
UnTabBarmy
from
'../../../public/images/my.png'
;
import
TabBarmy
from
'../../../public/images/my2.png'
;
export
default
class
Footer
extends
React
.
Component
{
state
=
{
// eslint-disable-next-line react/no-unused-state
tab
:
0
}
componentWillMount
()
{
}
componentDidMount
()
{
}
linktoHome
=
(
e
)
=>
{
this
.
setState
({
tab
:
0
});
console
.
log
(
this
.
props
);
// browserHistory.push(this.newMethod('/home'));
}
newMethod
()
{
return
'/home'
;
}
render
()
{
return
(
<
div
className
=
"footer-container"
>
<
Tab
>
<
TabBar
>
<
TabBarItem
// eslint-disable-next-line react/destructuring-assignment
active
=
{
this
.
state
.
tab
===
0
}
onClick
=
{
this
.
linktoHome
}
icon
=
{
this
.
state
.
tab
===
0
?
<
img
src
=
{
TabBarlist
}
alt
=
""
/>
:
<
img
src
=
{
UnTabBarlist
}
alt
=
""
/>
}
label
=
"会议室"
/>
{
/* <TabBarItem active={this.state.tab === 1} onClick={e=>this.setState({ tab: 1 })}>
<Link to="/desc">
<TabBarIcon>
<img src={TabBarmeet} alt="" />
</TabBarIcon>
<TabBarLabel>Tab2</TabBarLabel>
</Link>
</TabBarItem> */
}
<
TabBarItem
// eslint-disable-next-line react/destructuring-assignment
active
=
{
this
.
state
.
tab
===
1
}
onClick
=
{
e
=>
this
.
setState
({
tab
:
1
})}
icon
=
{
this
.
state
.
tab
===
1
?
<
img
src
=
{
TabBarmeet
}
alt
=
""
/>
:
<
img
src
=
{
UnTabBarmeet
}
alt
=
""
/>
}
label
=
"预定"
/>
<
TabBarItem
// eslint-disable-next-line react/destructuring-assignment
active
=
{
this
.
state
.
tab
===
2
}
onClick
=
{
e
=>
this
.
setState
({
tab
:
2
})}
icon
=
{
this
.
state
.
tab
===
2
?
<
img
src
=
{
TabBarordain
}
alt
=
""
/>
:
<
img
src
=
{
UnTabBarordain
}
alt
=
""
/>
}
label
=
"日程"
/>
<
TabBarItem
// eslint-disable-next-line react/destructuring-assignment
active
=
{
this
.
state
.
tab
===
3
}
onClick
=
{
e
=>
this
.
setState
({
tab
:
3
})}
icon
=
{
this
.
state
.
tab
===
3
?
<
img
src
=
{
TabBarmy
}
alt
=
""
/>
:
<
img
src
=
{
UnTabBarmy
}
alt
=
""
/>
}
label
=
"我的"
/>
<
/TabBar
>
<
/Tab
>
<
/div
>
);
}
};
This diff is collapsed.
Click to expand it.
20190226111443945/src/components/Footer/index.less
0 → 100644
浏览文件 @
96a65c9b
.footer-container{
background-color: #fff;
position: fixed;
z-index: 101;
left: 0;
right: 0;
bottom: 0;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
20190226111443945/src/components/Footer/package.json
0 → 100644
浏览文件 @
96a65c9b
{
"name"
:
"index"
,
"version"
:
"1.0.0"
,
"private"
:
true
,
"main"
:
"./index.js"
}
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论