Commit 02ec847c by 李伟康

commit 修改样式

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