代码如下:
<view class="tabWarp">
<view wx:for="{
{tabList}}" wx:key="index" class="tabList {
{currentIndex == index ? 'activeStyle': ''}}" bindtap="tabClick" data-index="{
{index}}">{
{item}}</view>
</view>
<view class=
代码如下:
<view class="tabWarp">
<view wx:for="{
{tabList}}" wx:key="index" class="tabList {
{currentIndex == index ? 'activeStyle': ''}}" bindtap="tabClick" data-index="{
{index}}">{
{item}}</view>
</view>
<view class=