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

12 lines
780 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="background: #fff"></view>
</view>
</scroll-view>
<navigator url="/eaterplanet_ecommerce/moduleA/menu/subcate" hover-class="none" class="gototype" bindtap="goLink"><view class="image"></view></navigator>
</view>