52 lines
800 B
SCSS
52 lines
800 B
SCSS
.tab-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 100rpx;
|
|
display: flex;
|
|
background: #fff;
|
|
border-top: 1rpx solid #f5f5f5;
|
|
z-index: 999;
|
|
|
|
.tab-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.icon {
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
background: #ddd;
|
|
margin-bottom: 6rpx;
|
|
}
|
|
|
|
.text {
|
|
font-size: 22rpx;
|
|
color: #666;
|
|
}
|
|
|
|
.active .text {
|
|
color: #07c160;
|
|
}
|
|
|
|
.badge {
|
|
position: absolute;
|
|
top: 10rpx;
|
|
right: 30rpx;
|
|
min-width: 36rpx;
|
|
height: 36rpx;
|
|
line-height: 36rpx;
|
|
border-radius: 18rpx;
|
|
background: #f74c31;
|
|
color: #fff;
|
|
font-size: 20rpx;
|
|
text-align: center;
|
|
padding: 0 8rpx;
|
|
}
|
|
}
|