You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
2.3 KiB
Vue

1 week ago
<template>
<div>
<TitleGroup>
<template slot="title">{{ data.productInfoEtitle }}</template>
<template slot="subTitle">{{ data.productInfoCtitle }}</template>
</TitleGroup>
<div class="list">
<div class="item" v-for="i in sortedList">
<div class="icon">
<el-image
style="width: 100%;height: 100%"
:src="i.productInfoDetailPic"
fit="contain"></el-image>
</div>
<div class="itemTitle">{{ i.productInfoDetailTitle }}</div>
<div class="itemInfo">{{ i.productInfoDetailDesc }}</div>
</div>
</div>
</div>
</template>
<script>
import TitleGroup from "@/components/TitleGroup";
import wlw from "@/assets/icon/wlw.png";
let map = null
export default {
name: 'PlatformFeatures',
props: ['data'],
components: {
TitleGroup
},
computed: {
sortedList() {
return this.data.hwProductInfoDetailList.slice().sort((a, b) => a.productInfoDetailOrder - b.productInfoDetailOrder);
}
},
data() {
return {
wlw
}
},
mounted() {
},
methods: {}
}
</script>
<style lang="less" scoped>
@import "~@/style.less";
.list {
width: 65vw;
display: inline-block;
margin-top: 3.8vw;
margin-bottom: 2.8vw;
box-shadow: 0 0 3px #0002;
.item {
display: inline-block;
position: relative;
width: calc(100% / 3 - 2px);
height: 13.3vw;
border: 1px solid #3332;
margin: 0;
overflow: hidden;
float: left;
transition: all 0.2s;
&:hover {
background-color: @standard-color;
.itemTitle {
color: #fff;
}
.itemInfo {
color: #eee;
}
}
.icon {
width: 2.3vw;
height: 2.3vw;
position: absolute;
top: 22%;
left: 50%;
transform: translate(-50%, -50%);
}
.itemTitle {
top: 42%;
left: 50%;
position: absolute;
transform: translate(-50%, -50%);
font-size: 1.1vw;
letter-spacing: 1px;
transition: all 0.2s;
}
.itemInfo {
top: 52.2%;
left: 9.6%;
position: absolute;
font-size: 0.8vw;
line-height: 1.5vw;
color: #666;
letter-spacing: 2.5px;
text-align: left;
width: 80%;
transition: all 0.2s;
}
}
}
</style>