liiistem-miniapp/custom-tab-bar/index.wxml

36 lines
1.8 KiB
Text
Raw Normal View History

2025-09-16 13:41:49 +08:00
<view class="tabline">
<t-tab-bar value="{{active}}" bindchange="onChange" split="{{false}}">
<t-tab-bar-item wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class="{{'custom-tab-bar-wrapper ' + ('tab' + index) + ' ' + (index == active ? 'cur' : '')}}">
<t-icon prefix="wr" name="{{item.icon}}" size="40rpx" />
<view class="text">{{ item.text }}</view>
</view>
</t-tab-bar-item>
<!-- <t-tab-bar-item>
<view class="{{'custom-tab-bar-wrapper ' + ('tab' + 0) + ' ' + (0 == active ? 'cur' : '')}}">
<t-icon prefix="wr" name="{{list[0].icon}}" size="40rpx" />
<view class="text">{{ list[0].text }}</view>
</view>
</t-tab-bar-item>
<t-tab-bar-item wx:if="{{is_share}}">
<view class="{{'custom-tab-bar-wrapper ' + ('tab' + 1) + ' ' + (1 == active ? 'cur' : '')}}">
<t-icon prefix="wr" name="{{list[1].icon}}" size="40rpx" />
<view class="text">{{ list[1].text }}</view>
</view>
</t-tab-bar-item>
<t-tab-bar-item>
<view class="{{'custom-tab-bar-wrapper ' + ('tab' + 2) + ' ' + (2 == active ? 'cur' : '')}}">
<t-icon prefix="wr" name="{{list[2].icon}}" size="40rpx" />
<view class="text">{{ list[2].text }}</view>
</view>
</t-tab-bar-item> -->
<!-- <view class="camera" bind:tap="goTakePhoto" wx:if="{{hasPhone}}">
<t-image loading=" " mode="aspectFill" src="{{cdnHost + '/static/camera.png?v=5'}}" width="29" height="23" />
<view class="txt">发现</view>
</view>
<button open-type="getPhoneNumber" class="camera" bindgetphonenumber="getPhoneNumber" wx:else>
<t-image loading=" " mode="aspectFill" src="{{cdnHost + '/static/camera.png?v=5'}}" width="29" height="23" />
<view class="txt">发现</view>
</button> -->
</t-tab-bar>
</view>