2021-01-22 13:59:32 +08:00
|
|
|
<template>
|
|
|
|
<div class="joylink-card">
|
2021-04-22 11:30:07 +08:00
|
|
|
<div class="content_box">
|
|
|
|
<h1 class="title">{{ title }}</h1>
|
|
|
|
<div class="card-box">
|
|
|
|
<el-carousel :interval="4000" type="card" height="380px">
|
|
|
|
<el-carousel-item v-for="(item, index) in listImg" :key="index">
|
|
|
|
<img :src="item.src" alt="" height="100%" width="100%">
|
|
|
|
</el-carousel-item>
|
|
|
|
</el-carousel>
|
2021-01-22 13:59:32 +08:00
|
|
|
</div>
|
2021-04-22 11:30:07 +08:00
|
|
|
<!--<div class="brief-box">{{ $t('demonstration.simulationSystemDescription') }}</div>-->
|
|
|
|
</div>
|
2021-01-22 13:59:32 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-01-22 14:47:49 +08:00
|
|
|
import simulation1 from '@/assets/home_simulation/simulation1.png';
|
|
|
|
import simulation2 from '@/assets/home_simulation/simulation2.png';
|
|
|
|
import simulation3 from '@/assets/home_simulation/simulation3.png';
|
|
|
|
import simulation4 from '@/assets/home_simulation/simulation4.png';
|
|
|
|
import simulation5 from '@/assets/home_simulation/simulation5.png';
|
|
|
|
import teach1 from '@/assets/home_teach/teach1.png';
|
|
|
|
import exam1 from '@/assets/home_exam/exam1.png';
|
2021-01-22 13:59:32 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'SecondaryHome',
|
|
|
|
data() {
|
|
|
|
return {
|
2021-01-22 14:47:49 +08:00
|
|
|
simulationImgList: [
|
|
|
|
{ src: simulation1 },
|
|
|
|
{ src: simulation2 },
|
|
|
|
{ src: simulation3 },
|
|
|
|
{ src: simulation4 },
|
|
|
|
{ src: simulation5 }
|
2021-01-22 13:59:32 +08:00
|
|
|
],
|
2021-04-22 11:30:07 +08:00
|
|
|
lessonImgList: [
|
2021-01-22 14:47:49 +08:00
|
|
|
{ src: teach1 }
|
|
|
|
],
|
|
|
|
examImgList: [
|
|
|
|
{ src: exam1 }
|
|
|
|
]
|
2021-01-22 13:59:32 +08:00
|
|
|
};
|
2021-01-22 14:47:49 +08:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
listImg() {
|
2021-04-22 11:30:07 +08:00
|
|
|
return this[(this.$route.query.type || '').toLowerCase() + 'ImgList'] || [];
|
2021-01-22 15:40:16 +08:00
|
|
|
},
|
|
|
|
title() {
|
2021-04-22 11:30:07 +08:00
|
|
|
const typeMap = {'Simulation':'仿真系统', 'Lesson':'教学系统', 'Exam':'考试系统'};
|
|
|
|
return typeMap[this.$route.query.type] || '';
|
2021-01-22 14:47:49 +08:00
|
|
|
}
|
2021-01-22 13:59:32 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
|
@import "src/styles/mixin.scss";
|
|
|
|
|
|
|
|
/deep/ .el-carousel {
|
|
|
|
overflow: hidden;
|
|
|
|
width:100%;
|
|
|
|
}
|
|
|
|
.joylink-card{
|
|
|
|
height: 100%;
|
|
|
|
font-family: 'Microsoft YaHei';
|
2021-04-22 11:30:07 +08:00
|
|
|
overflow: auto;
|
2021-01-22 13:59:32 +08:00
|
|
|
.content_box{
|
|
|
|
padding: 0 100px 15px;
|
|
|
|
}
|
|
|
|
.title {
|
|
|
|
font-size: 35px;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
font-weight: 400;
|
|
|
|
margin-top: 55px;
|
|
|
|
border-bottom: 2px dashed #333;
|
|
|
|
padding-bottom: 15px;
|
|
|
|
margin-bottom: 70px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.logo-img {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 55px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-box {
|
|
|
|
width: 100%;
|
|
|
|
padding: 0 50px;
|
|
|
|
}
|
|
|
|
|
2021-04-22 11:30:07 +08:00
|
|
|
// .brief-box {
|
|
|
|
// font-size: 18px;
|
|
|
|
// text-indent: 2em;
|
|
|
|
// line-height: 32px;
|
|
|
|
// padding: 40px 20px 0;
|
|
|
|
// font-family: unset;
|
|
|
|
// }
|
2021-01-22 13:59:32 +08:00
|
|
|
}
|
|
|
|
</style>
|