Commit 02ec847c by 李伟康

commit 修改样式

1 parent a1546a24
......@@ -36,14 +36,10 @@
<view
v-for="(item, ind) in secondNav"
:key="ind"
class="tab-item"
:class="['tab-item',[secondIndex == ind ? 'active' : '']]"
@click="changeIndex(ind, 'secondIndex')"
>
<view
class="text"
:class="[secondIndex == ind ? 'active' : '']"
>{{ item }}</view
>
{{ item }}
</view>
</view>
<view class="product-list">
......@@ -234,29 +230,27 @@ export default {
margin-top: -48rpx;
border-radius: 48rpx;
.second-tab {
display: inline-flex;
width: fit-content;
display: flex;
background: #f2f2f2;
border-radius: 16rpx;
height: 84rpx;
height: 92rpx;
align-items: center;
margin-left: 64rpx;
margin-bottom: 48rpx;
padding: 4rpx;
box-sizing: border-box;
.tab-item {
display: inline-block;
height: 100%;
.text {
display: flex;
align-items: center;
margin: 4rpx;
width: auto;
height: 100%;
padding: 0 48rpx;
&.active {
background-color: #fff;
// margin: 4rpx 0;
border-radius: 16rpx;
height: calc(100% - 8rpx);
}
}
line-height: 88rpx;
padding: 0 48rpx;
box-sizing: border-box;
}
.active {
background-color: #fff;
// margin: 4rpx 0;
border-radius: 16rpx;
// height: calc(100% - 8rpx);
}
}
.product-list {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!