筛选tab改为纵向排列
This commit is contained in:
@@ -113,13 +113,14 @@
|
|||||||
</label>
|
</label>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 底部按钮 -->
|
||||||
|
<view class="filter-footer">
|
||||||
|
<button class="footer-btn clear-btn" @click="handleClear">清除</button>
|
||||||
|
<button class="footer-btn confirm-btn" @click="handleConfirm">确认</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 底部按钮 -->
|
|
||||||
<view class="filter-footer">
|
|
||||||
<button class="footer-btn clear-btn" @click="handleClear">清除</button>
|
|
||||||
<button class="footer-btn confirm-btn" @click="handleConfirm">确认</button>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -217,8 +218,8 @@ const handleClose = () => {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
padding-top: 84rpx;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-header {
|
.filter-header {
|
||||||
@@ -255,33 +256,40 @@ const handleClose = () => {
|
|||||||
|
|
||||||
.filter-tabs {
|
.filter-tabs {
|
||||||
display: flex;
|
display: flex;
|
||||||
border-bottom: 1rpx solid #eee;
|
flex-direction: column;
|
||||||
background-color: #fff;
|
width: 250rpx;
|
||||||
box-shadow: 0 3rpx 15rpx rgba(0, 0, 0, 0.05);
|
border-right: 1rpx solid #eee;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
box-shadow: 3rpx 0 15rpx rgba(0, 0, 0, 0.05);
|
||||||
|
height: 100vh;
|
||||||
|
padding-top: 84rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
.tab-item {
|
.tab-item {
|
||||||
flex: 1;
|
height: 130rpx;
|
||||||
height: 135rpx;
|
line-height: 130rpx;
|
||||||
line-height: 135rpx;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 45rpx;
|
font-size: 42rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
border-bottom: 1rpx solid #f0f0f0;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
color: #256BFA;
|
color: #256BFA;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 3rpx 0 10rpx rgba(37, 107, 250, 0.1);
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
right: 0;
|
||||||
left: 25%;
|
top: 25%;
|
||||||
width: 50%;
|
width: 6rpx;
|
||||||
height: 6rpx;
|
height: 50%;
|
||||||
background-color: #256BFA;
|
background-color: #256BFA;
|
||||||
border-radius: 3rpx;
|
border-radius: 3rpx 0 0 3rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,11 +301,18 @@ const handleClose = () => {
|
|||||||
|
|
||||||
.filter-content {
|
.filter-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 60rpx 48rpx;
|
padding: 60rpx 0rpx;
|
||||||
overflow-y: auto;
|
// overflow-y: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding-top: 100rpx;
|
||||||
|
padding-bottom: 160rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-section {
|
.content-section {
|
||||||
|
padding: 0 4%;
|
||||||
|
overflow-y: auto;
|
||||||
.radio-item {
|
.radio-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -365,23 +380,25 @@ const handleClose = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.filter-footer {
|
.filter-footer {
|
||||||
height: 240rpx;
|
height: 200rpx;
|
||||||
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
border-top: 1rpx solid #eee;
|
border-top: 1rpx solid #eee;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
box-shadow: 0 -3rpx 15rpx rgba(0, 0, 0, 0.05);
|
box-shadow: 0 -3rpx 15rpx rgba(0, 0, 0, 0.05);
|
||||||
padding: 30rpx 48rpx 150rpx;
|
padding: 30rpx 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
position: relative;
|
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
margin-top: auto;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
.footer-btn {
|
.footer-btn {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin: 0;
|
margin: 0 40rpx;
|
||||||
border-radius: 24rpx;
|
border-radius: 24rpx;
|
||||||
height: 120rpx;
|
height: 100rpx;
|
||||||
line-height: 120rpx;
|
line-height: 100rpx;
|
||||||
font-size: 48rpx;
|
font-size: 45rpx;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user