Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-www-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-www-pc
Commits
1696491d
提交
1696491d
authored
5月 18, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
43574a58
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
98 行增加
和
26 行删除
+98
-26
roadMap.js
assets/roadMap.js
+9
-9
index.vue
pages/roadmap/index.vue
+89
-17
没有找到文件。
assets/roadMap.js
浏览文件 @
1696491d
...
@@ -15,7 +15,10 @@ export const roadMapList = [
...
@@ -15,7 +15,10 @@ export const roadMapList = [
{
{
tenant
:
''
,
tenant
:
''
,
name
:
'紫荆数字经济产业学院'
,
name
:
'紫荆数字经济产业学院'
,
href
:
'https://www.baidu.com/'
onClick
()
{
Message
(
'即将推出'
)
}
// href: ''
}
}
],
],
checkList
:
[
checkList
:
[
...
@@ -39,7 +42,10 @@ export const roadMapList = [
...
@@ -39,7 +42,10 @@ export const roadMapList = [
{
{
tenant
:
''
,
tenant
:
''
,
name
:
'紫荆数字经济产业学院'
,
name
:
'紫荆数字经济产业学院'
,
href
:
''
// href: ''
onClick
()
{
Message
(
'即将推出'
)
}
},
},
{
{
tenant
:
''
,
tenant
:
''
,
...
@@ -129,7 +135,6 @@ export const roadMapList = [
...
@@ -129,7 +135,6 @@ export const roadMapList = [
},
},
{
{
project_name
:
'项目名称:'
,
project_name
:
'项目名称:'
,
position
:
'bottom-start'
,
position
:
'bottom-start'
,
isShow
:
false
,
isShow
:
false
,
icon
:
'https://webapp-pub.ezijing.com/www/pc/lifeLearning/icon5.png'
,
icon
:
'https://webapp-pub.ezijing.com/www/pc/lifeLearning/icon5.png'
,
...
@@ -141,12 +146,7 @@ export const roadMapList = [
...
@@ -141,12 +146,7 @@ export const roadMapList = [
href
:
'https://cbu-plus.ezijing.com'
href
:
'https://cbu-plus.ezijing.com'
}
}
],
],
checkList
:
[
checkList
:
[]
{
name
:
'暂无'
,
href
:
''
}
]
}
}
]
]
export
const
homeList
=
[
export
const
homeList
=
[
...
...
pages/roadmap/index.vue
浏览文件 @
1696491d
...
@@ -17,13 +17,15 @@
...
@@ -17,13 +17,15 @@
{{
it
.
name
}}
{{
it
.
name
}}
</AppLink>
</AppLink>
</div>
</div>
<div
class=
"line"
></div>
<template
v-if=
"item.checkList.length"
>
<div
class=
"el-popover__title"
>
未来可选目标:
</div>
<div
class=
"line"
></div>
<div
v-for=
"(itTwo, index) in item.checkList"
:key=
"itTwo.name"
class=
"project_name"
>
<div
class=
"el-popover__title"
>
未来可选目标:
</div>
<AppLink
:data=
"itTwo"
>
<div
v-for=
"(itTwo, index) in item.checkList"
:key=
"itTwo.name"
class=
"project_name"
>
{{
itTwo
.
name
}}
<AppLink
:data=
"itTwo"
>
</AppLink>
{{
itTwo
.
name
}}
</div>
</AppLink>
</div>
</
template
>
<div
slot=
"reference"
class=
"banner_roadList_con"
>
<div
slot=
"reference"
class=
"banner_roadList_con"
>
<img
:src=
"item.icon"
alt=
""
/>
<img
:src=
"item.icon"
alt=
""
/>
...
@@ -55,7 +57,7 @@
...
@@ -55,7 +57,7 @@
:list=
"internationalDegreeProjectList"
:list=
"internationalDegreeProjectList"
baseUrl=
"/internationalDegree"
baseUrl=
"/internationalDegree"
></ProjectCard>
></ProjectCard>
<ProjectCard
title=
"留学中
学
"
:list=
"studyAbroadProjectList"
baseUrl=
"/studyAbroad"
></ProjectCard>
<ProjectCard
title=
"留学中
心
"
:list=
"studyAbroadProjectList"
baseUrl=
"/studyAbroad"
></ProjectCard>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -68,16 +70,62 @@ import AppLink from '@/components/Link.vue'
...
@@ -68,16 +70,62 @@ import AppLink from '@/components/Link.vue'
export
default
{
export
default
{
components
:
{
ProjectCard
,
AppLink
},
components
:
{
ProjectCard
,
AppLink
},
computed
:
{
computed
:
{
// 在读
learningInfo
()
{
learningInfo
()
{
return
this
.
learning
.
filter
(
item
=>
item
.
status
===
'1'
)
if
(
this
.
learning
.
length
)
{
return
this
.
learning
.
filter
(
item
=>
item
.
status
===
'1'
)
}
else
{
return
[]
}
},
// 毕业 休学
otherInfo
()
{
return
this
.
learning
.
filter
(
item
=>
item
.
status
!==
'3'
||
item
.
status
!==
'4'
)
},
},
// list() {
// if (this.learningInfo.length > 0) {
// this.roadList.forEach(item => {
// item.projectList.forEach(it => {
// this.learningInfo.forEach(itL => {
// if (it.tenant === itL.tenant) {
// if (item.projectList.find(it => it.tenant === itL.tenant)) {
// console.log(item.projectList, '123')
// item.isShow = true
// }
// item.projectList = item.projectList.filter(it => it.tenant === itL.tenant)
// console.log(item.projectList, 'projectList')
// item.project_name = '我的项目:'
// }
// })
// })
// })
// return this.roadList
// } else {
// return this.roadList
// }
// }
list
()
{
list
()
{
// status 状态(0:毕业,1:在读,2:休学,3:未开通,4:退学)
if
(
this
.
learningInfo
.
length
>
0
)
{
if
(
this
.
learningInfo
.
length
>
0
)
{
this
.
roadList
.
forEach
(
item
=>
{
this
.
roadList
.
forEach
(
item
=>
{
// 最新在读显示 弹框 显示我的项目
if
(
item
.
projectList
.
find
(
it
=>
it
.
tenant
===
this
.
learningInfo
[
0
].
tenant
))
{
if
(
item
.
projectList
.
find
(
it
=>
it
.
tenant
===
this
.
learningInfo
[
0
].
tenant
))
{
item
.
isShow
=
true
item
.
isShow
=
true
item
.
project_name
=
'我的项目:'
item
.
project_name
=
'我的项目:'
item
.
projectList
=
item
.
projectList
.
filter
(
it
=>
it
.
tenant
===
this
.
learningInfo
[
0
].
tenant
)
}
const
arr
=
[]
this
.
otherInfo
.
forEach
(
itL
=>
{
item
.
projectList
.
forEach
(
itP
=>
{
if
(
itL
.
tenant
===
itP
.
tenant
)
{
arr
.
push
(
itP
)
item
.
project_name
=
'我的项目:'
}
})
})
if
(
item
.
project_name
===
'我的项目:'
)
{
item
.
projectList
=
arr
}
}
})
})
return
this
.
roadList
return
this
.
roadList
...
@@ -125,20 +173,37 @@ export default {
...
@@ -125,20 +173,37 @@ export default {
},
},
methods
:
{
methods
:
{
handleShow
(
val
)
{
handleShow
(
val
)
{
this
.
list
.
map
(
item
=>
{
if
(
this
.
list
)
{
if
(
item
.
title
!==
val
.
title
)
{
this
.
list
.
map
(
item
=>
{
item
.
isShow
=
false
if
(
item
.
title
!==
val
.
title
)
{
}
item
.
isShow
=
false
})
}
})
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
learning
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'learningList'
))
this
.
learning
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'learningList'
))
||
''
// 过滤出在读的
// const isShowList = this.learning.filter(item=> item.status === '1')
// this.roadList.
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.el-popper
[
x-placement
^=
'left'
]
.popover
.popper__arrow
{
right
:
-7px
;
}
.el-popper
[
x-placement
^=
'top'
]
.popover
.popper__arrow
{
bottom
:
-7px
;
}
.el-popper
[
x-placement
^=
'right'
]
.popover
.popper__arrow
{
left
:
-7px
;
}
.el-popper
[
x-placement
^=
'bottom'
]
.popover
.popper__arrow
{
top
:
-7px
;
}
.el-popover.popover
{
.el-popover.popover
{
background
:
rgba
(
255
,
255
,
255
,
0
.39
);
background
:
rgba
(
255
,
255
,
255
,
0
.39
);
border-radius
:
20px
;
border-radius
:
20px
;
...
@@ -176,6 +241,9 @@ export default {
...
@@ -176,6 +241,9 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
flex-direction
:
column
;
flex-direction
:
column
;
.banner_roadList_con
:hover
{
text-shadow
:
2px
2px
5px
rgb
(
143
,
141
,
141
);
}
.banner_roadList_con
{
.banner_roadList_con
{
display
:
flex
;
display
:
flex
;
...
@@ -183,6 +251,7 @@ export default {
...
@@ -183,6 +251,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
flex-direction
:
column
;
flex-direction
:
column
;
cursor
:
pointer
;
cursor
:
pointer
;
.item_title
{
.item_title
{
font-size
:
20px
;
font-size
:
20px
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -224,12 +293,15 @@ export default {
...
@@ -224,12 +293,15 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
space-around
;
align-items
:
center
;
align-items
:
center
;
.banner_homeList_con
:hover
{
text-shadow
:
2px
2px
5px
rgb
(
143
,
141
,
141
);
}
.banner_homeList_con
{
.banner_homeList_con
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
flex-direction
:
column
;
flex-direction
:
column
;
cursor
:
pointer
;
.item_title
{
.item_title
{
font-size
:
20px
;
font-size
:
20px
;
font-weight
:
bold
;
font-weight
:
bold
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论