|
|
<view class="order-list-page">
|
|
|
<view class="order-list-navbar">
|
|
|
<view class='order-list-navbar-item-space'></view>
|
|
|
<block wx:for="{{tabs}}" wx:key="{{index}}">
|
|
|
<view id="{{index}}" class="order-list-navbar-item {{activeIndex == index ? 'order-list-navbar-item-on' : ''}}" bindtap="navTabClick">
|
|
|
{{item.name}}
|
|
|
<!-- <text class="order-list-navbar-title">{{item.name}}</text> -->
|
|
|
</view>
|
|
|
</block>
|
|
|
<view class='order-list-navbar-item-space'></view>
|
|
|
<view class="order-list-navbar-slider" style="width: {{sliderWidth}}px; transform: translateX({{sliderOffset}}px); -webkit-transform: translateX({{sliderOffset}}px);"></view>
|
|
|
</view>
|
|
|
<view style="position: absolute;top: 108rpx;width: 100%;height:{{contentHeight}}px">
|
|
|
<view style="position: absolute;top: 108rpx;width: {{contentWidth}}px;height:{{contentHeight}}px;">
|
|
|
<swiper current="{{activeIndex}}" duration="300" bindchange="bindChange" type>
|
|
|
<swiper-item wx:for="{{tabs}}" wx:for-item="tab" wx:key="{{index}}" catchtouchmove='catchTouchMove'>
|
|
|
<block wx:if="{{tab && tab.data && tab.data.data.length > 0}}">
|
...
|
...
|
|