Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
web-ci-test
Commits
b59d98cc
提交
b59d98cc
authored
5月 16, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
navHeader版本V3
上级
2acddd6e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
32 行增加
和
38 行删除
+32
-38
logo.png
components/NavHeader/assets/logo.png
+0
-0
index.module.scss
components/NavHeader/index.module.scss
+6
-13
index.tsx
components/NavHeader/index.tsx
+26
-25
没有找到文件。
components/NavHeader/assets/logo.png
查看替换文件 @
2acddd6e
浏览文件 @
b59d98cc
3.6 KB
|
W:
|
H:
2.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
components/NavHeader/index.module.scss
浏览文件 @
b59d98cc
.navHeader
{
width
:
100%
;
height
:
68px
;
background
:
linear-gradient
(
360deg
,
#002157
0%
,
#00102c
100%
)
;
background
:
#fff
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
...
...
@@ -40,7 +40,7 @@
.ant-tabs-tab-btn
{
font-size
:
16px
;
color
:
#
fff
;
color
:
#
000
;
width
:
90px
;
text-align
:
center
;
font-family
:
MicrosoftYaHei
;
...
...
@@ -49,7 +49,6 @@
:global
.ant-tabs-tab-active
{
.ant-tabs-tab-btn
{
color
:
#91c8ff
!
important
;
}
}
...
...
@@ -65,29 +64,23 @@
.btn1
{
width
:
120px
;
height
:
40px
;
background
:
linear-gradient
(
90deg
,
#278eff
0%
,
#0052da
100%
);
border-radius
:
6px
;
border
:
0
;
border-radius
:
0px
;
font-size
:
16px
;
font-family
:
MicrosoftYaHeiUI-Bold
,
MicrosoftYaHeiUI
;
font-weight
:
bold
;
color
:
#ffffff
;
&
:hover
{
opacity
:
0
.8
;
}
}
.btn2
{
box-sizing
:
border-box
;
width
:
120px
;
height
:
40px
;
border-radius
:
6
px
;
border
:
1px
solid
#ffb02c
;
border-radius
:
0
px
;
border
:
1px
solid
rgba
(
255
,
85
,
45
,
1
)
;
font-size
:
16px
;
font-family
:
MicrosoftYaHeiUI-Bold
,
MicrosoftYaHeiUI
;
font-weight
:
bold
;
color
:
#ffb02c
;
color
:
rgba
(
255
,
85
,
45
,
1
)
;
background
:
none
;
}
...
...
components/NavHeader/index.tsx
浏览文件 @
b59d98cc
import
React
,
{
useState
}
from
'react'
;
import
{
Avatar
,
Button
,
Space
,
Tabs
}
from
'antd'
;
import
type
{
TabsProps
}
from
'antd'
;
import
styles
from
'./index.module.scss'
;
import
React
,
{
useState
}
from
"react"
;
import
{
Avatar
,
Button
,
Space
,
Tabs
}
from
"antd"
;
import
type
{
TabsProps
}
from
"antd"
;
import
styles
from
"./index.module.scss"
;
import
{
useRouter
}
from
"next/router"
;
import
{
PlusOutlined
}
from
"@ant-design/icons"
;
const
items
:
TabsProps
[
"items"
]
=
[
{
...
...
@@ -10,15 +11,15 @@ const items: TabsProps["items"] = [
label
:
` 首页 `
,
},
{
key
:
'/jobServices'
,
key
:
"/jobServices"
,
label
:
`作业服务`
,
},
{
key
:
'/equipmentLeasing'
,
key
:
"/equipmentLeasing"
,
label
:
`设备租赁`
,
},
{
key
:
'/flyingHandService'
,
key
:
"/flyingHandService"
,
label
:
`飞手服务`
,
},
{
...
...
@@ -38,7 +39,7 @@ const items: TabsProps["items"] = [
export
default
function
NavHeader
()
{
const
router
=
useRouter
();
const
currentPath
=
router
.
asPath
;
console
.
log
(
"currentHash"
,
currentPath
);
const
onChange
=
(
key
:
string
)
=>
{
console
.
log
(
key
);
...
...
@@ -47,23 +48,23 @@ export default function NavHeader() {
return
(
<
div
className=
{
styles
.
navHeader
}
>
<
div
className=
{
styles
.
nav
}
>
<
div
className=
{
styles
.
logo
}
></
div
>
<
Tabs
className=
{
styles
.
tabs
}
defaultActiveKey=
{
currentPath
}
items=
{
items
}
onChange=
{
onChange
}
/>
<
Space
size=
{
16
}
className=
{
styles
.
btns
}
>
<
Button
type=
'primary'
className=
{
styles
.
btn1
}
>
+ 发布信息
</
Button
>
<
Button
className=
{
styles
.
btn2
}
>
入驻加盟
</
Button
>
</
Space
>
<
div
className=
{
styles
.
haedImg
}
>
<
Avatar
size=
{
48
}
style=
{
{
background
:
'#fff'
}
}
></
Avatar
>
</
div
>
<
div
className=
{
styles
.
nav
}
>
<
div
className=
{
styles
.
logo
}
></
div
>
<
Tabs
className=
{
styles
.
tabs
}
defaultActiveKey=
{
currentPath
}
items=
{
items
}
onChange=
{
onChange
}
/>
<
Space
size=
{
16
}
className=
{
styles
.
btns
}
>
<
Button
type=
"primary"
className=
{
styles
.
btn1
}
>
+ 发布需求
</
Button
>
<
Button
className=
{
styles
.
btn2
}
>
入驻加盟
</
Button
>
</
Space
>
<
div
className=
{
styles
.
haedImg
}
>
<
Avatar
size=
{
48
}
style=
{
{
background
:
"#fff"
}
}
></
Avatar
>
</
div
>
</
div
>
</
div
>
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论