移风店大屏前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
2.0 KiB

2 years ago
<template>
1 year ago
<div class="map-legeng">
<div class="flex">
<div class="item" v-for="(item, index) in list" @click="setMapPoint" :key="index">
<img :src="item.imgSrc" alt="" />
<section>
<div>
<span :class="{ num: true, yellow: index === 4 }">{{
item.num
}}</span>
<span :class="{ units: true, yellow: index === 4 }">{{
item.units
}}</span>
</div>
<div class="name">{{ item.name }}</div>
</section>
</div>
2 years ago
</div>
1 year ago
</div>
2 years ago
</template>
<script>
export default {
1 year ago
data () {
return {
list: [
{
imgSrc: require('@/assets/images/map/legeng/qq.png'),
units: '家',
num: '10',
name: '育种企业'
},
{
imgSrc: require('@/assets/images/map/legeng/pz.png'),
units: '家',
num: '9',
name: '育苗企业'
},
{
imgSrc: require('@/assets/images/map/legeng/zz.png'),
units: '家',
num: '52',
name: '种植企业'
},
{
imgSrc: require('@/assets/images/map/legeng/sc.png'),
units: '家',
num: '30',
name: '加工企业'
}
]
}
},
created () {},
methods: {
setMapPoint () {
this.$EventBus.$emit('switcMapType', 'unit')
}
},
components: {},
computed: {},
watch: {}
2 years ago
}
</script>
<style lang="scss" scoped>
.flex {
1 year ago
@include flex(column);
width: 100%;
justify-content: space-around;
2 years ago
1 year ago
.item {
@include flex();
margin-top: 20px;
img {
width: 48px;
height: 40px;
margin-right: 8px;
align-items: center;
}
2 years ago
1 year ago
section {
@include flex(column);
2 years ago
1 year ago
.name {
color: #acbbd4;
font-size: 14px;
}
2 years ago
1 year ago
.num {
font-family: pangmenzhengdao;
color: #ffffff;
}
2 years ago
1 year ago
.units {
font-size: 16px;
color: #869db8;
margin-left: 5px;
}
2 years ago
}
1 year ago
}
2 years ago
}
1 year ago
</style>