武田小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
2.3 KiB

8 months ago
.tabbar {
padding: 0 0 calc(env(safe-area-inset-bottom) + 12rpx);
display: flex;
justify-content: space-between;
background-color: #fff;
box-shadow: 0rpx 3rpx 27rpx 0rpx rgba(40, 48, 49, 0.1);
.custom {
flex-shrink: 0;
position: relative;
width: 94rpx;
7 months ago
height: 64rpx;
8 months ago
.add {
position: absolute;
top: -42rpx;
width: 94rpx;
height: 94rpx;
}
8 months ago
.popup-tip {
padding: 22rpx 48rpx;
position: absolute;
top: -50rpx;
left: 50%;
transform: translate(-50%, -100%);
border-radius: 16rpx;
background-color: rgba(20, 21, 21, 0.76);
.content {
text-align: center;
font-size: 28rpx;
color: #fff;
white-space: nowrap;
line-height: 32rpx;
.plus {
font-size: 52rpx;
font-weight: bold;
}
}
.pt-footer {
margin-top: 16rpx;
display: flex;
align-items: center;
justify-content: center;
gap: 24rpx;
.cancel {
padding: 8rpx 28rpx;
font-size: 24rpx;
color: rgba(255, 255, 255, 1);
}
.ok {
padding: 8rpx 28rpx;
font-size: 24rpx;
color: rgba(20, 21, 21, 1);
line-height: 32rpx;
border-radius: 80rpx;
background-color: #fff;
}
}
&::after {
position: absolute;
content: '';
bottom: -10rpx;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-style: solid;
border-width: 12rpx 12rpx 0 12rpx;
border-color: rgba(20, 21, 21, 0.76) transparent transparent transparent;
}
}
8 months ago
}
.tab-item {
7 months ago
padding-top: 10rpx;
8 months ago
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.icon {
display: block;
width: 48rpx;
height: 48rpx;
}
.icon-active {
display: none;
width: 48rpx;
height: 48rpx;
}
.name {
margin-top: 8rpx;
font-size: 22rpx;
color: rgba(20, 21, 21, 1);
line-height: 21rpx;
}
&.active {
.icon {
display: none;
}
.icon-active {
display: block;
}
.name {
color: rgba(0, 180, 197, 1);
}
}
}
}