index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <!-- index.wxml -->
  2. <view class="container">
  3. <!-- 引入组件 -->
  4. <import src="/component/group/group.wxml" />
  5. <import src="/component/hot/hot.wxml" />
  6. <import src="/component/follow/follow.wxml" />
  7. <import src="/component/my/my.wxml" />
  8. <!-- 调用组件 -->
  9. <template is="{{templates}}" data="{{groupData: groupData, hotData: hotData, followData: followData, myData: myData}}"></template>
  10. <!-- 顶部导航 -->
  11. <view class="top-tab">
  12. <block wx:for="{{tab}}" wx:key="{{index}}">
  13. <!-- <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}" wx:if="{{isIOS ? index === 0? false : true : true}}"> -->
  14. <view class="tabbar {{index == myIndex ? 'select':' '}}" bindtap="switcher" data-index="{{index}}">
  15. <text>{{item.name}}</text>
  16. </view>
  17. </block>
  18. </view>
  19. <!-- <view class="template" wx:if="{{templates == 'hot'}}">
  20. <template is="{{templates}}" data="{{...hotData}}"></template>
  21. </view>
  22. <view class="template" wx:elif="{{templates == 'follow'}}">
  23. <template is="{{templates}}" data="{{followData: followData}}"></template>
  24. </view>
  25. <view class="template" wx:else="{{templates == 'my'}}">
  26. <template is="{{templates}}" data="{{myData: myData}}"></template>
  27. </view> -->
  28. </view>
  29. <!-- <MyToast /> -->
  30. <view hidden="{{hide}}">
  31. <Dialog bindmyevent="jurisdiction" />
  32. </view>