<wxs src="../../../utils/nova.wxs" module="nova" />
<!-- 导航：预加载各类导航组件并设置TAB显示对应关系 -->
<view class="{{active == 0 ? 'indexPage' : '' }}">
	<block wx:for="{{tabbarList.list}}" wx:key="index" wx:item="item">
		<view wx:if="{{active == index ? true:false}}">
			<block wx:if="{{nova.novapath(item,'module')=='comp'}}">
				<template is="{{nova.novapath(item,'tag')}}" data="{{ ...{id:index},...{isInit:isInit},...{options: nova.novapath(item,'params')} }}" />
			</block>
		</view>
	</block>
</view>

<template name="nova-home">
	<home id="comp0" />
</template>
<template name="nova-circle">
	<!-- <cart id="comp{{id}}" take="{{takeAddress}}" give="giveAddress" /> -->
	<circle id="comp{{id}}" />
</template>
<template name="nova-my">
	<my id="comp{{id}}" />
</template>
<!-- 底部导航 -->
<van-tabbar
 class="custom-tabbar" active="{{ active }}" bind:change="onChange" active-color="{{tabbarList.activeColor || '#000000'}}" inactive-color="{{tabbarList.inactiveColor || '#999'}}" z-index="99">
	<block wx:for="{{tabbarList.list}}" wx:key="index">
		<van-tabbar-item wx:if="{{item.open}}" name="{{index}}">
			<image slot="icon" src="{{ item.iconPath }}" mode="aspectFit" style="width:56rpx;height:56rpx;" />
			<image  slot="icon-active" src="{{ item.selectedIconPath }}" mode="aspectFit" style="width:56rpx;height:56rpx;" />
			{{item.text}}
		</van-tabbar-item>
	</block>
</van-tabbar>