You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
1.1 KiB

<!--index.wxml-->
<view class="container">
<van-tabs class="menu-tabs" active="{{ active }}" ellipsis="{{false}}" animated="{{true}}" bind:change="changeTab">
<van-tab wx:for="{{navData}}" title="{{item.text}}" wx:key="index">
<data-child wx:if="{{item.component === 'data-child' && active === 0}}"></data-child>
<media-child wx:if="{{item.component === 'media-child' && active === 1}}"></media-child>
<sound-child wx:if="{{item.component === 'sound-child' && active === 2}}"></sound-child>
<barometer-child wx:if="{{item.component === 'barometer-child' && active === 3}}"></barometer-child>
<insight-child wx:if="{{item.component === 'insight-child' && active === 4}}"></insight-child>
<event-child wx:if="{{item.component === 'event-child' && active === 5}}"></event-child>
<atlas-child wx:if="{{item.component === 'atlas-child' && active === 6}}"></atlas-child>
<portrait-child wx:if="{{item.component === 'portrait-child' && active === 7}}"></portrait-child>
<ranking-child wx:if="{{item.component === 'ranking-child' && active === 8}}"></ranking-child>
</van-tab>
</van-tabs>
<tabbar />
</view>