parent
969d7ed0ea
commit
b36fa7e5be
@ -1,13 +1,13 @@
|
||||
<view class="tabbar_box {{isIphoneX?'iphoneX-height':''}}" :style="'background-color:{{tabbar.backgroundColor}}'">
|
||||
<block wx:for="{{tabbar.list}}" wx:key="{{item.pagePath}}">
|
||||
<navigator wx:if="{{item.isSpecial}}" class="tabbar_nav" hover-class="none" url="{{item.pagePath}}" :style="'color:{{tabbar.selectedColor}}'" open-type="navigate">
|
||||
<view class='special-wrapper'><image class="tabbar_icon" src="{{item.iconPath}}"></image></view>
|
||||
<image class='special-text-wrapper'></image>
|
||||
<text>{{item.text}}</text>
|
||||
</navigator>
|
||||
<navigator wx:else class="tabbar_nav" hover-class="none" url="{{item.pagePath}}" :style="'color:{{item.selected ? tabbar.selectedColor : tabbar.color}}'" open-type="switchTab">
|
||||
<image class="tabbar_icon" :src="{{item.selected ? item.selectedIconPath : item.iconPath}}"></image>
|
||||
<text>{{item.text}}</text>
|
||||
</navigator>
|
||||
</block>
|
||||
</view>
|
||||
<view class="tabbar_box {{isIphoneX?'iphoneX-height':''}}" style="background-color:{{tabbar.backgroundColor}}">
|
||||
<block wx:for="{{tabbar.list}}" wx:key="{{item.pagePath}}">
|
||||
<navigator wx:if="{{item.isSpecial}}" class="tabbar_nav" hover-class="none" url="{{item.pagePath}}" style="color:{{tabbar.selectedColor}}" open-type="navigate">
|
||||
<view class='special-wrapper'><image class="tabbar_icon" src="{{item.iconPath}}"></image></view>
|
||||
<image class='special-text-wrapper'></image>
|
||||
<text>{{item.text}}</text>
|
||||
</navigator>
|
||||
<navigator wx:else class="tabbar_nav" hover-class="none" url="{{item.pagePath}}" style="color:{{item.selected ? tabbar.selectedColor : tabbar.color}}" open-type="switchTab">
|
||||
<image class="tabbar_icon" src="{{item.selected ? item.selectedIconPath : item.iconPath}}"></image>
|
||||
<text>{{item.text}}</text>
|
||||
</navigator>
|
||||
</block>
|
||||
</view>
|
Loading…
Reference in new issue