forked from develop/qwl-data-report-h5
zhaoguoqiang
3 years ago
5 changed files with 562 additions and 99 deletions
-
3src/store/user.js
-
63src/views/Home/home.vue
-
3src/views/PerformanceData/index.vue
-
210src/views/cityDistribution/index.vue
-
320src/views/dataOverview/index.vue
@ -1,13 +1,68 @@ |
|||
<template> |
|||
<div class="home"> |
|||
<div class="pp"> |
|||
66666666666666666666666666666666666666666666 |
|||
<div class="tabs"> |
|||
<van-tabs v-model="active" sticky> |
|||
<van-tab title="数据总览"> |
|||
<dataOverview></dataOverview> |
|||
</van-tab> |
|||
<van-tab title="业绩数据"> |
|||
<PerformanceData></PerformanceData> |
|||
</van-tab> |
|||
<van-tab title="城市分布"> |
|||
<cityDistribution></cityDistribution> |
|||
</van-tab> |
|||
</van-tabs> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import cityDistribution from '../cityDistribution/index.vue' |
|||
import dataOverview from '../dataOverview/index.vue' |
|||
import PerformanceData from '../PerformanceData/index.vue' |
|||
import { |
|||
Tab, |
|||
Tabs |
|||
} from 'vant'; |
|||
export default { |
|||
name: 'home', |
|||
data() { |
|||
return { |
|||
active: '数据总览', |
|||
} |
|||
}, |
|||
components: { |
|||
"van-tabs": Tabs, |
|||
"van-tab": Tab, |
|||
"PerformanceData": PerformanceData, |
|||
"dataOverview": dataOverview, |
|||
"cityDistribution": cityDistribution |
|||
}, |
|||
} |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
.pp{ |
|||
.tabs { |
|||
font-size: 36px; |
|||
height: 80px; |
|||
::v-deep .van-tabs__wrap{ |
|||
height: 90px; |
|||
padding-bottom: 10px; |
|||
} |
|||
::v-deep .van-tabs__nav--line{ |
|||
|
|||
background: rgba(63, 66, 85, 1); |
|||
} |
|||
::v-deep .van-tab__text--ellipsis{ |
|||
color: #ffff; |
|||
font-size: 28px; |
|||
height: 70px; |
|||
line-height: 70px; |
|||
} |
|||
::v-deep .van-tab--active{ |
|||
background: rgba(114, 158, 255, 0.1); |
|||
} |
|||
::v-deep .van-tabs__line{ |
|||
background-color:rgba(114, 158, 255, 1); |
|||
width: 33.667vw; |
|||
} |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue