This commit is contained in:
liuye
2022-01-18 09:35:10 +08:00
parent 647147f4de
commit b661481877

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="AppResidentFile"> <div class="AppResidentFile">
<u-tabbar v-model="currentTabBar" :list="lists" @change="changeTab" active-color="#3267F0" inactive-color="#C4CAD4" style="height: 0" class="u-tabbar"></u-tabbar>
<div class="currentTabBar0" v-if="currentTabBar == 0"> <div class="currentTabBar0" v-if="currentTabBar == 0">
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs> <u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
@@ -110,6 +108,13 @@
</AiCell> </AiCell>
</div> </div>
</div> </div>
<!-- <u-tabbar v-model="currentTabBar" :list="lists" @change="changeTab" active-color="#3267F0" inactive-color="#C4CAD4" class="u-tabbar"></u-tabbar> -->
<div class="tabs">
<div class="item" @click="changeTab(index)" v-for="(item, index) in lists" :key="index">
<img :src="currentTabBar == index ? item.selectedIconPath : item.iconPath" alt="" />
<p :class="currentTabBar == index ? 'color-3267F0' : ''">{{ item.text }}</p>
</div>
</div>
</div> </div>
</template> </template>
@@ -525,6 +530,7 @@ uni-page-body {
height: 100%; height: 100%;
.currentTabBar0 { .currentTabBar0 {
padding-bottom: 98px;
.peopleGroup, .peopleGroup,
.people { .people {
.topcard { .topcard {
@@ -598,6 +604,7 @@ uni-page-body {
.currentTabBar1 { .currentTabBar1 {
height: 100%; height: 100%;
padding-bottom: 98px;
background: #fff; background: #fff;
::v-deep .AiTopFixed { ::v-deep .AiTopFixed {
b.title { b.title {
@@ -614,7 +621,7 @@ uni-page-body {
::v-deep .mainPane { ::v-deep .mainPane {
background: #fff; background: #fff;
padding: 0 32px; padding: 0 32px 88px;
.AiCell { .AiCell {
flex-shrink: 0; flex-shrink: 0;
@@ -674,6 +681,7 @@ uni-page-body {
} }
.currentTabBar2 { .currentTabBar2 {
padding-bottom: 98px;
::v-deep .AiTopFixed { ::v-deep .AiTopFixed {
b.title { b.title {
color: #333; color: #333;
@@ -774,5 +782,35 @@ uni-page-body {
} }
} }
} }
.tabs {
width: 100%;
height: 98px;
background: #fff;
border-top: 1px solid #ddd;
position: fixed;
bottom: 0;
left: 0;
display: flex;
.item {
flex: 1;
text-align: center;
img {
width: 56px;
height: 56px;
margin-top: 8px;
}
p {
font-size: 22px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #c4cad4;
line-height: 8px;
}
.color-3267F0 {
color: #3267f0;
}
}
}
} }
</style> </style>