| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <view class="topView">
- <!-- 导航栏 -->
- <van-nav-bar custom-style="background-color: #407DB8">
- <van-icon slot="left" name="arrow-left" size="25px" color="#fff" bind:click="backToParent"/>
- <text slot="title" style="color: #fff;">历史履约</text>
- </van-nav-bar>
- <!-- tabs -->
- <view class="tab-view">
- <van-tabs active="{{ active }}" sticky animated bind:click="onTabChange" color="#2270D9" line-width="20px" title-inactive-color="#333" title-active-color="#407DB8">
- <van-tab wx:for="{{ tabs }}" wx:for-item="itm" wx:key="id" id="{{ itm.id }}" title="{{ itm.name }}"/>
- </van-tabs>
- </view>
- <!-- 列头 -->
- <view class="title-view">
- <view class="title-view-up">
- <text wx:for="{{ titles[0] }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{ itm }}</text>
- </view>
- <view class="title-view-dwn">
- <text wx:for="{{ titles[1] }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{ itm }}</text>
- </view>
- </view>
- </view>
- <!-- 内容滚动视图 -->
- <scroll-view class="content-view" style="padding-bottom: {{ safeBottom }}px;">
- <!-- 数据 -->
- <van-swipe-cell wx:for="{{ values }}" wx:for-item="itm" wx:for-index="idx" id="{{ idx }}" wx:key="idx" right-width="{{ 50 }}" bind:click="onSelectItem">
- <view class="item-view {{ values[idx].isChecked ? 'active' : '' }}">
- <view class="item-view-up">
- <text wx:for="{{ itm.up }}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{ data }}</text>
- </view>
- <view class="item-view-dwn">
- <text wx:for="{{ itm.dwn }}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{ data }}</text>
- </view>
- </view>
- <view slot="right" class="van-swipe-cell__right">
- <view class="item detail" id="detail {{ idx }}" style="background-color: #407DB8;" bindtap="onButtonPressed">详情</view>
- </view>
- </van-swipe-cell>
- </scroll-view>
- <!-- empty -->
- <van-empty wx:if="{{ isEmpty }}" class="custom-image" description="无数据"/>
- <!-- toast -->
- <van-toast id="van-toast" />
|