mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
204 lines
5.5 KiB
Vue
204 lines
5.5 KiB
Vue
<template>
|
|
<div class="hot25">
|
|
<div>
|
|
<div class="title25" style="">
|
|
<img class="img" src="../../assets/images/hotforum/2025.png" alt="">
|
|
</div>
|
|
<div class="center" style="margin-top: 60px;">
|
|
<div class="item" style="margin-right: 49px;">
|
|
<img class="img" @click="goLearn('1351506180295131136')" src="../../assets/images/hotforum/2501.jpg" alt="">
|
|
</div>
|
|
<div class="item">
|
|
<img class="img" @click="goLearn('1375146833375027200')" src="../../assets/images/hotforum/2503.png" alt="">
|
|
</div>
|
|
</div>
|
|
<div class="line" style="margin: 0 auto;margin-top: 60px;width: 100%;text-align: center;">
|
|
<img class="img" src="../../assets/images/hotforum/line.png" alt="">
|
|
</div>
|
|
<div class="title24" style="margin: 0 auto;margin-top: 60px;width: 100%;text-align: center;">
|
|
<img class="img" src="../../assets/images/hotforum/2024.png" alt="">
|
|
</div>
|
|
<div class="center" style="margin-top: 60px;">
|
|
<div class="item" :style="{marginRight:(i%2==0||i==0)?'49px':'0'}" v-for="item,i in imgData" :key="i">
|
|
<img class="img" @click="goLearn(item.url)" :src="require(`../../assets/images/hotforum/${item.img}.png`)" alt="">
|
|
</div>
|
|
</div>
|
|
<div style="display: flex;justify-content: center;margin-bottom: 52px;">
|
|
<img src="../../assets/images/hotforum/foot.png" alt="">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "hotforumNew",
|
|
data() {
|
|
return {
|
|
imgData:[
|
|
{img:'01',url:'1265897142383042560'},
|
|
{img:'02',url:'1265697724606210048'},
|
|
{img:'003',url:'1280185851054231552'},
|
|
{img:'04',url:'1321778585966247936'},
|
|
],
|
|
imgData25:[
|
|
{img:'2501',url:'1351506180295131136'},
|
|
{img:'2503',url:'1375146833375027200'},
|
|
],
|
|
}
|
|
},
|
|
methods: {
|
|
goLearn(item){
|
|
if(item){
|
|
// this.$router.push({path:'/course/detail',query:{id:item}})
|
|
window.open(`https://u.boe.com/pc/course/detail?id=${item}`)
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.hot25{
|
|
width: 100%;
|
|
// max-width: 1920px;
|
|
min-height: 100%;
|
|
// min-height: 1373px;
|
|
background: url("../../assets/images/hotforum/back25.png") no-repeat;
|
|
background-size: cover;
|
|
display: flex;
|
|
justify-content: center;
|
|
.title25{
|
|
margin: 0 auto;margin-top: 100px;width: 100%;text-align: center;
|
|
}
|
|
.center{
|
|
max-width: 1270px;
|
|
max-height: 700px;
|
|
margin-bottom: 5%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
.item{
|
|
width: 610px;
|
|
height: 330px;
|
|
background: url("../../assets/images/hotforum/border.png") no-repeat;
|
|
background-size: 100%;
|
|
padding: 14px;
|
|
padding-top: 31px;
|
|
margin-bottom: 59px;
|
|
cursor: pointer;
|
|
.img{
|
|
width: 581px;
|
|
height: 283px;
|
|
}
|
|
}
|
|
}
|
|
/* 当窗口宽度大于3068px时的样式 */
|
|
}
|
|
// @media (min-width: 3000px) {
|
|
// .hot{
|
|
// width: 100%;
|
|
// // max-width: 1920px;
|
|
// min-height: 100%;
|
|
// // min-height: 1373px;
|
|
// background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
|
// background-size: 100% 100%;
|
|
// display: flex;
|
|
// justify-content: center;
|
|
// .center {
|
|
// max-width: 2560px;
|
|
// max-height: 1300px;
|
|
// margin-bottom: 5%;
|
|
// margin-top: 30vh;
|
|
// display: flex;
|
|
// flex-wrap: wrap;
|
|
|
|
// .item {
|
|
// width: 1220px;
|
|
// height: 660px;
|
|
// background: url("../../assets/images/hotforum/border.png") no-repeat;
|
|
// background-size: 100%;
|
|
// padding: 28px;
|
|
// padding-top: 62px;
|
|
// margin-bottom: 59px;
|
|
|
|
// .img {
|
|
// width: 100%; // 图片宽度占满item宽度
|
|
// height: auto; // 自动调整高度
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// @media (min-height: 1500px) {
|
|
// .hot{
|
|
// width: 100%;
|
|
// // max-width: 1920px;
|
|
// min-height: 100%;
|
|
// // min-height: 1373px;
|
|
// background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
|
// background-size: 100% 100%;
|
|
// display: flex;
|
|
// justify-content: center;
|
|
// .center {
|
|
// max-width: 1068px;
|
|
// max-height: 580px;
|
|
// margin-bottom: 5%;
|
|
// margin-top: 30vh;
|
|
// display: flex;
|
|
// flex-wrap: wrap;
|
|
|
|
// .item {
|
|
// width: 500px;
|
|
// height: 271px;
|
|
// background: url("../../assets/images/hotforum/border.png") no-repeat;
|
|
// background-size: 100%;
|
|
// padding: 14px;
|
|
// padding-top: 26px;
|
|
// margin-bottom: 30px;
|
|
|
|
// .img {
|
|
// width: 100%; // 图片宽度占满item宽度
|
|
// height: auto; // 自动调整高度
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// @media (min-width: 1928px) and (max-width: 3000px) {
|
|
// .hot{
|
|
// width: 100%;
|
|
// // max-width: 1920px;
|
|
// min-height: 100%;
|
|
// // min-height: 1373px;
|
|
// background: url("../../assets/images/hotforum/back.jpg") no-repeat;
|
|
// background-size: 100% 100%;
|
|
// display: flex;
|
|
// justify-content: center;
|
|
// .center {
|
|
// max-width: 1800px;
|
|
// max-height: 1100px;
|
|
// margin-bottom: 5%;
|
|
// margin-top: 35vh;
|
|
// display: flex;
|
|
// flex-wrap: wrap;
|
|
|
|
// .item {
|
|
// width: 860px;
|
|
// height: 466px;
|
|
// background: url("../../assets/images/hotforum/border.png") no-repeat;
|
|
// background-size: 100%;
|
|
// padding: 28px;
|
|
// padding-top: 48px;
|
|
// margin-bottom: 70px;
|
|
|
|
// .img {
|
|
// width: 100%; // 图片宽度占满item宽度
|
|
// height: auto; // 自动调整高度
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
</style>
|