Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-www-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-www-pc
Commits
5b738007
提交
5b738007
authored
5月 17, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
a265d99e
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
60 行增加
和
24 行删除
+60
-24
my.js
api/my.js
+2
-2
Head.vue
components/Head.vue
+30
-6
index.vue
pages/roadmap/index.vue
+1
-0
index.js
store/index.js
+2
-0
roadMap.js
utils/roadMap.js
+25
-16
没有找到文件。
api/my.js
浏览文件 @
5b738007
...
@@ -5,8 +5,8 @@ const projectId = process.env.projectId
...
@@ -5,8 +5,8 @@ const projectId = process.env.projectId
/**
/**
* 获取用户信息
* 获取用户信息
*/
*/
export
function
getUser
()
{
export
function
getUser
(
params
=
{
learning_info
:
1
}
)
{
return
httpRequest
.
get
(
'/api/
passport/account/get-user-info'
)
return
httpRequest
.
get
(
'/api/
usercenter/v2/frontend/user/get-user-info'
,
{
params
}
)
}
}
/**
/**
...
...
components/Head.vue
浏览文件 @
5b738007
...
@@ -5,7 +5,11 @@
...
@@ -5,7 +5,11 @@
<div
class=
"max-width-content"
>
<div
class=
"max-width-content"
>
<div
class=
"logo-box"
>
<div
class=
"logo-box"
>
<img
<img
: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'"
: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'
"
@
click=
"goPage('/')"
@
click=
"goPage('/')"
/>
/>
</div>
</div>
...
@@ -23,7 +27,10 @@
...
@@ -23,7 +27,10 @@
</div>
</div>
</client-only>
</client-only>
</
template
>
</
template
>
<div
class=
"language"
><span
@
click=
"switchLocale('zh-CN')"
>
中文
</span><span
style=
"display:none"
@
click=
"switchLocale('en-US')"
>
EN
</span></div>
<div
class=
"language"
>
<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"
>
...
@@ -60,8 +67,19 @@
...
@@ -60,8 +67,19 @@
</
template
>
</
template
>
</div>
</div>
<
template
v-for=
"(level2Item, level2Index) in item.childern"
>
<
template
v-for=
"(level2Item, level2Index) in item.childern"
>
<div
class=
"two-level"
:key=
"level2Index + 'two-level2'"
v-if=
"level2Item.isShow"
@
mouseenter=
"level3Show"
@
mouseleave=
"level3Show(level2Item, 'out')"
>
<div
<div
@
click=
"goPage(level3Item.path, level3Item.pathType)"
class=
"name"
v-for=
"(level3Item, level3Index) in level2Item.childern"
:key=
"level3Index + level3Item"
>
class=
"two-level"
: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>
...
@@ -504,10 +522,16 @@ export default {
...
@@ -504,10 +522,16 @@ export default {
return
this
.
$store
.
state
.
user
||
{}
return
this
.
$store
.
state
.
user
||
{}
},
},
loginURL
()
{
loginURL
()
{
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
?
`
${
process
.
env
.
loginURL
}
/register?redirect_uri=
${
encodeURIComponent
(
location
.
origin
+
this
.
$route
.
fullPath
)}
`
:
''
return
process
.
client
?
`
${
process
.
env
.
loginURL
}
/register?redirect_uri=
${
encodeURIComponent
(
location
.
origin
+
this
.
$route
.
fullPath
)}
`
:
''
}
}
}
}
}
}
...
...
pages/roadmap/index.vue
浏览文件 @
5b738007
...
@@ -104,6 +104,7 @@ export default {
...
@@ -104,6 +104,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
$store
.
state
.
user
,
'user'
)
this
.
roadList
=
roadMapList
this
.
roadList
=
roadMapList
this
.
homeList
=
homeList
this
.
homeList
=
homeList
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
store/index.js
浏览文件 @
5b738007
...
@@ -47,8 +47,10 @@ export const actions = {
...
@@ -47,8 +47,10 @@ export const actions = {
},
},
// 检测登录状态
// 检测登录状态
async
checkLogin
({
commit
})
{
async
checkLogin
({
commit
})
{
console
.
log
(
'000'
)
const
isLogin
=
await
getUser
()
const
isLogin
=
await
getUser
()
.
then
(
response
=>
{
.
then
(
response
=>
{
console
.
log
(
response
,
'response'
)
commit
(
'setUser'
,
response
.
data
)
commit
(
'setUser'
,
response
.
data
)
return
true
return
true
})
})
...
...
utils/roadMap.js
浏览文件 @
5b738007
...
@@ -6,6 +6,7 @@ export const roadMapList = [
...
@@ -6,6 +6,7 @@ export const roadMapList = [
title
:
'职业教育'
,
title
:
'职业教育'
,
projectList
:
[
projectList
:
[
{
{
tenant
:
''
,
name
:
'紫荆数字经济产业学院'
,
name
:
'紫荆数字经济产业学院'
,
href
:
'https://www.baidu.com/'
href
:
'https://www.baidu.com/'
}
}
...
@@ -13,11 +14,11 @@ export const roadMapList = [
...
@@ -13,11 +14,11 @@ export const roadMapList = [
checkList
:
[
checkList
:
[
{
{
name
:
'在线国际学位'
,
name
:
'在线国际学位'
,
href
:
'
'
path
:
'/internationalDegree
'
},
},
{
{
name
:
'硕士(国际留学)'
,
name
:
'硕士(国际留学)'
,
href
:
'
'
path
:
'/studyAbroad
'
}
}
]
]
},
},
...
@@ -33,17 +34,17 @@ export const roadMapList = [
...
@@ -33,17 +34,17 @@ export const roadMapList = [
},
},
{
{
name
:
'国际大一(1+3)即将推出'
,
name
:
'国际大一(1+3)即将推出'
,
href
:
''
onClick
:
''
}
}
],
],
checkList
:
[
checkList
:
[
{
{
name
:
'在线国际学位'
,
name
:
'在线国际学位'
,
href
:
'
'
path
:
'/internationalDegree
'
},
},
{
{
name
:
'硕士(国际留学)'
,
name
:
'硕士(国际留学)'
,
href
:
'
'
path
:
'/studyAbroad
'
}
}
]
]
},
},
...
@@ -55,53 +56,60 @@ export const roadMapList = [
...
@@ -55,53 +56,60 @@ export const roadMapList = [
title
:
'在线国际学位'
,
title
:
'在线国际学位'
,
projectList
:
[
projectList
:
[
{
{
tenant
:
'marywood'
,
name
:
'数字领导力方向MBA'
,
name
:
'数字领导力方向MBA'
,
href
:
''
href
:
'
https://marywood.ezijing.com
'
},
},
{
{
tenant
:
'seg'
,
name
:
'酒店和旅游方向MBA'
,
name
:
'酒店和旅游方向MBA'
,
href
:
''
href
:
'
https://shms.ezijing.com
'
},
},
{
{
tenant
:
'caas'
,
name
:
'餐饮管理方向MBA'
,
name
:
'餐饮管理方向MBA'
,
href
:
''
href
:
'
https://caas.ezijing.com
'
}
}
],
],
checkList
:
[
checkList
:
[
{
{
tenant
:
'cbu-plus'
,
name
:
'工商管理博士DBA'
,
name
:
'工商管理博士DBA'
,
href
:
''
href
:
'
https://cbu-plus.ezijing.com
'
}
}
]
]
},
},
{
{
position
:
'right-start'
,
position
:
'right-start'
,
isShow
:
false
,
isShow
:
false
,
icon
:
'https://webapp-pub.ezijing.com/www/pc/lifeLearning/icon4.png'
,
icon
:
'https://webapp-pub.ezijing.com/www/pc/lifeLearning/icon4.png'
,
title
:
'硕士'
,
title
:
'硕士'
,
projectList
:
[
projectList
:
[
{
{
tenant
:
'kelley'
,
name
:
'金融硕士MSF'
,
name
:
'金融硕士MSF'
,
href
:
''
href
:
'
https://kelley.ezijing.com
'
},
},
{
{
tenant
:
'campbellsville'
,
name
:
'教育学硕士MED'
,
name
:
'教育学硕士MED'
,
href
:
''
href
:
'
https://cu.ezijing.com
'
},
},
{
{
tenant
:
'ciis'
,
name
:
'应用心理学MAP'
,
name
:
'应用心理学MAP'
,
href
:
''
href
:
'
https://ciis.ezijing.com
'
}
}
],
],
checkList
:
[
checkList
:
[
{
{
name
:
'在线国际学位'
,
name
:
'在线国际学位'
,
href
:
'
'
path
:
'/internationalDegree
'
},
},
{
{
tenant
:
'cbu-plus'
,
name
:
'工商管理博士DBA'
,
name
:
'工商管理博士DBA'
,
href
:
''
href
:
'
https://cbu-plus.ezijing.com
'
}
}
]
]
},
},
...
@@ -113,8 +121,9 @@ export const roadMapList = [
...
@@ -113,8 +121,9 @@ export const roadMapList = [
title
:
'博士'
,
title
:
'博士'
,
projectList
:
[
projectList
:
[
{
{
tenant
:
'cbu-plus'
,
name
:
'工商管理博士DBA'
,
name
:
'工商管理博士DBA'
,
href
:
''
href
:
'
https://cbu-plus.ezijing.com
'
}
}
],
],
checkList
:
[
checkList
:
[
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论