Commit b7412606 by 胡悦

提交

1 parent 04b63841
...@@ -150,3 +150,11 @@ img { ...@@ -150,3 +150,11 @@ img {
width:13.26vw; width:13.26vw;
background: #071735; background: #071735;
} }
.patch-title {
width: 7.5vw;
height: 2.22vh;
background-image: linear-gradient(269deg, #5663ff00 10%, #6578ffd4 49%, #079FF1 100%);
color: #fff;
line-height: 2.22vh;
padding-left: 0.83vw;
}
\ No newline at end of file \ No newline at end of file
...@@ -3,15 +3,22 @@ ...@@ -3,15 +3,22 @@
<box-title title="数字化管理"></box-title> <box-title title="数字化管理"></box-title>
<Tab class="tab" :list="tabList" :width="25.5" :itemWidth="9" @changeTab="changeTab"></Tab> <Tab class="tab" :list="tabList" :width="25.5" :itemWidth="9" @changeTab="changeTab"></Tab>
<div class="digital-manager-box-content"> <div class="digital-manager-box-content">
<StatisticsBox :list="digitalMarketingList"></StatisticsBox> <components :is="tabName"></components>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import ViewClue from './components/ViewClue.vue'
import ViewIntersts from './components/ViewIntersts.vue'
import ViewEdun from './components/ViewEdun.vue'
export default { export default {
name: 'InternalRight', name: 'InternalRight',
components: {
ViewClue,
ViewIntersts,
ViewEdun
},
data() { data() {
return { return {
tabList: ['线索服务', '会员权益', '车管(虎哥E盾)'], tabList: ['线索服务', '会员权益', '车管(虎哥E盾)'],
...@@ -77,6 +84,23 @@ export default { ...@@ -77,6 +84,23 @@ export default {
} }
}, },
computed: {
tabName() {
let sname
switch (this.activeName) {
case 0:
sname = 'ViewClue'
break
case 1:
sname = 'ViewIntersts'
break
case 2:
sname = 'ViewEdun'
break
}
return sname
}
},
mounted() {}, mounted() {},
methods: { methods: {
......
<template>
<div>
<StatisticsBox :list="digitalMarketingList"></StatisticsBox>
<div class="trend-box">
<div class="patch-title">注册门店趋势</div>
</div>
</div>
</template>
<script>
export default {
name: 'InternalRight',
data() {
return {
digitalMarketingList: [
{
name: '注册门店总数',
valueName: 'count',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'outputvalueTb',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'outputvalueHb',
ratioRightValue: '0'
},
{
name: '活跃门店总数',
valueName: 'countvalue',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'outputvalueTb',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'outputvalueHb',
ratioRightValue: '0'
},
{
name: '设备订阅数量总数',
valueName: 'count',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'outputvalueTb',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'outputvalueHb',
ratioRightValue: '0'
},
{
name: '总收入',
valueName: 'countvalue',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'outputvalueTb',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'outputvalueHb',
ratioRightValue: '0'
}
]
}
}
}
</script>
<style lang="scss">
.trend-box {
margin-top: 0.89vh;
&:nth-child(1),
&:nth-child(2) {
margin-top: 1.78vh;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!