? ? ? ?&:not(:nth-child(4)) {
? ? ? ? ? ? margin-right: 26rpx;
? ? ? ? ? }
<!-- 运输方式(选填) -->
<view class="optional_item_jiaoCangDi">
<view class="jiaoCangDi_title">运输方式(选填)</view>
<view class="jiaoCangDi_item">
<label
class="jiaoCangDi_item_label"
v-for="(item2, index2) in channelTypeOptions"
@click="jiaoCangDiItemTap(item, index1, 1)"
:class="{ jiaoCangDi_active: channelTypeActive === index2 }"
:key="index2"
>{{ item2.info }}</label
>
</view>
</view>
.jiaoCangDi_item {
display: flex;
flex-wrap: wrap;
.jiaoCangDi_item_label {
width: 144rpx;
height: 64rpx;
text-align: center;
line-height: 64rpx;
background: #f1f3f5;
border-radius: 8rpx 8rpx 8rpx 8rpx;
font-size: 26rpx;
color: #5b5b5b;
margin-bottom: 24rpx;
&:not(:nth-child(4)) {
margin-right: 26rpx;
}
&.jiaoCangDi_active {
background: #ffce00;
font-weight: 700;
}
}
}