97 lines
1.8 KiB
Vue
97 lines
1.8 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">
|
|
<p>{{ item[value] }}</p>
|
|
<h2>{{ item[keys] }}</h2>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Summary15',
|
|
|
|
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;
|
|
justify-content: space-between;
|
|
flex-direction: column;
|
|
width: 116px;
|
|
height: 98px;
|
|
text-align: center;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
background: url(../asset/ic1-15.png) no-repeat;
|
|
background-position: center 14px;
|
|
background-size: 64px 58px;
|
|
|
|
|
|
&.summary14-item2 {
|
|
background: url(../asset/ic2-15.png) no-repeat;
|
|
background-position: center 14px;
|
|
background-size: 64px 58px;
|
|
}
|
|
|
|
&.summary14-item3 {
|
|
background: url(../asset/ic3-15.png) no-repeat;
|
|
background-position: center 14px;
|
|
background-size: 64px 58px;
|
|
}
|
|
|
|
h2 {
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
font-weight: normal;
|
|
}
|
|
|
|
p {
|
|
color: #ffffff;
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
</style>
|