Commit b5c40703 by 前端

commit

1 parent 96c3cda3
<template> <template>
<div class="legend"> <div class="legend">
<div class="legend-item flex" v-for="(item, index) in dataList" :key="index"> <div class="legend-item flex" v-for="(item, index) in dataList" :key="index">
<span :style="{ background: colors[index] }"></span> <div class="icon" :style="{ background: colors[index] }"></div>
{{ item.name }} <div class="item-content">{{ item.name }}</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -52,7 +52,12 @@ export default { ...@@ -52,7 +52,12 @@ export default {
box-sizing: border-box; box-sizing: border-box;
margin: 2px 2px 2px 0; margin: 2px 2px 2px 0;
white-space: nowrap; white-space: nowrap;
span {
.item-content {
width: 2.5vw;
overflow: hidden;
}
.icon {
width: 5px; width: 5px;
height: 5px; height: 5px;
background: #bf98ff; background: #bf98ff;
......
...@@ -28,10 +28,10 @@ export default { ...@@ -28,10 +28,10 @@ export default {
title: '留存率', title: '留存率',
key: 'retention' key: 'retention'
}, },
{ // {
title: '单店产值', // title: '单店产值',
key: 'outputValue' // key: 'outputValue'
} // }
] ]
} }
}, },
......
...@@ -5,13 +5,15 @@ ...@@ -5,13 +5,15 @@
<div :style="{ width: item.width ? item.width : 'auto' }" v-for="(item, index) in titleList" :key="index">{{ item.text }}</div> <div :style="{ width: item.width ? item.width : 'auto' }" v-for="(item, index) in titleList" :key="index">{{ item.text }}</div>
</div> </div>
<div class="content"> <div class="content">
<div :class="['content-item', 'flex', info.pd ? info.pd : '']" v-for="(info, index) in infoList" :key="index"> <div :class="['content-item', 'flex-around', info.pd ? info.pd : '']" v-for="(info, index) in infoList" :key="index">
<div class="content-title">{{ info.title }}</div> <div class="content-title">{{ info.title }}</div>
<template v-for="(data, ids) in info.dataList"> <template v-for="(data, ids) in info.dataList">
<div v-if="ids != 3" :class="['content-number', 'num-' + ids]" :key="ids"> <div v-if="ids != 3" :class="['content-number', 'num-' + ids]" :key="ids">
{{ index == 0 ? numAddSymbol(data(smartClueData)) : index == 1 ? numAddSymbol(data(merchantData)) : numAddSymbol(data(smartData)) }} {{ index == 0 ? numAddSymbol(data(smartClueData)) : index == 1 ? numAddSymbol(data(merchantData)) : numAddSymbol(data(smartData)) }}
</div> </div>
<div v-else :class="['content-number', 'num-' + ids]" :key="ids">{{ index == 0 ? toFixNum(data(smartClueData)) : index == 1 ? toFixNum(data(merchantData)) : toFixNum(data(smartData)) }}</div> <div v-else :class="['content-number', 'num-' + ids]" :key="ids">
{{ index == 0 ? toFixNum(data(smartClueData)) : index == 1 ? toFixNum(data(merchantData)) : toFixNum(data(smartData)) }}
</div>
</template> </template>
</div> </div>
</div> </div>
...@@ -58,23 +60,23 @@ export default { ...@@ -58,23 +60,23 @@ export default {
merchantData: '', //门店会员的权益 merchantData: '', //门店会员的权益
smartData: '', // 智慧车管线索订阅 smartData: '', // 智慧车管线索订阅
smartClueData: '', //智慧门店线索订阅 smartClueData: '', //智慧门店线索订阅
titleList: [{ text: '订阅门店' }, { text: '线索订阅门店数(累计)', width: '3.82vw' }, { text: '线索订阅门店数(当年新增)', width: '4.68vw' }, { text: '活跃使用门店' }, { text: '留存率' }], titleList: [{ text: '订阅门店',width: '2.78vw' }, { text: '线索订阅门店数(累计)', width: '3.82vw' }, { text: '活跃使用门店', width: '4.95vw' }, { text: '留存率', width: '4.29vw' }],
infoList: [ infoList: [
{ {
title: '智慧门店线索订阅', title: '智慧门店线索订阅',
pd: 'pd26', pd: 'pd26',
width: '2.78vw', width: '2.78vw',
dataList: [obj => obj.totalnum, obj => obj.increnum, obj => obj.activenum, obj => obj.retention] dataList: [obj => obj.totalnum, obj => obj.activenum, obj => obj.retention]
}, },
{ {
title: '门店会员的权益', title: '门店会员的权益',
width: '2.78vw', width: '2.78vw',
dataList: [obj => obj.totalnum, obj => obj.increnum, obj => obj.activenum, obj => obj.retention] dataList: [obj => obj.totalnum, obj => obj.activenum, obj => obj.retention]
}, },
{ {
title: '智慧车管线索订阅', title: '智慧车管线索订阅',
width: '2.78vw', width: '2.78vw',
dataList: [obj => obj.totalnum, obj => obj.increnum, obj => obj.activenum, obj => obj.retention] dataList: [obj => obj.totalnum, obj => obj.activenum, obj => obj.retention]
} }
], ],
clewList: [ clewList: [
...@@ -137,7 +139,7 @@ export default { ...@@ -137,7 +139,7 @@ export default {
height: 30.73vh; height: 30.73vh;
} }
.clew { .clew {
width:11.11vw; width: 11.11vw;
height: 30.73vh; height: 30.73vh;
} }
.estimate { .estimate {
...@@ -149,12 +151,13 @@ export default { ...@@ -149,12 +151,13 @@ export default {
background: rgba(22, 28, 95, 0.6); background: rgba(22, 28, 95, 0.6);
font-weight: 600; font-weight: 600;
font-size: 10px; font-size: 10px;
color: #E8E8E8; color: #e8e8e8;
text-align: center;
} }
.content { .content {
width: 100%; width: 100%;
&-item { &-item {
padding: 1.59vh 0.49vw 1.59vh 0.69vw; padding: 1.59vh 0;
height: 6.83vh; height: 6.83vh;
background: #0b0e31; background: #0b0e31;
margin-bottom: 0.49vh; margin-bottom: 0.49vh;
...@@ -179,17 +182,14 @@ export default { ...@@ -179,17 +182,14 @@ export default {
width: 3.82vw; width: 3.82vw;
} }
.num-1 { .num-1 {
width: 4.68vw; width: 4.95vw;
} }
.num-2 { .num-2 {
width: 4.68vw; width: 4.29vw;
}
.num-3 {
width: 2.29vw;
} }
.pd26 { .pd26 {
height: 9.999vh; height: 9.999vh;
padding: 3.17vh 0.49vw 3.17vh 0.69vw; padding: 3.17vh 0;
} }
} }
.mgr4 { .mgr4 {
...@@ -213,7 +213,7 @@ export default { ...@@ -213,7 +213,7 @@ export default {
font-size: 12px; font-size: 12px;
color: #ffffff; color: #ffffff;
} }
&:last-child{ &:last-child {
border: none !important; border: none !important;
} }
} }
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
background: #061e19; background: #061e19;
.clew-line-text { .clew-line-text {
border-bottom: 1px solid #0a2d26; border-bottom: 1px solid #0a2d26;
height:6.83vh; height: 6.83vh;
} }
} }
.bg-2 { .bg-2 {
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
font-size: 12px; font-size: 12px;
color: #ffffff; color: #ffffff;
} }
&:last-child{ &:last-child {
border: none !important; border: none !important;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!