2023-03-06 17:57:39 +08:00

37 lines
1.5 KiB
Plaintext

<!-- <view class="nav-tabs" wx:if="{{tabBarShow}}">
<view class="tab-list {{currentTab == idx ? 'active' : 'default' }}" wx:for="{{items}}" wx:key="prototype" wx:for-index="idx" wx:for-item="item" data-current="{{idx}}" data-url="{{item.pagePath}}" bindtap="swichNav">
<text class="tab-text" wx:for-index="idx" data-current="{{idx}}" src="{{currentTab == idx ? item.selectedIconPath : item.iconPath }}">{{item.text}}</text>
<image class="iconPath" wx:for-index="idx" data-current="{{idx}}" src="{{currentTab == idx ? item.selectedIconPath : item.iconPath }}"></image>
</view>
</view> -->
<van-tabbar active="{{ active }}" bind:change="onChange">
<van-tabbar-item info="3" data-url="{{item.pagePath}}" url="{{item.pagePath}}" wx:for="{{items}}">
<image
slot="icon"
src="{{ item.iconPath }}"
data-url="{{ item.pagePath }}"
mode="aspectFit"
style="width: 30px; height: 18px;"
/>
<image
slot="icon-active"
src="{{ item.selectedIconPath }}"
mode="aspectFit"
style="width: 30px; height: 18px;"
data-url="{{ item.pagePath }}"
/>
{{item.text}}
</van-tabbar-item>
</van-tabbar>
<t-dialog
visible="{{ dialog_visible }}"
title="温馨提示"
content="{{dialog_content}}"
>
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelDialog">
取消
</view>
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog">
确定
</view>
</t-dialog>