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

