82 lines
1.9 KiB
Vue
82 lines
1.9 KiB
Vue
<template>
|
|
<div>
|
|
<div class="bom">
|
|
<div class="bomList" v-for="(item, index) in list" :key="index">
|
|
<div class="bomLeft">
|
|
<img :src="item.img" alt="" />
|
|
</div>
|
|
<div class="bomRigtht">
|
|
<p>{{ item.name }}</p>
|
|
<p>
|
|
<span class="span1">{{ item.num }}</span>
|
|
<span class="span2">{{ item.percent }}</span>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
list: [
|
|
{ name: '种子使用', num: 171, percent: '吨', img: require('../img/10.png') },
|
|
{ name: '农药使用', num: 224.26, percent: '吨', img: require('../img/11.png') },
|
|
{ name: '化肥使用', num: 41650, percent: '吨', img: require('../img/12.png') },
|
|
{ name: '饲料', num: 615148, percent: '吨', img: require('../img/13.png') },
|
|
{ name: '兽药', num: 805.092, percent: '吨', img: require('../img/14.png') },
|
|
{ name: '农机使用', num: 18170, percent: '台', img: require('../img/15.png') },
|
|
],
|
|
};
|
|
},
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.bom {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-top: 10px;
|
|
.bomList {
|
|
width: 33%;
|
|
display: flex;
|
|
margin-top: 28px;
|
|
.bomLeft {
|
|
img {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
.bomRigtht {
|
|
p:nth-child(1) {
|
|
font-size: 18px;
|
|
color: #ccc;
|
|
margin: 0;
|
|
margin-top: 10px;
|
|
}
|
|
p:nth-child(2) {
|
|
font-size: 16px;
|
|
color: #ccc;
|
|
margin: 0;
|
|
margin-top: 5px;
|
|
}
|
|
.span1 {
|
|
font-size: 20px;
|
|
color: #ccefff;
|
|
}
|
|
.span2 {
|
|
font-size: 10px;
|
|
color: #99afbf;
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
}
|
|
.bomList:nth-child(4),
|
|
.bomList:nth-child(5),
|
|
.bomList:nth-child(6) {
|
|
margin-top: 32px;
|
|
}
|
|
}
|
|
</style>
|