Commit b519bdb6 by 前端

commit

1 parent bce94443
<template>
<div class="overview flex">
<div class="overview-store">
<div class="headline">
<div class="head-item" :style="{ width: item.width ? item.width : 'auto' }" v-for="(item, index) in titleList" :key="index">{{ item.text }}</div>
</div>
<div class="content">
<div :class="['content-item', 'flex', info.pd?info.pd:'']" v-for="(info, index) in infoList" :key="index">
<div class="content-title">{{ info.title }}</div>
<template v-for="(data, ids) in info.dataList">
<div :class="['content-number', 'num-' + ids]" :key="ids">1,287</div>
</template>
</div>
</div>
</div>
</div>
</template>
......@@ -11,7 +21,27 @@ import datas from '../../utils/data'
export default {
name: 'oversize',
data() {
return {}
return {
titleList: [{ text: '订阅门店' }, { text: '线索订阅门店数(累计)', width: '3.82vw' }, { text: '线索订阅门店数(当年新增)', width: '4.68vw' }, { text: '活跃使用门店' }, { text: '留存率' }],
infoList: [
{
title: '智慧门店线索订阅',
pd: 'pd26',
width: '2.78vw',
dataList: [obj => obj.totalnum, obj => obj.increnum, obj => obj.activenum, obj => obj.retention]
},
{
title: '门店会员的权益',
width: '2.78vw',
dataList: [obj => obj.totalnum, obj => obj.increnum, obj => obj.activenum, obj => obj.retention]
},
{
title: '智慧车管线索订阅',
width: '2.78vw',
dataList: [obj => obj.totalnum, obj => obj.increnum, obj => obj.activenum, obj => obj.retention]
}
]
}
},
mounted() {},
methods: {}
......@@ -23,7 +53,59 @@ export default {
margin: 10px 16px 16px 16px;
&-store {
width: 23.89vw;
height:30.73vh;
height: 30.73vh;
.headline {
height: 6.1vh;
opacity: 0.6;
background: #161c5f;
display: flex;
align-items: center;
justify-content: space-around;
.head-item {
font-weight: 600;
font-size: 10px;
color: #fff;
// white-space: nowrap;
}
}
}
.content {
width:100%;
&-item {
padding: 1.59vh 0.49vw 1.59vh 0.69vw;
background: #0b0e31;
margin-bottom: 0.49vh;
justify-content: space-around;
box-sizing: border-box;
}
&-title {
width: 2.78vw;
font-weight: 400;
font-size: 10px;
color: #fff;
// white-space: pre-wrap;
}
&-number {
font-weight: 700;
font-size: 12px;
color: #ffffff;
text-align:center ;
}
.num-0 {
width: 3.82vw;
}
.num-1 {
width: 4.68vw;
}
.num-2 {
width: 4.68vw;
}
.num-3 {
width: 2.29vw;
}
.pd26 {
padding: 3.17vh 0.49vw 3.17vh 0.69vw;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!