<!--packageC/redPacket/personRedList/personRedList.wxml-->
<view class="person-red-list">
<van-tabs active="{{ tabActive }}" bind:change="onChange">
  <van-tab title="发布记录" name="1"></van-tab>
  <van-tab title="领取记录" name="2"></van-tab>
</van-tabs>


<view class="person-list" wx:if="{{recordList.length > 0}}">
    <view class="person-item" bindtap="goPersonRedDetail" wx:for="{{recordList}}" wx:key="{{item.key}}" data-rid="{{item.id}}">
        <view style="display:flex;">
            <image class="left-img" src="{{item.thumb}}" mode="aspectFit"></image>
            <view class="right-box">
                <view class="gift-title">{{item.title}}</view>
                <view class="user-info">
                    <image class="avatar" src="{{item.member ? item.member.avatar_image : ''}}"></image>
                    <text class="nickname">{{item.member ? item.member.nickname : ''}}</text>
                </view>
                <view class="end-time">红包截止时间: {{item.created_at}} - {{item.valid_time_date}}</view>
            </view>
        </view>
        <view class="btn-box" wx:if="{{tabActive == 2}}">
            <view class="receiv-record" catchtap="goPersonRedRecord" data-rid="{{item.id}}">领取记录 </view>
        </view>
    </view>
    <view class="more" wx:if="{{finished}}" style="color:#000; text-align: center; height: 120rpx; line-height: 120rpx;font-size: 30rpx;">---没有更多了---</view>
</view>

<van-empty  wx:else image="default" description="暂无红包~"></van-empty>
</view>
