<view class="shareholderCenter">
    <!-- <van-nav-bar title="{{mailSingleReturnTitle}}" /> -->
    <view class="share_holder">
        <view class="left">
            <view class="span">{{alreadyReturn}}</view>
            <view class="span">已{{mailSingleReturnName}}总额({{language['元']}})</view>
        </view>
        <view class="right">
            <text class="span">商品{{mailSingleReturnName}}比例:{{order_return_rate}}%</text>
            <text class="span">每期{{mailSingleReturnName}}比例:{{each_return_rate}}%</text>
        </view>
    </view>
    <view class="share_info">
        <view class="left">
            <text class="span">{{returnAmountTotal}}</text>
            <text>{{mailSingleReturnName}}总额</text>
        </view>
        <view class="{task?'left':''}">
            <text class="span">{{notReturn}}</text>
           <text> 未{{mailSingleReturnName}}总额</text>
        </view>
        <block wx:if="{{task}}">
            <view class="left" >
                <text class="span">{{totay || 0}}</text>
                <text>今日{{mailSingleReturnName}}总额</text>
            </view>
            <view>
                <text class="span">{{valid || "0"}}</text>
            <text> 失效{{mailSingleReturnName}}总额</text>
            </view>
        </block>
    </view>
    <view class="shareholder-order">
        <view class="tabs">
            <van-tabs active="{{ activeName }}" tab-active-class="ative" bind:change="handleClick">
                <van-tab title="{{mailReturnQueue}}" name="first">
                    <view class='rationList ul'>
                        <view wx:for="{{listData}}" class="list li" wx:key="index">
                            <view class="h4">
                                {{mailSingleReturnName}}队列ID:{{item.id}}
                                <text class="span">{{item.status_name}}</text>
                            </view>
                            <view class="ul">
                                <view class="li">
                                    总{{mailSingleReturnName}}({{language['元']}})
                                    <view class="span">{{item.amount}}</view>
                                </view>
                                <view class="li">
                                    已{{mailSingleReturnName}}({{language['元']}})
                                    <view class="span">{{item.return_amount}}</view>
                                </view>
                                <view class="li">
                                    未{{mailSingleReturnName}}({{language['元']}})
                                    <view class="span">{{item.not_return}}</view>
                                </view>
                            </view>
                            <view class="one">
                                <view class="time">
                                    <view class="left span">
                                        {{mailSingleReturnName}}时间ID:{{item.id}}
                                    </view>
                                    <view class="right span">{{item.created_at}}</view>
                                </view>
                                <view class="Record" data-id="{{(item.id)}}" catchtap="toReturnInfo">
                                    <text class="left look span">查看记录</text>
                                    <van-icon name="arrow" class="fa fa-angle-right"></van-icon>
                                </view>
                            </view>
                        </view>
                    </view>
                </van-tab>
                <van-tab title="{{mailReturnLog}}" name="second">
                    <van-tabs active="{{ activeName1 }}" bind:change="handleClick1" wx:if="{{activeName == 'second'}}">
                        <van-tab title="全部" name="0"></van-tab>
                        <van-tab title="已赠送" name="2"></van-tab>
                        <block wx:if="{{task}}">
                            <van-tab title="待赠送" name="1"></van-tab>
                            <van-tab title="已失效" name="-1"></van-tab>
                        </block>
                    </van-tabs>
                </van-tab>
            </van-tabs>
        </view>
    </view>
    <view class='rationList' wx:if="{{activeName == 'second'}}">
        <view wx:for="{{listData}}" wx:key='{{index}}' style="text-align:left;padding:24rpx;margin:16rpx 0;background:#fff;">
            <view style="display:flex;align-items: center;height:48rpx;">
                <view style="flex:1;">ID：{{item.id}}</view>
                <view style="color:#f15353;">￥{{item.amount}}</view>
            </view>
            <view style="display:flex;align-items: center;height:48rpx;color:#8c8c8c;font-size:24rpx;">
                <view style="flex:1;">{{item.created_at}}</view>
                <view>{{item.status_name}}</view>
            </view>
        </view>
    </view>
    <view style="line-height:64rpx;text-align:center;" wx:if="{{noMore&&listData.length>0}}">没有更多了~~~</view>
    <view style="display: flex;justify-content: center;margin:20rpx 0;" wx:if="{{loading}}">
        <van-loading size="48rpx">加载数据中...</van-loading>
    </view>
    <view wx:if="{{!loading}}">
        <yz-blank datas="{{listData}}" text="暂无记录"></yz-blank>
    </view>
</view>
<shopfoot></shopfoot>
