51 lines
2.1 KiB
Plaintext
51 lines
2.1 KiB
Plaintext
<view class="love_list">
|
||
<van-tabs active="{{ active }}" color="red" bind:change="onChange">
|
||
<van-tab title="全部交易">
|
||
<!-- 全部 -->
|
||
<view class="tbs" wx:for='{{wait_used}}' wx:key="index">
|
||
<view class="left titles">{{love_name}}:{{item.amount}}</view>
|
||
<view class="right reds">{{item.type_name}}-{{item.status_name}}</view>
|
||
<view class="left">{{item.created_at}}</view>
|
||
<view class="right" wx:if="{{item.status==0 && item.own}}" data-id="{{item.id}}" catchtap="revoke">
|
||
点击撤回
|
||
</view>
|
||
<view class="right" wx:if="{{item.status==0 && !item.own}}" data-id="{{item.id}}" catchtap="purchase">
|
||
点击购买
|
||
</view>
|
||
</view>
|
||
</van-tab>
|
||
<van-tab title="交易中">
|
||
<!-- 进行中 -->
|
||
<view class="tbs" wx:for="{{ underway}}" wx:key="index">
|
||
<view class="left titles">{{love_name}}:{{item.amount}}</view>
|
||
<view class="right reds">{{item.type_name}}-{{item.status_name}}</view>
|
||
<view class="left">{{item.created_at}}</view>
|
||
<view class="right" wx:if="{{item.status==0 && item.own}}" data-id="{{item.id}}" catchtap="revoke">
|
||
点击撤回
|
||
</view>
|
||
<view class="right" wx:if="{{item.status==0 && !item.own}}" data-id="{{item.id}}" catchtap="purchase">
|
||
点击购买
|
||
</view>
|
||
</view>
|
||
</van-tab>
|
||
<van-tab title="已完成">
|
||
<!-- 已完成 -->
|
||
<view class="tbs" wx:for='{{done}}' wx:key="index">
|
||
<view class="left titles">{{love_name}}:{{item.amount}}</view>
|
||
<view class="right reds">{{item.type_name}}-{{item.status_name}}</view>
|
||
<view class="left">{{item.created_at}}</view>
|
||
</view>
|
||
</van-tab>
|
||
<van-tab title="我的交易">
|
||
<!-- 自己的 -->
|
||
<view class="tbs" wx:for='{{own}}' wx:key="index">
|
||
<view class="left titles">{{love_name}}:{{item.amount}}</view>
|
||
<view class="right reds">{{item.type_name}}-{{item.status_name}}</view>
|
||
<view class="left">{{item.created_at}}</view>
|
||
<view class="right" wx:if="{{item.status==0 && item.own}}" data-id="{{item.id}}" catchtap="revoke">
|
||
点击撤回
|
||
</view>
|
||
</view>
|
||
</van-tab>
|
||
</van-tabs>
|
||
</view> |