Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-www-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-www-pc
Commits
a265d99e
提交
a265d99e
authored
5月 17, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 修改登录
上级
4b600e96
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
46 行增加
和
63 行删除
+46
-63
.env
.env
+1
-4
.env.dev
.env.dev
+1
-4
.env.test
.env.test
+1
-4
Head.vue
components/Head.vue
+43
-51
没有找到文件。
.env
浏览文件 @
a265d99e
# projectId=1017
projectId=6800242743894343680
# newProjectId=25634964940156928
projectId: '6800242743894343680',
baseURL=https://project-api.ezijing.com
baseURL=https://project-api.ezijing.com
...
...
.env.dev
浏览文件 @
a265d99e
# projectId=1017
projectId=6800242743894343680
# newProjectId=25634964940156928
projectId: '6800242743894343680',
baseURL=https://project-api.ezijing.com
baseURL=https://project-api.ezijing.com
...
...
.env.test
浏览文件 @
a265d99e
# projectId=1017
projectId
=
6800242743894343680
# newProjectId=25634964940156928
projectId
:
'6800242743894343680'
,
baseURL
=
https
://
project
-
api2
.
ezijing
.
com
baseURL
=
https
://
project
-
api2
.
ezijing
.
com
...
...
components/Head.vue
浏览文件 @
a265d99e
...
@@ -3,35 +3,27 @@
...
@@ -3,35 +3,27 @@
<div
class=
"color-bar"
></div>
<div
class=
"color-bar"
></div>
<div
class=
"head-top-content"
>
<div
class=
"head-top-content"
>
<div
class=
"max-width-content"
>
<div
class=
"max-width-content"
>
<img
<div
class=
"logo-box"
>
:src=
"
<img
$cookies.get('lang') == 'en-US'
:src=
"$cookies.get('lang') == 'en-US' ? 'https://webapp-pub.ezijing.com/www/pc/en-logo.png' : 'https://zws-imgs-pub.ezijing.com/static/public/0411340f9306b908eda54b5d66668f50.png'"
? 'https://webapp-pub.ezijing.com/www/pc/en-logo.png'
@
click=
"goPage('/')"
: 'https://zws-imgs-pub.ezijing.com/static/public/0411340f9306b908eda54b5d66668f50.png'
/>
"
</div>
alt=
""
@
click=
"goPage('/')"
/>
<!--
<div
class=
"login-btn-box"
v-if=
"$route.path === '/roadmap'"
>
<div
class=
"login"
@
click=
"handleLogin"
>
快速登录
</div>
<div
class=
"register"
>
注册
</div>
</div>
-->
<template
v-if=
"$route.path === '/roadmap'"
>
<template
v-if=
"$route.path === '/roadmap'"
>
<div
class=
"user"
v-if=
"user.id"
>
<client-only>
<span>
{{
user
.
realname
||
user
.
nickname
}}
</span
<div
class=
"user"
v-if=
"user.id"
>
><em>
|
</em><span
class=
"logout"
@
click=
"logout"
>
退出
</span>
<span>
{{
user
.
realname
||
user
.
nickname
}}
</span
</div>
><em>
|
</em><span
class=
"logout"
@
click=
"logout"
>
退出
</span>
<div
class=
"login-btn-box"
v-else
>
</div>
<div
class=
"login"
><a
:href=
"loginURL"
:key=
"loginURL"
>
登录
</a></div>
<div
class=
"login-btn-box"
v-else
>
<div
class=
"register"
>
<div
class=
"login"
><a
:href=
"loginURL"
:key=
"loginURL"
>
登录
</a></div>
<a
:href=
"registerURL"
>
注册
</a>
<div
class=
"register"
>
<a
:href=
"registerURL"
>
注册
</a>
</div>
</div>
</div>
</
div
>
</
client-only
>
</
template
>
</
template
>
<div
class=
"language"
>
<div
class=
"language"
><span
@
click=
"switchLocale('zh-CN')"
>
中文
</span><span
style=
"display:none"
@
click=
"switchLocale('en-US')"
>
EN
</span></div>
<span
@
click=
"switchLocale('zh-CN')"
>
中文
</span
><span
style=
"display:none"
@
click=
"switchLocale('en-US')"
>
EN
</span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"head-nav-content max-width-content"
>
<div
class=
"head-nav-content max-width-content"
>
...
@@ -68,19 +60,8 @@
...
@@ -68,19 +60,8 @@
</
template
>
</
template
>
</div>
</div>
<
template
v-for=
"(level2Item, level2Index) in item.childern"
>
<
template
v-for=
"(level2Item, level2Index) in item.childern"
>
<div
<div
class=
"two-level"
:key=
"level2Index + 'two-level2'"
v-if=
"level2Item.isShow"
@
mouseenter=
"level3Show"
@
mouseleave=
"level3Show(level2Item, 'out')"
>
class=
"two-level"
<div
@
click=
"goPage(level3Item.path, level3Item.pathType)"
class=
"name"
v-for=
"(level3Item, level3Index) in level2Item.childern"
:key=
"level3Index + level3Item"
>
:key=
"level2Index + 'two-level2'"
v-if=
"level2Item.isShow"
@
mouseenter=
"level3Show"
@
mouseleave=
"level3Show(level2Item, 'out')"
>
<div
@
click=
"goPage(level3Item.path, level3Item.pathType)"
class=
"name"
v-for=
"(level3Item, level3Index) in level2Item.childern"
:key=
"level3Index + level3Item"
>
{{
level3Item
.
name
}}
{{
level3Item
.
name
}}
</div>
</div>
</div>
</div>
...
@@ -444,8 +425,9 @@ export default {
...
@@ -444,8 +425,9 @@ export default {
this
.
$store
.
dispatch
(
'checkLogin'
)
this
.
$store
.
dispatch
(
'checkLogin'
)
},
},
methods
:
{
methods
:
{
// 登录
logout
()
{
handleLogin
()
{},
this
.
$store
.
dispatch
(
'logout'
)
},
switchLocale
(
locale
)
{
switchLocale
(
locale
)
{
this
.
$cookies
.
set
(
'lang'
,
locale
,
{
domain
:
'ezijing.com'
})
this
.
$cookies
.
set
(
'lang'
,
locale
,
{
domain
:
'ezijing.com'
})
this
.
isEn
=
this
.
$cookies
.
get
(
'lang'
)
===
'en-US'
this
.
isEn
=
this
.
$cookies
.
get
(
'lang'
)
===
'en-US'
...
@@ -522,17 +504,10 @@ export default {
...
@@ -522,17 +504,10 @@ export default {
return
this
.
$store
.
state
.
user
||
{}
return
this
.
$store
.
state
.
user
||
{}
},
},
loginURL
()
{
loginURL
()
{
console
.
log
(
'process.client'
,
process
.
client
,
process
.
env
,
this
)
return
process
.
client
?
`
${
process
.
env
.
loginURL
}
/login/index?redirect_uri=
${
encodeURIComponent
(
location
.
origin
+
this
.
$route
.
fullPath
)}
`
:
''
return
process
.
client
?
`
${
process
.
env
.
loginURL
}
/login/index?redirect_uri=
${
encodeURIComponent
(
location
.
origin
+
this
.
$route
.
fullPath
)}
`
:
''
},
},
registerURL
()
{
registerURL
()
{
return
process
.
client
return
process
.
client
?
`
${
process
.
env
.
loginURL
}
/register?redirect_uri=
${
encodeURIComponent
(
location
.
origin
+
this
.
$route
.
fullPath
)}
`
:
''
?
`
${
process
.
env
.
loginURL
}
/register?redirect_uri=
${
encodeURIComponent
(
location
.
origin
+
this
.
$route
.
fullPath
)}
`
:
''
}
}
}
}
}
}
...
@@ -565,6 +540,21 @@ li {
...
@@ -565,6 +540,21 @@ li {
cursor
:
pointer
;
cursor
:
pointer
;
display
:
block
;
display
:
block
;
}
}
.logo-box
{
flex
:
1
;
}
.user
{
margin-left
:
auto
;
font-size
:
14px
;
em
{
font-size
:
14px
;
font-style
:
normal
;
padding
:
0
14px
;
}
.logout
{
cursor
:
pointer
;
}
}
.login-btn-box
{
.login-btn-box
{
margin-left
:
auto
;
margin-left
:
auto
;
display
:
flex
;
display
:
flex
;
...
@@ -589,7 +579,9 @@ li {
...
@@ -589,7 +579,9 @@ li {
}
}
}
}
.language
{
.language
{
margin-left
:
auto
;
margin-left
:
24px
;
font-size
:
14px
;
color
:
#333
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论