| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <view class="topView">
- <!-- 导航栏 -->
- <van-nav-bar custom-style="background-color: #fff">
- <van-icon slot="left" name="arrow-left" size="25px" color="#333" bind:click="backToParent"/>
- <text slot="title" style="color: #333;">历史履约</text>
- </van-nav-bar>
- <!-- tabs -->
- <view class="tab-view">
- <van-tabs color="#2270D9" title-active-color="#2270D9" title-inactive-color="#8F8AA6">
- <van-tab wx:for="{{tabs}}" wx:for-item="itm" wx:key="id" id="{{itm.id}}" active="{{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">
- <!-- 数据 -->
- <van-swipe-cell wx:for="{{values}}" wx:for-item="itm" wx:if-index="idx" wx:key="idx" right-width="{{ 50 }}">
- <view class="item-view">
- <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: yellowgreen;" 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" />
|