30 lines
2.0 KiB
Plaintext
30 lines
2.0 KiB
Plaintext
<!--components/tabbar/tabbar.wxml-->
|
|
<!-- 调度员 -->
|
|
<view class="tabbar" style="bottom: {{isIPX ? '68rpx' : ''}}" wx:if="{{type == 'dis'}}">
|
|
<block wx:for="{{tabbarListDis}}" wx:for-item="item" wx:key="tabBar">
|
|
<!-- 授权按钮 -->
|
|
<button class="tabbar-item" open-type="getUserInfo" data-url="{{item.pagePath}}" bindgetuserinfo="getUserInfo" wx:if="{{index == (tabbarListDis.length - 1)}}">
|
|
<image class="icon" src='{{item.index == currentIndex ? item.selectedIconPath : item.iconPath}}'></image>
|
|
<view class="text {{item.index == currentIndex ? 'tabbar-text' :''}}">{{item.text}}</view>
|
|
</button>
|
|
<button class="tabbar-item" data-url="{{item.pagePath}}" data-index="{{item.index}}" data-currentindex="{{currentIndex}}" bindtap="switchTab" wx:else>
|
|
<image class="icon" src='{{item.index == currentIndex ? item.selectedIconPath : item.iconPath}}'></image>
|
|
<view class="text {{item.index == currentIndex ? 'tabbar-text' :''}}">{{item.text}}</view>
|
|
</button>
|
|
</block>
|
|
</view>
|
|
<!-- 司机 -->
|
|
<view class="tabbar" style="bottom: {{isIPX ? '68rpx' : '0'}}" wx:else>
|
|
<block wx:for="{{tabbarListDri}}" wx:for-item="item" wx:key="tabBar">
|
|
<!-- 授权按钮 -->
|
|
<button class="tabbar-item" open-type="getUserInfo" data-url="{{item.pagePath}}" bindgetuserinfo="getUserInfo" wx:if="{{index == (tabbarListDri.length - 1)}}">
|
|
<image class="icon" src='{{item.index == currentIndex ? item.selectedIconPath : item.iconPath}}'></image>
|
|
<view class="text {{item.index == currentIndex ? 'tabbar-text' :''}}">{{item.text}}</view>
|
|
</button>
|
|
<button class="tabbar-item" data-url="{{item.pagePath}}" data-index="{{item.index}}" data-currentindex="{{currentIndex}}" bindtap="switchTab" wx:else>
|
|
<image class="icon" src='{{item.index == currentIndex ? item.selectedIconPath : item.iconPath}}'></image>
|
|
<view class="text {{item.index == currentIndex ? 'tabbar-text' :''}}">{{item.text}}</view>
|
|
</button>
|
|
</block>
|
|
</view>
|