<!--packageC/redPacket/personListDetail/personListDetail.wxml-->
<view class="person-list-detail">
    <view class="detail-box">
        <image class="left-img" src="{{redpack_info.thumb}}" mode="aspectFit"></image>
        <view class="right-box">
            <view class="gift-title">{{redpack_info.title}}</view>
            <view class="end-time">
                红包截止时间:
                <view>{{redpack_info.created_at}} - {{redpack_info.valid_time_date}}</view>
            </view>
            <view class="gift-type">类型：{{redpack_info.redpack_type_name}}</view>
            <view class="gift-num">红包个数：<text class="red-text">{{redpack_info.number}}</text>个</view>
            <view class="gift-count">总数：<text class="red-text">{{redpack_info.amount_total}}</text> {{customBalance}}</view>
        </view>
    </view>

    <view class="counter">
        <view class="received-num">已领取：<text class="red-text">{{redpack_info.finish_number}}</text></view>
        <view class="surplus-num">剩余红包数量：<text class="red-text">{{redpack_info.surplus_number}}</text></view>
        <view class="balance-num">剩余{{customBalance}}：<text class="red-text">{{redpack_info.surplus_amount}}</text></view>
    </view>


    <view class="receive-record" wx:if="{{receive_log_list.length > 0}}">
        <view class="record-title">领取记录</view>
        <view class="receive-item" wx:for="{{receive_log_list}}" wx:key="{{index}}">
            <view class="avatar">
                <image  src="{{item.member.avatar}}"></image>
            </view>
            <view class="userinfo">
                <view class="username">{{item.member.nickname}}</view>
                <view class="timer">{{item.created_at}}</view>
            </view>
            <text class="money">{{item.amount}}</text>
        </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>
