Commit 3f388a5f by 胡悦

style(SecondHandCar): 优化二手车组件样式布局

调整标题区域的布局和样式,使用容器包裹标题项
修改活动标题的颜色和背景样式,增加圆角效果
统一箭头图标的左右内边距
1 parent 93a717f9
...@@ -6,18 +6,38 @@ ...@@ -6,18 +6,38 @@
margin-bottom: 20rpx; margin-bottom: 20rpx;
.title-section { .title-section {
display: flex; // justify-content: center;
width: 380rpx;
height: 76rpx;
font-size: 28rpx; font-size: 28rpx;
font-weight: 400; font-weight: 400;
padding: 24rpx 32rpx 12rpx; padding: 16rpx 0;
margin-bottom: 20rpx; margin: 0 auto;
// border-radius: 38rpx;
overflow: hidden;
.title-container {
display: flex;
align-items: center;
width: calc(100% - 12rpx);
height: 100%;
background-color: #F8F9F9;
border-radius: 38rpx;
padding: 0 6rpx;
}
.title { .title {
color: #5A6066; display: flex;
margin-right: 40rpx; align-items: center;
&.active { justify-content: center;
width: 50%;
color: #323436; color: #323436;
text-align: center;
height: calc(100% - 12rpx);
// margin-right: 40rpx;
&.active {
color: #3666FE;
font-weight: 600; font-weight: 600;
background-color: #fff;
border-radius: 32rpx;
} }
} }
} }
...@@ -75,9 +95,11 @@ ...@@ -75,9 +95,11 @@
color: #666; color: #666;
.arrow-left { .arrow-left {
padding-left: 24rpx; padding-left: 24rpx;
padding-right: 24rpx;
} }
.arrow-right { .arrow-right {
padding-right: 24rpx; padding-right: 24rpx;
padding-left: 24rpx;
} }
} }
} }
......
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
<view class="second-hand-car" wx:if="{{usedCarFlag == 1}}"> <view class="second-hand-car" wx:if="{{usedCarFlag == 1}}">
<view class="header"> <view class="header">
<view class="title-section"> <view class="title-section">
<view class="title-container">
<block wx:for="{{menus}}" wx:key="index"> <block wx:for="{{menus}}" wx:key="index">
<text class="title {{item.index==current?'active':''}}" data-index="{{item.index}}" bind:tap="selectMenu">{{item.title}}</text> <view class="title {{item.index==current?'active':''}}" data-index="{{item.index}}" bind:tap="selectMenu">{{item.title}}</view>
</block> </block>
</view> </view>
</view>
<view class="tab-section"> <view class="tab-section">
<block wx:for="{{dateList}}" wx:key="index"> <block wx:for="{{dateList}}" wx:key="index">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!