<view class='container' wx:if="{{tab}}">
  <view class='flexRow  menus'>
    <view wx:for="{{tab.items}}" class=' flex1 jCenter h100  ' data-index='{{index}}' catchtap='meunTap'>
      <text class='aCenter h100 {{cur_index==index&&"cur"}}'>{{item.title}}</text>
    </view>
  </view>
  <view class="flex1 relative">
    <!-- 兼容低版本iPhone -->
    <swiper class='wh100 absolute' current='{{cur_index}}' bindchange='swiperChange'>
      <swiper-item wx:for="{{tab.items}}">
        <list template="{{tab.template}}" templateData="{{ {title:item.title} }}" request="{{{  ...tab.request,data:item.param} }}" bind:change="change" data-index="{{index}}" reload="{{reloads[index]}}" />
      </swiper-item>
    </swiper>
  </view>
</view>
<!-- 本是要将menu与swiper分开以适应更多场景(如用户信息) 但后期需求又改了 (用户信息不需要切换了)  目前tab已满足现有需求 就不需要再扩展了  
(若后期有新需求 请注意 以下功能并未完成 )
  <view class='container'>
  <view class='flexRow  menus'>
    <view wx:for="{{menu.items}}" class=' flex1 jCenter h100  ' data-index='{{index}}' catchtap='meunTap'>
      <text class='aCenter h100 {{cur_index==index&&"cur"}}'>{{item.title}}</text>
    </view>
  </view>
  <swiper class='flex1' current='{{cur_index}}' bindchange='swiperChange'>
    <block wx:if="{{load}}">
        <swiper-item  wx:for="{{load.items}}">
      <view class='flexCol oyScroll h100 '>
        <list template="{{item.template||load.template}}" templateData="{{ {title:menu.items[index]} }}" request="{{{type:load.request,url:load.url,data:item.param} }}" bind:change="change" data-index="{{index}}" reload="{{reloads[index]}}" />
      </view>
    </swiper-item>
      </block>
    <slot wx:else />
  </swiper>
</view> -->