Commit 3f388a5f by 胡悦

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

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