mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
Merge branch 'zcwy_0723_hotforum' into dev0515
This commit is contained in:
BIN
src/assets/images/hotforum/background.jpg
Normal file
BIN
src/assets/images/hotforum/background.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 683 KiB |
BIN
src/assets/images/hotforum/border.png
Normal file
BIN
src/assets/images/hotforum/border.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
src/assets/images/hotforum/one.png
Normal file
BIN
src/assets/images/hotforum/one.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 183 KiB |
BIN
src/assets/images/hotforum/two.png
Normal file
BIN
src/assets/images/hotforum/two.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 195 KiB |
@@ -341,6 +341,13 @@ export const constantRoutes = [{
|
|||||||
name: 'videotest',
|
name: 'videotest',
|
||||||
meta: {title: '课程视频测试', icon: 'dashboard', noCache: true, affix: true},
|
meta: {title: '课程视频测试', icon: 'dashboard', noCache: true, affix: true},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/hotforum',
|
||||||
|
hidden: true,
|
||||||
|
component: (resolve) => require(['@/views/hotforum/Index'], resolve),
|
||||||
|
name: 'hotforum',
|
||||||
|
meta: {title: '热点论坛', icon: 'dashboard', noCache: true, affix: true},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/404',
|
path: '/404',
|
||||||
component: (resolve) => require(['@/views/error/404'], resolve),
|
component: (resolve) => require(['@/views/error/404'], resolve),
|
||||||
|
|||||||
53
src/views/hotforum/Index.vue
Normal file
53
src/views/hotforum/Index.vue
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
<template>
|
||||||
|
<div class="hot">
|
||||||
|
<div class="center">
|
||||||
|
<div class="item" :style="{marginRight:(i%2==0||i==0)?'49px':'0'}" v-for="item,i in imgData" :key="i">
|
||||||
|
<img class="img" :src="require(`../../assets/images/hotforum/${item}.png`)" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "hotforum",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
imgData:['one','two','one','two'],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.hot{
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1528px;
|
||||||
|
min-height: 776px;
|
||||||
|
// min-height: 1373px;
|
||||||
|
background: url("../../assets/images/hotforum/background.jpg") no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
.center{
|
||||||
|
max-width: 1270px;
|
||||||
|
margin-bottom: 66px;
|
||||||
|
margin-top: 285px;
|
||||||
|
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;
|
||||||
|
.img{
|
||||||
|
width: 581px;
|
||||||
|
height: 283px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user