194 lines
4.1 KiB
Vue
194 lines
4.1 KiB
Vue
<template>
|
|
<div class="environment">
|
|
<div class="nav">
|
|
<el-menu
|
|
:default-active="activeIndex"
|
|
class="el-menu-demo"
|
|
mode="horizontal"
|
|
background-color="#545c64"
|
|
text-color="#fff"
|
|
active-text-color="#ffd04b"
|
|
>
|
|
<el-menu-item index="1">
|
|
<router-link to="/index">首页</router-link>
|
|
</el-menu-item>
|
|
|
|
<el-menu-item index="2">
|
|
<router-link to="/scheme">解决方案</router-link>
|
|
</el-menu-item>
|
|
<el-menu-item index="3">
|
|
<router-link to="/projectCase">工程案例</router-link>
|
|
</el-menu-item>
|
|
<el-menu-item index="4">
|
|
<router-link to="journalism">新闻资讯</router-link>
|
|
</el-menu-item>
|
|
</el-menu>
|
|
</div>
|
|
|
|
<environmentCarousel/>
|
|
|
|
<div class="scheme">
|
|
<div class="details" v-for="(item, index) in schemeItem" :key="index">
|
|
<h3>
|
|
{{ item.title }}<br />
|
|
{{ item.title2 }}<br />
|
|
{{ item.title3 }}
|
|
</h3>
|
|
<router-link to="/details">
|
|
<button>详情></button>
|
|
</router-link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import environmentCarousel from '@/components/slideshow/environmentCarousel.vue'
|
|
export default {
|
|
name: 'HoMe',
|
|
components: {
|
|
environmentCarousel
|
|
},
|
|
data () {
|
|
return {
|
|
activeIndex: '2',
|
|
carouselItems: [
|
|
{
|
|
image: require('@/assets/images/1.jpg')
|
|
},
|
|
{
|
|
image: require('@/assets/images/2.jpg')
|
|
},
|
|
{
|
|
image: require('@/assets/images/3.jpg')
|
|
},
|
|
{
|
|
image: require('@/assets/images/4.jpg')
|
|
}
|
|
],
|
|
schemeItem: [
|
|
{
|
|
title: '市政污泥',
|
|
title2: '全流程处理方案',
|
|
title3: 'MUNICIPAL SLUDGE'
|
|
},
|
|
{
|
|
title: '河流湖泊',
|
|
title2: '黑臭水治理方案',
|
|
title3: 'RIVERS AND LAKES'
|
|
},
|
|
{
|
|
title: '垃圾渗滤液',
|
|
title2: '治理方案',
|
|
title3: 'LANDFILL LEACHATE'
|
|
},
|
|
{
|
|
title: '设备研发',
|
|
title2: '集成服务',
|
|
title3: 'EQUIPMENT R & D'
|
|
},
|
|
{
|
|
title: '移动式固液',
|
|
title2: '分离处理方案',
|
|
title3: 'SOLID LIQUOR SEPARATION'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less">
|
|
.scheme {
|
|
width: 1200px;
|
|
height: 700px;
|
|
margin: auto;
|
|
|
|
.details {
|
|
width: 300px;
|
|
height: 350px;
|
|
background: linear-gradient(to bottom right, red, yellow);
|
|
float: left;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.details::before {
|
|
background-image: url(../../../assets/images/shizheng.jpg);
|
|
}
|
|
|
|
.details::before,
|
|
.details:nth-child(2)::before,
|
|
.details:nth-child(3)::before,
|
|
.details:nth-child(4)::before,
|
|
.details:nth-child(5)::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-size: cover;
|
|
opacity: 0.5;
|
|
z-index: -1;
|
|
}
|
|
|
|
.details:nth-child(2) {
|
|
width: 600px;
|
|
background: linear-gradient(
|
|
to bottom right,
|
|
rgba(13, 223, 238, 0.87),
|
|
rgb(32, 230, 137)
|
|
);
|
|
}
|
|
|
|
.details:nth-child(2)::before {
|
|
background-image: url(../../../assets/images/heliu.jpg);
|
|
}
|
|
|
|
.details:nth-child(3) {
|
|
float: right;
|
|
margin-top: 150px;
|
|
background-color: rgb(0, 255, 0);
|
|
}
|
|
|
|
.details:nth-child(3)::before {
|
|
background-image: url(../../../assets/images/xunhuan.jpg);
|
|
}
|
|
|
|
.details:nth-child(4) {
|
|
margin-left: 300px;
|
|
background-color: palegreen;
|
|
}
|
|
|
|
.details:nth-child(4)::before {
|
|
background-image: url(../../../assets/images/shebei.webp);
|
|
}
|
|
|
|
.details:nth-child(5) {
|
|
background-color: palevioletred;
|
|
}
|
|
|
|
.details:nth-child(5)::before {
|
|
background-image: url(../../../assets/images/guye.webp);
|
|
}
|
|
|
|
h3 {
|
|
color: white;
|
|
|
|
padding: 30px;
|
|
}
|
|
|
|
button {
|
|
width: 100px;
|
|
height: 30px;
|
|
border: white;
|
|
color: aliceblue;
|
|
border-radius: 50px;
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
margin-left: 30px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
</style>
|