Commit ac4bd30c by 前端

commit

1 parent 88b4464e
<template> <template>
<div class="tabs box"> <div class="tabs flex box">
<div class="tab"> <div class="tab" v-for="item in tabs" :key="item.key">
<div class="tab-title">{{ item.title }}</div>
</div> <div class="tab-text">2,174443</div>
</div>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
const tabs = [
{
title: '企微客户',
key: 'wechat'
},
{
title: '企微群数',
key: 'wechatGroup'
},
{
title: '小程序客户数',
key: 'applet'
},
{
title: '公众号客户数',
key: 'publiccus'
}
]
import * as echarts from 'echarts' import * as echarts from 'echarts'
export default { export default {
name: 'ViewTabs', name: 'ViewTabs',
data() { data() {
return {} return {
tabs: [
{
title: '总门店数',
key: 'wechat'
},
{
title: '当年新增',
key: 'wechatGroup'
},
{
title: '总门店数',
key: 'applet'
},
{
title: '总门店数',
key: 'publiccus'
}
]
}
}, },
mounted() {}, mounted() {},
methods: {} methods: {}
...@@ -39,7 +40,22 @@ export default { ...@@ -39,7 +40,22 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.tabs { .tabs {
margin:1.22vh 0 0.98vh 0; margin: 1.22vh 2.78vw 0.98vh 2.78vw;
height:6.95vh; height: 6.95vh;
justify-content: space-between;
.tab {
margin:0.61vh 0;
.tab-title {
font-weight: 400;
font-size: 12px;
color: #e8e8e8;
}
.tab-text {
font-weight: 700;
font-size: 24px;
color: #6578ff;
line-height: 30px;
}
}
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!