|
|
@ -1,18 +1,24 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<!-- 实验台 --> |
|
|
|
<!-- 实验台 --> |
|
|
|
<div class="box"> |
|
|
|
<div class="wrap"> |
|
|
|
<div class="search"> |
|
|
|
<div class="search"> |
|
|
|
|
|
|
|
<h6>创新实验,智能教学</h6> |
|
|
|
|
|
|
|
<div class="input"> |
|
|
|
|
|
|
|
<img src="@/assets/img/search.png" alt=""> |
|
|
|
<input type="text" placeholder="请输入关键词" v-model="keyword"> |
|
|
|
<input type="text" placeholder="请输入关键词" v-model="keyword"> |
|
|
|
<button>搜索</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="wrap"> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="station"> |
|
|
|
|
|
|
|
<div class="inner"> |
|
|
|
<template v-for="(item,index) in curriculumList"> |
|
|
|
<template v-for="(item,index) in curriculumList"> |
|
|
|
<a class="item" @click="goPreview(item)" :key="index" v-if="!keyword || item.curriculumName.includes(keyword)"> |
|
|
|
<a class="item" @click="goPreview(item)" :key="index" v-if="!keyword || item.curriculumName.includes(keyword)"> |
|
|
|
<img :src="item.coverUrl" alt=""> |
|
|
|
<img :src="item.coverUrl" alt=""> |
|
|
|
|
|
|
|
<p class="text">{{ item.curriculumName }}</p> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
@ -36,7 +42,6 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
goPreview(item) { |
|
|
|
goPreview(item) { |
|
|
|
// let systemName = item.name.replace("<br>","") |
|
|
|
|
|
|
|
this.$router.push(`/station/preview?courseId=${item.cid}&curriculumName=${item.curriculumName}`); |
|
|
|
this.$router.push(`/station/preview?courseId=${item.cid}&curriculumName=${item.curriculumName}`); |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@ -44,57 +49,55 @@ export default { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.box { |
|
|
|
.wrap { |
|
|
|
padding: 20px; |
|
|
|
margin: -24px; |
|
|
|
background-color: #fff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/deep/ .el-card { |
|
|
|
|
|
|
|
margin-bottom: 0; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.search { |
|
|
|
.search { |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
width: 30%; |
|
|
|
padding: 121px 0 167px; |
|
|
|
margin: 50px auto 130px; |
|
|
|
text-align: center; |
|
|
|
border-radius: 30px; |
|
|
|
background: url(../../../assets/img/station-bg.png) 0 0/100% 100% no-repeat; |
|
|
|
border: 1px solid #9076FF; |
|
|
|
h6 { |
|
|
|
border-right: 0; |
|
|
|
margin-bottom: 25px; |
|
|
|
overflow: hidden; |
|
|
|
font-size: 32px; |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.input { |
|
|
|
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
width: 700px; |
|
|
|
|
|
|
|
margin: 0 auto; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
img { |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 19px; |
|
|
|
|
|
|
|
left: 14px; |
|
|
|
|
|
|
|
} |
|
|
|
input { |
|
|
|
input { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: 44px; |
|
|
|
height: 62px; |
|
|
|
line-height: 44px; |
|
|
|
line-height: 62px; |
|
|
|
padding: 0 20px; |
|
|
|
padding: 0 50px; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 18px; |
|
|
|
color: #333; |
|
|
|
color: #333; |
|
|
|
border: 0; |
|
|
|
border: 0; |
|
|
|
outline: none !important; |
|
|
|
outline: none; |
|
|
|
box-sizing: border-box; |
|
|
|
border-radius: 4px; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
button { |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 0; |
|
|
|
|
|
|
|
right: 0; |
|
|
|
|
|
|
|
padding: 0 20px; |
|
|
|
|
|
|
|
line-height: 46px; |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
background-color: #9076FF; |
|
|
|
|
|
|
|
border: 0; |
|
|
|
|
|
|
|
outline: none !important; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.wrap { |
|
|
|
.station { |
|
|
|
|
|
|
|
background: url(../../../assets/img/station1.png) (top left)/auto no-repeat, |
|
|
|
|
|
|
|
url(../../../assets/img/station2.png) bottom right/auto no-repeat; |
|
|
|
|
|
|
|
.inner { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
flex-wrap: wrap; |
|
|
|
width: 1072px; |
|
|
|
width: 1072px; |
|
|
|
margin: 0 auto; |
|
|
|
|
|
|
|
min-height: calc(100vh - 520px); |
|
|
|
min-height: calc(100vh - 520px); |
|
|
|
box-sizing: border-box; |
|
|
|
padding: 30px 0; |
|
|
|
|
|
|
|
margin: 0 auto; |
|
|
|
|
|
|
|
} |
|
|
|
.item { |
|
|
|
.item { |
|
|
|
|
|
|
|
position: relative; |
|
|
|
width: 256px; |
|
|
|
width: 256px; |
|
|
|
height: 195px; |
|
|
|
height: 195px; |
|
|
|
margin: 0 6px 4px; |
|
|
|
margin: 0 6px 4px; |
|
|
@ -106,6 +109,18 @@ export default { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.text { |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
bottom: 14px; |
|
|
|
|
|
|
|
left: 25px; |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
width: 130px; |
|
|
|
|
|
|
|
height: 50px; |
|
|
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
|
|
line-height: 1.6; |
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |