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