<view class="tabs_top"
v-bind:class="[(tabIndex == 0 && focusActive == true )||tabIndex==2?'foucs_on':'',
(tabIndex == 0 && focusActive != true)?'foucs_out':''
]">
<view class="index-top" :style="{height:statusBarHeight+'px'}" />
<view class="tabs_top_detail">
<view class="tabs_line_left">
<image src="@/static/homeModule/leftLine.png" alt="" class="img" />
</view>
<view class="tabs_detail" v-for="(item, index) in tabsList" :key="item.name + index">
<view class="tabs_item" @click="changeIndex(index)">
<text class="tabs_item_text" :class="{ active_tabs: tabIndex == index }">
{{ item.name }}
</text>
</view>
<view class="tabs_item_line" v-if="tabIndex == index"></view>
</view>
<view class="tabs_line_right">
<image src="@/static/homeModule/rightLine.png" alt="" class="img" />
</view>
<view class="meta_shop_search">
<image src="@/static/homeModule/search.png" alt="" @click="searchValue" class="img" />
</view>
</view>
</view>
<style>
.tabs_top {
position: absolute;
width: 750rpx;
padding-bottom: 18px;
top: 0;
justify-content: center;
align-items: center;
&.foucs_on {
background-color: #1d3332;
}
&.foucs_out {
background-color: transparent;
transition: background-color .5s ease-in-out;
}
}
</style>