1234567891011121314151617181920212223242526272829303132 |
- <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-homestay">
- <homestay id="comp{{id}}" />
- </template>
- <template name="nova-collect">
- <collect 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:40rpx;height:40rpx;" />
- <image class="active" slot="icon-active" src="{{ item.selectedIconPath }}" mode="aspectFit" style="width:100rpx;height:100rpx;" />
- <view slot="icon">{{item.text}}</view>
- </van-tabbar-item>
- </block>
- </van-tabbar>
|