<!-- index.wxml -->
<view class="container">
  <!-- 引入组件 -->
  <import src="/component/group/group.wxml" />
  <import src="/component/hot/hot.wxml" />
  <import src="/component/follow/follow.wxml" />
  <import src="/component/my/my.wxml" />
  <!-- 调用组件 -->
  <template is="{{templates}}" data="{{groupData: groupData, hotData: hotData, followData: followData, myData: myData}}"></template>
  <!-- 顶部导航 -->
  <view class="top-tab">
    <block wx:for="{{tab}}" wx:key="{{index}}">
      <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}">
        <text>{{item.name}}</text>
      </view>
    </block>
  </view>
  <!-- <view class="template" wx:if="{{templates == 'hot'}}">
    <template is="{{templates}}" data="{{...hotData}}"></template>
  </view>
  <view class="template" wx:elif="{{templates == 'follow'}}">
    <template is="{{templates}}" data="{{followData: followData}}"></template>
  </view>
  <view class="template" wx:else="{{templates == 'my'}}">
    <template is="{{templates}}" data="{{myData: myData}}"></template>
  </view> -->
</view>
<view hidden="{{hide}}">
  <Dialog bindmyevent="jurisdiction" />
</view>