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

19 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-03-24 11:24:28 +08:00
<view class="tabbar_outbox {{isIpx?'pb20':''}}" >
<view class="tabbar_box {{isIpx?'isIpx':''}} {{isAndroid8?'isAndroid8':''}}" style ="/*background-color:{{tabbar.backgroundColor}} */">
<block wx:for="{{tabbar.list}}" wx:key="id">
<navigator wx:if="{{index!=2}}" class="tabbar_nav" hidden="{{open_tabbar_type==0&&index==1}}" hover-class="none" url="{{item.pagePath}}" style="color:{{item.selected ? tabbar.selectedColor : tabbar.color}}" open-type="switchTab">
<view class='tabbar_icon' data-num="{{cartNum}}">
<image class='img' src="{{item.selected ? item.selectedIconPath : item.iconPath}}"></image>
<view class="cart-num" wx:if="{{cartNum && index==3}}">{{cartNum}}</view>
</view>
<text>{{item.text}}</text>
</navigator>
<view wx:else class="tabbar_nav" hidden="{{open_tabbar_out_weapp==0&&index==2}}" style="color:{{item.selected ? tabbar.selectedColor : tabbar.color}}" bindtap='goWeapp'>
<view class='tabbar_icon'>
<image class='img' src="{{item.selected ? item.selectedIconPath : item.iconPath}}"></image>
</view>
<text>{{item.text}}</text>
</view>
</block>
</view>
</view>