12345678910111213141516171819202122232425262728293031323334 |
- <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">
-
- <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.items}}{{index}}
- {{cur_index==index&&"cur"}}{{item.title}}
- {{cur_index}}
- {{load}}
- {{load.items}}
- {{item.template||load.template}}{{ {title:menu.items[index]} }}{{{type:load.request,url:load.url,data:item.param} }}{{index}}{{reloads[index]}}
|