Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-pc
Commits
d081e7c7
提交
d081e7c7
authored
2月 24, 2022
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
logo增加官网链接
上级
8da1f660
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
51 行增加
和
4 行删除
+51
-4
Header.vue
components/layout/h5/Header.vue
+23
-1
Head.vue
components/layout/pc/Head.vue
+28
-3
没有找到文件。
components/layout/h5/Header.vue
浏览文件 @
d081e7c7
...
...
@@ -2,7 +2,11 @@
<div>
<header
class=
"main-header"
>
<template
v-if=
"!searchVisible"
>
<nuxt-link
to=
"/"
class=
"logo"
></nuxt-link>
<!--
<nuxt-link
to=
"/"
class=
"logo"
></nuxt-link>
-->
<div
class=
"logo"
>
<div
class=
"website"
@
click=
"goWebsite"
></div>
<div
class=
"home"
@
click=
"$router.push('/')"
></div>
</div>
<div
class=
"search"
@
click=
"toggleSearch"
></div>
<div
class=
"menu"
:class=
"menuClasses"
@
click=
"toggleMenu"
></div>
</
template
>
...
...
@@ -49,6 +53,9 @@ export default {
}
},
methods
:
{
goWebsite
()
{
window
.
location
.
href
=
'http://www.ezijing.com'
},
toggleSearch
()
{
this
.
$store
.
commit
(
'toggleMenu'
,
false
)
this
.
$store
.
commit
(
'toggleSearch'
,
!
this
.
searchVisible
)
...
...
@@ -84,6 +91,21 @@ export default {
background
:
url('~/assets/images/logo.png')
no-repeat
;
height
:
0
.26rem
;
background-size
:
contain
;
position
:relative
;
div
{
position
:absolute
;
top
:
0
;
height
:
0
.26rem
;
cursor
:
pointer
;
}
.website
{
width
:
1rem
;
left
:
0
;
}
.home
{
width
:
1rem
;
left
:
1rem
;
}
}
.search
{
width
:
0
.18rem
;
...
...
components/layout/pc/Head.vue
浏览文件 @
d081e7c7
...
...
@@ -3,9 +3,14 @@
<div
class=
"color-bar"
></div>
<div
class=
"head-top-content"
>
<div
class=
"max-width-content"
>
<nuxt-link
to=
"/"
>
<
!--
<
nuxt-link
to=
"/"
>
<img
src=
"https://zws-imgs-pub.ezijing.com/static/public/307f688850f8308a5c944bd129436fe0.png"
/>
</nuxt-link>
</nuxt-link>
-->
<div
class=
"logo"
>
<img
src=
"https://zws-imgs-pub.ezijing.com/static/public/307f688850f8308a5c944bd129436fe0.png"
/>
<div
class=
"website"
@
click=
"goWebsite"
></div>
<div
class=
"home"
@
click=
"$router.push('/')"
></div>
</div>
<div
class=
"user"
v-if=
"user.id"
>
<span>
{{
user
.
realname
||
user
.
nickname
}}
</span
><em>
|
</em><span
class=
"logout"
@
click=
"logout"
>
{{
$t
(
'menu.out'
)
}}
</span>
...
...
@@ -39,6 +44,9 @@ export default {
return
{}
},
methods
:
{
goWebsite
()
{
window
.
location
.
href
=
'http://www.ezijing.com'
},
logout
()
{
this
.
$store
.
dispatch
(
'logout'
)
},
...
...
@@ -90,11 +98,28 @@ li {
.max-width-content
{
display
:
flex
;
align-items
:
center
;
.logo
{
height
:
55px
;
position
:relative
;
img
{
height
:
55px
;
cursor
:
pointer
;
display
:
block
;
}
div
{
position
:absolute
;
top
:
0
;
height
:
55px
;
cursor
:
pointer
;
}
.website
{
width
:
200px
;
left
:
0
;
}
.home
{
width
:
190px
;
right
:
0
;
}
}
.user
{
margin-left
:
auto
;
font-size
:
14px
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论