<!--component/bottomTabs/bottomTabs.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<wxs src="./handlerData.wxs" module="tools" />
<view class='bgc fixed-bottom0' style="background-color:#FFF;background-image:url({{tabBar.num == 4 ? '': '/assets/imgs/7_1_0/bg.png'}});" wx:if="{{tabBar.num == 4}}">
	<!--<view class='bgc fixed-bottom0' style="background-color:#FFF;background-image:url({{tabBar.num == 4 ? '': '/assets/imgs/7_1_0/bg.png'}});{{tabBar.num == 4 ? 'height: 108rpx':'height: 144rpx'}}" wx:if="{{tabBar.num == 4}}">-->
	<block wx:for="{{tabBar.images}}" wx:key="{{index}}" wx:for-item="tab">
		<view class="tab">
			<!--当前页面需要授权 切未授权-->
			<view wx:if="{{tools.hanlerLinkNeedAuth(tab.link.url)}}" class="btn-tab">
				<view wx:if="{{!currentHasUserInfo}}" class="btn-tab">
					<button
					 bindgetuserinfo="_getUserInfo"
					 data-jflag="false"
					 open-type='getUserInfo'
					 class='btn btn-primary df'
					 hover-class="btn-hover"
					 style="height:100%"
					>
						<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
					</button>
				</view>
				<view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage">
					<button class='btn btn-primary df' style="height:100%">
						<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
					</button>
				</view>
			</view>
			<view wx:else class="btn-tab" data-item="{{tab}}" bindtap="handelToPage">
				<button class='btn btn-primary df' style="height:100%">
					<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
				</button>
			</view>
		</view>
	</block>
</view>
<view class="bottom-tab fixed-bottom0" style="height: 108rpx;" wx:if="{{tabBar.num == 5}}">
	<block wx:for="{{tabs}}" wx:key="{{index}}" wx:for-item="tab">
		<view class="tab" data-item="{{tab}}" bindtap="handelToPage">
			<button wx:if="{{currHomePageId == tab.redirectId}}">
				<image class='tab-img' src='{{tab.activeImageUrl}}' />
			</button>
			<button wx:else>
				<image class='tab-img' src='{{tab.imageUrl}}' />
			</button>
		</view>
	</block>
</view>

