94 lines
1.7 KiB
Vue
94 lines
1.7 KiB
Vue
<template>
|
|
<div class="summary14">
|
|
<div class="summary14-item" v-for="(item, index) in data" :class="'summary14-item' + (index + 1)" :key="index" v-if="index < 4">
|
|
<h2>{{ item[keys] }}</h2>
|
|
<p>{{ item[value] }}</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'summary14',
|
|
|
|
props: {
|
|
data: {
|
|
type: Array,
|
|
default: () => []
|
|
},
|
|
|
|
keys: {
|
|
type: String,
|
|
default: 'key'
|
|
},
|
|
|
|
value: {
|
|
type: String,
|
|
default: 'value'
|
|
}
|
|
},
|
|
|
|
data () {
|
|
return {
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.summary14 {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
div {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.summary14-item {
|
|
display: flex;
|
|
position: relative;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
width: 116px;
|
|
height: 80px;
|
|
text-align: center;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
background: url(../asset/Summary14-1.png) no-repeat bottom;
|
|
background-size: 116px 68px;
|
|
|
|
|
|
&.summary14-item2 {
|
|
background: url(../asset/Summary14-2.png) no-repeat bottom;
|
|
background-size: 116px 68px;
|
|
}
|
|
|
|
&.summary14-item3 {
|
|
background: url(../asset/Summary14-3.png) no-repeat bottom;
|
|
background-size: 116px 68px;
|
|
}
|
|
|
|
h2 {
|
|
line-height: 20px;
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
font-weight: normal;
|
|
}
|
|
|
|
p {
|
|
color: #ffffff;
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
</style>
|