chore:二级分类按钮点击一会能切一会不能切

This commit is contained in:
2026-07-18 08:58:52 +08:00
parent a4d8023e1f
commit ac8c461546

View File

@@ -2242,6 +2242,7 @@ export default {
flex: 1;
height: 0;
transform: translateX(0px);
margin-top: -50rpx;
}
}
@@ -2258,7 +2259,7 @@ export default {
.screen-category {
flex: 1;
width: 0;
padding: 0 0 20rpx 0;
padding: 0 0 10rpx 0;
white-space: nowrap;
height: 60rpx;
@@ -2268,7 +2269,7 @@ export default {
background: #f5f5f5;
color: #666;
margin-right: 20rpx;
border-radius: 40rpx;
border-radius: 8rpx;
&.selected {
background-color: $base-color;
@@ -2337,14 +2338,17 @@ export default {
}
.screen-category-4 .item {
background-color: #f2f2f2 !important;
padding: 10rpx 24rpx;
background-color: #fff !important;
padding: 16rpx 40rpx;
line-height: 1;
font-size: $font-size-tag;
font-size: 28rpx;
border: 1rpx solid #eee;
border-radius: 12rpx !important;
&.selected {
background-color: var(--main-color-shallow) !important;
color: var(--main-color);
background-color: $base-color !important;
color: #fff;
border-color: $base-color;
}
}