<view class="shareholderCenter">
    <!-- <van-nav-bar title="{{mailSingleReturnTitle}}" /> -->
    <view class="share_holder">
        <view class="left" wx:if="{{dataInfo.member}}">
            <view class="img-box">
              <image src='{{dataInfo.member.avatar}}' mode='widthFix'></image>
            </view>
            <view class="span">{{dataInfo.member.nickname}}</view>
        </view>
        <view class="right">
            <text class="span">{{language['money']}}{{dataInfo.amount_total}}</text>
            <text class="span">奖励总额({{language['元']}})</text>
        </view>
    </view>

    <view class="shareholder-order newLove">
        <view class="tabs">
            <van-tabs active="{{ activeName }}" tab-active-class="ative"   bind:change="onChange">
                <van-tab name="first" title="奖励记录">
                    <view class='rationList ul'>
                       <view class="blank" wx:if="{{recordsList.length <= 0}}">暂无记录~</view>
                        <view wx:for="{{recordsList}}" class="list li" wx:key="index">
                            <view class="h4">
                                分红ID: {{item.id}}
                                <text class="span">+{{item.amount}}</text>
                            </view>

                            <view class="one">
                                <view class="time">
                                    <view class="left span">
                                        商城周期营业额: {{item.turnover}}
                                    </view>
                                    <view class="right span">分红比例: {{item.ratio}}%</view>
                                </view>
                                <view class="time">
                                    <view class="left span">
                                        商城周期{{love_name}}总数: {{item.love_total}}
                                    </view>
                                    <view class="right span">{{love_name}}单价: {{item.love_unit}}</view>
                                </view>
                                <view class="time">
                                    <view class="left span">
                                        个人{{love_name}}总数: {{item.member_love}}
                                    </view>
                                    <view class="right span last">{{item.created_at}}</view>
                                </view>
                            </view>
                        </view>
                    </view>
                </van-tab>
                <van-tab  name="second" title="待打款记录"></van-tab>
            </van-tabs>
        </view>
    </view>
    <view wx:if="{{activeName == 'second'}}">
        <view class="main">
            <van-cell-group border>
                <van-cell class="content" wx:for="{{play_with}}" wx:key="unique">
                    <!-- 使用 title 插槽来自定义标题 -->
                    <view slot="title">
                        <view class="record-left">
                            <text>ID：{{item.id}}</text>
                            <text class="record-left-time">{{item.created_at}}</text>
                        </view>
                    </view>
                    <view slot="">
                        <view class="record-right">
                            <view>
                                <text class="c-333">变动金额：</text><text class="main-c">{{item.amount}}</text>
                            </view>
                            <view>
                                <text class="c-333">累计待打款：</text><text class="main-c">{{item.amount_total}}</text>
                            </view>
                        </view>
                    </view>
                </van-cell>
            </van-cell-group>
        </view>
    </view>
</view>
