移风店大屏前端
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.

78 lines
2.0 KiB

2 years ago
<template>
<div class="map-legeng">
<div class="flex">
<div class="item" v-for="(item, index) in list" :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>
</div>
</div>
</template>
<script>
export default {
data() {
return {
list: [
{ imgSrc: require('@/assets/images/map/legeng/qq.png'), units: '家', num: '100', name: '引进育种企业' },
{ imgSrc: require('@/assets/images/map/legeng/pz.png'), units: '种', num: '990', name: '培育优质品种' },
{ imgSrc: require('@/assets/images/map/legeng/zz.png'), units: '亿元', num: '5.2', name: '种子年销售额' },
{ imgSrc: require('@/assets/images/map/legeng/sc.png'), units: '万吨', num: '30', name: '蔬菜类产量' },
]
};
},
created() { },
methods: {},
components: {},
computed: {},
watch: {},
}
</script>
<style lang="scss" scoped>
.flex {
2 years ago
@include flex(column);
2 years ago
width: 100%;
justify-content: space-around;
.item {
2 years ago
@include flex();
2 years ago
margin-top: 20px;
img {
width: 48px;
height: 40px;
margin-right: 8px;
align-items: center;
}
section {
2 years ago
@include flex(column);
2 years ago
.name {
color: #ACBBD4;
font-size: 14px;
}
.num {
font-family: pangmenzhengdao;
color: #FFFFFF;
}
.units {
font-size: 16px;
color: #869DB8;
margin-left: 5px;
}
}
}
}
</style>