Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-pc
Commits
0c808a16
提交
0c808a16
authored
6月 16, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
b00876d6
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
202 行增加
和
64 行删除
+202
-64
Card.vue
components/Card.vue
+76
-0
projectFeatures.vue
components/home/projectFeatures.vue
+98
-54
en-US.js
langs/en-US.js
+14
-5
zh-CN.js
langs/zh-CN.js
+14
-5
没有找到文件。
components/Card.vue
0 → 100644
浏览文件 @
0c808a16
<
template
>
<div
:class=
"isMobile ? 'is-h5' : 'is-pc'"
>
<div
class=
"card"
>
<div
class=
"card-hd"
>
<div
class=
"card-hd__title"
>
{{
title
}}
</div>
<div
class=
"card-hd__aside"
><slot
name=
"header-aside"
></slot></div>
</div>
<div
class=
"card-bd"
><slot
/></div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
title
:
String
},
computed
:
{
isMobile
()
{
return
this
.
$store
.
state
.
isMobile
}
}
}
</
script
>
<
style
lang=
"scss"
>
.is-pc
{
.card
{
// margin: 0.2rem 0.15rem;
}
.card-hd
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
// margin-bottom: 0.15rem;
}
.card-hd__title
{
flex
:
1
;
border-left
:
7px
solid
#aa1941
;
padding-left
:
20px
;
font-size
:
32px
;
font-weight
:
bold
;
line-height
:
1
;
}
.card-hd__aside
{
font-size
:
16px
;
color
:
#9b9b9b
;
cursor
:
pointer
;
}
.card-bd
{
}
}
.is-h5
{
.card
{
margin
:
0
.2rem
0
.15rem
;
}
.card-hd
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
0
.15rem
;
}
.card-hd__title
{
flex
:
1
;
border-left
:
0
.03rem
solid
#aa1941
;
padding-left
:
0
.05rem
;
font-size
:
0
.17rem
;
font-weight
:
bold
;
line-height
:
1
;
}
.card-hd__aside
{
font-size
:
0
.1rem
;
color
:
#9b9b9b
;
}
.card-bd
{
}
}
</
style
>
components/home/projectFeatures.vue
浏览文件 @
0c808a16
<
template
>
<
template
>
<div
class=
"service-content max-width-center"
>
<div
class=
"service-content max-width-center"
>
<m-title
:data=
"titleParams"
/>
<div
:class=
"isMobile ? 'is-h5' : 'is-pc'"
>
<ul
class=
"nav-content"
>
<card
:title=
"$t('home.project.title')"
>
<li
v-for=
"(item, index) in data"
:key=
"index"
@
click=
"goPage(item.path)"
>
<ul
class=
"nav-content"
>
<img
:src=
"item.icon"
alt=
""
class=
"icon"
>
<li
v-for=
"(item, index) in data"
:key=
"index"
>
<img
:src=
"item.iconActive"
alt=
""
class=
"icon-active"
>
<img
:src=
"item.icon"
class=
"icon"
>
<div
class=
"text"
v-html=
"item.text"
></div>
<img
v-if=
"!isMobile"
:src=
"item.iconActive"
class=
"icon-active"
>
</li>
<div
class=
"text"
v-html=
"item.text"
></div>
</ul>
</li>
</ul>
</card>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Card
from
'@/components/Card'
import
mTitle
from
'@/components/home/moduleTitle'
import
mTitle
from
'@/components/home/moduleTitle'
import
AppLink
from
'@/components/Link'
import
AppLink
from
'@/components/Link'
export
default
{
export
default
{
name
:
'projectFeatures'
,
name
:
'projectFeatures'
,
components
:
{
components
:
{
mTitle
,
mTitle
,
AppLink
AppLink
,
Card
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -28,27 +33,27 @@ export default {
...
@@ -28,27 +33,27 @@ export default {
{
{
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon1.png'
,
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon1.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s1.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s1.png'
,
text
:
this
.
$
t
(
'home.project.itemT1'
),
path
:
''
,
pathType
:
0
text
:
this
.
$
store
.
state
.
isMobile
?
this
.
$t
(
'home.project.h5.itemT1'
)
:
this
.
$t
(
'home.project.pc.itemT1'
)
},
},
{
{
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon2.png'
,
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon2.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s2.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s2.png'
,
text
:
this
.
$
t
(
'home.project.itemT2'
),
path
:
''
,
pathType
:
0
text
:
this
.
$
store
.
state
.
isMobile
?
this
.
$t
(
'home.project.h5.itemT2'
)
:
this
.
$t
(
'home.project.pc.itemT2'
)
},
},
{
{
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon3.png'
,
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon3.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s3.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s3.png'
,
text
:
this
.
$
t
(
'home.project.itemT3'
),
path
:
''
,
pathType
:
0
text
:
this
.
$
store
.
state
.
isMobile
?
this
.
$t
(
'home.project.h5.itemT3'
)
:
this
.
$t
(
'home.project.pc.itemT3'
)
},
},
{
{
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon4.png'
,
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon4.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s4.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s4.png'
,
text
:
this
.
$
t
(
'home.project.itemT4'
),
path
:
''
,
pathType
:
0
text
:
this
.
$
store
.
state
.
isMobile
?
this
.
$t
(
'home.project.h5.itemT4'
)
:
this
.
$t
(
'home.project.pc.itemT4'
)
},
},
{
{
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon5.png'
,
icon
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon5.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s5.png'
,
iconActive
:
'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley/home-icon-s5.png'
,
text
:
this
.
$
t
(
'home.project.itemT5'
),
path
:
''
,
pathType
:
0
text
:
this
.
$
store
.
state
.
isMobile
?
this
.
$t
(
'home.project.h5.itemT5'
)
:
this
.
$t
(
'home.project.pc.itemT5'
)
}
}
]
]
}
}
...
@@ -61,61 +66,100 @@ export default {
...
@@ -61,61 +66,100 @@ export default {
}
}
window
.
open
(
path
)
window
.
open
(
path
)
}
}
},
mounted
()
{
console
.
log
(
this
.
isMobile
)
},
computed
:
{
isMobile
()
{
return
this
.
$store
.
state
.
isMobile
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.service-content
{
.is-pc
{
padding-top
:
68px
;
.service-content
{
.nav-content
{
padding-top
:
68px
;
display
:
flex
;
.nav-content
{
justify-content
:
space-between
;
display
:
flex
;
padding-top
:
15px
;
justify-content
:
space-between
;
li
{
padding-top
:
15px
;
width
:
224px
;
li
{
height
:
230px
;
width
:
224px
;
padding-top
:
53px
;
height
:
230px
;
box-sizing
:
border-box
;
padding-top
:
53px
;
background
:
#F9F8F8
;
box-sizing
:
border-box
;
// background: #fff;
background
:
#F9F8F8
;
// box-shadow: 0px 4px 38px rgba(142, 30, 34, 0.41);
// background: #fff;
cursor
:
pointer
;
// box-shadow: 0px 4px 38px rgba(142, 30, 34, 0.41);
transition
:
all
.3s
;
cursor
:
pointer
;
img
{
transition
:
all
.3s
;
width
:
80px
;
img
{
height
:
80px
;
width
:
80px
;
display
:
block
;
height
:
80px
;
margin
:
0
auto
;
display
:
block
;
}
margin
:
0
auto
;
.icon-active
{
display
:
none
;
}
&
:hover
{
background
:
#AA1941
;
box-shadow
:
0px
4px
20px
rgba
(
142
,
30
,
34
,
0
.41
);
.text
{
color
:
#fff
;
}
}
.icon
{
.icon
-active
{
display
:
none
;
display
:
none
;
}
}
.icon-active
{
&
:hover
{
display
:
block
;
background
:
#AA1941
;
box-shadow
:
0px
4px
20px
rgba
(
142
,
30
,
34
,
0
.41
);
.text
{
color
:
#fff
;
}
.icon
{
display
:
none
;
}
.icon-active
{
display
:
block
;
}
}
.text
{
font-size
:
14px
;
line-height
:
18px
;
color
:
#666666
;
margin-top
:
20px
;
text-align
:
center
;
}
}
}
}
}
}
.max-width-center
{
width
:
1212px
;
margin
:
0
auto
;
}
}
.is-h5
{
.service-content
{
ul
{
display
:
flex
;
overflow-x
:
scroll
;
-webkit-overflow-scrolling
:
touch
;
}
li
{
min-width
:
.78rem
;
background
:
#FFFFFF
;
margin-right
:
.10rem
;
padding-top
:
.11rem
;
img
{
width
:
.4rem
;
height
:
.4rem
;
display
:
block
;
margin
:
0
auto
;
}
.text
{
.text
{
font-size
:
14px
;
font-size
:
.1rem
;
line-height
:
18px
;
line-height
:
.16rem
;
color
:
#666666
;
color
:
#666666
;
margin-top
:
20px
;
padding-top
:
.05rem
;
text-align
:
center
;
text-align
:
center
;
padding-bottom
:
.1rem
;
}
}
}
}
}
}
}
}
.max-width-center
{
width
:
1212px
;
margin
:
0
auto
;
}
</
style
>
</
style
>
langs/en-US.js
浏览文件 @
0c808a16
...
@@ -37,11 +37,20 @@ export default {
...
@@ -37,11 +37,20 @@ export default {
home
:
{
home
:
{
project
:
{
project
:
{
title
:
'项目特色'
,
title
:
'项目特色'
,
itemT1
:
'全方位的金融职业<br />教育课程体系'
,
h5
:
{
itemT2
:
'专业金融<br />在线教育品牌'
,
itemT1
:
'全方位的<br />金融职业<br />教育课程体系'
,
itemT3
:
'科学成熟的<br />在线教育模式'
,
itemT2
:
'专业金融<br />在线<br />教育品牌'
,
itemT4
:
'无需联考、快速入门<br />的学习体验'
,
itemT3
:
'科学成熟的<br />在线<br />教育模式'
,
itemT5
:
'聚焦中国实践和国际前沿<br />的最新课程'
,
itemT4
:
'无需联考<br />快速入门<br />的学习体验'
,
itemT5
:
'聚焦中国实践<br />和国际前沿<br />的最新课程'
},
pc
:
{
itemT1
:
'全方位的金融职业<br />教育课程体系'
,
itemT2
:
'专业金融<br />在线教育品牌'
,
itemT3
:
'科学成熟的<br />在线教育模式'
,
itemT4
:
'无需联考、快速入门<br />的学习体验'
,
itemT5
:
'聚焦中国实践和国际前沿<br />的最新课程'
}
},
},
ranking
:
{
ranking
:
{
title
:
'学校排名'
,
title
:
'学校排名'
,
...
...
langs/zh-CN.js
浏览文件 @
0c808a16
...
@@ -37,11 +37,20 @@ export default {
...
@@ -37,11 +37,20 @@ export default {
home
:
{
home
:
{
project
:
{
project
:
{
title
:
'项目特色'
,
title
:
'项目特色'
,
itemT1
:
'全方位的金融职业<br />教育课程体系'
,
h5
:
{
itemT2
:
'专业金融<br />在线教育品牌'
,
itemT1
:
'全方位的<br />金融职业<br />教育课程体系'
,
itemT3
:
'科学成熟的<br />在线教育模式'
,
itemT2
:
'专业金融<br />在线<br />教育品牌'
,
itemT4
:
'无需联考、快速入门<br />的学习体验'
,
itemT3
:
'科学成熟的<br />在线<br />教育模式'
,
itemT5
:
'聚焦中国实践和国际前沿<br />的最新课程'
,
itemT4
:
'无需联考<br />快速入门<br />的学习体验'
,
itemT5
:
'聚焦中国实践<br />和国际前沿<br />的最新课程'
},
pc
:
{
itemT1
:
'全方位的金融职业<br />教育课程体系'
,
itemT2
:
'专业金融<br />在线教育品牌'
,
itemT3
:
'科学成熟的<br />在线教育模式'
,
itemT4
:
'无需联考、快速入门<br />的学习体验'
,
itemT5
:
'聚焦中国实践和国际前沿<br />的最新课程'
}
},
},
ranking
:
{
ranking
:
{
title
:
'学校排名'
,
title
:
'学校排名'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论