EP-WachatApp/eaterplanet_ecommerce/components/tabs/index.wxml

10 lines
705 B
Plaintext
Raw Normal View History

2023-03-24 11:24:28 +08:00
<view class="tabs i-class">
<scroll-view scrollWithAnimation scroll-x="true" scroll-y="false" class="tabs__navs" scrollLeft="{{scrollLeft}}">
<view class="tabs__navs__wrap">
<view bindtap="handleTabItemTap" class="tabs__nav tav__nav__{{index}} {{index===activeIndex?'active':''}}" data-id="{{tabItem.id}}" data-index="{{index}}" style="color: {{index===activeIndex?fontColor:'#FFF'}}" wx:for="{{tabs}}" wx:for-item="tabItem" wx:key="id">{{tabItem.name}}</view>
<view animation="{{indicatorAnamationData}}" class="activeIndicator" style="{{lineBgColor}}"></view>
</view>
</scroll-view>
<view class="gototype" bindtap="goLink"><view class="image"> </view>分类</view>
</view>