<import src="../../../../wxParse/wxParse.wxml" />
<view class="line-up">
    <van-nav-bar title="{{title}}" right-text="奖励记录" bind:click-right="QueueRecord" />
    <view class="nav">
        <view class="ul">
            <view class="{{allMemberShow==true?'active li':'li'}}" data-index="1" catchtap="tabChoose">
                <text class="span">关注(考察)会员</text>
                <text class="span">({{m_total}})人</text>
            </view>
            <view class="{{buyMemberShow==true?'active li':'li'}}" data-index="2" catchtap="tabChoose">
                <text class="span">已加盟店</text>
                <text class="span">({{b_total}})人</text>
            </view>
        </view>
    </view>
    <!-- 关注会员页面 -->
    <view class="rank-list" wx:if="{{allMemberShow}}">
        <view class="box">
            <view class="nav ul">
                <view class="nav-a li">ID</view>
                <view class="nav-b li">微信昵称</view>
                <view class="nav-c li">星级加盟店</view>
                <view class="nav-d li">拼团积分</view>
                <view class="nav-e li">关注时间</view>
            </view>
            <view class="list ul" wx:for="{{allMember}}" wx:key="index">
                <view class="nav-a li">{{item.uid}}</view>
                <view class="nav-b li">
                    <view class="img">
                        <image src="{{item.avatar?item.avatar:require('https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/loading.jpg')}}" style="width:100%;height:100%;" />
                    </view>
                    <text class="span">{{b64Decode(item.nickname)}}</text>
                </view>
                <template is="wxParse" class="nav-c li" style="word-wrap:break-word;word-break:normal;" data="{{wxParseData:item['star_count'].nodes}}" />
                <!-- <view class="nav-c li" v-html="item.star_count" style="word-wrap:break-word;word-break:normal;"></view> -->
                <view class="nav-d li">
                    <text class="span">
                        {{item.has_one_queue?item.has_one_queue.amount_finish:""}}
                    </text>
                    <text class="span">
                        {{item.has_one_queue?item.has_one_queue.status_name:""}}
                    </text>
                </view>
                <view class="nav-e li">
                    <text class="span">{{item.create_at}}</text>
                </view>
            </view>
        </view>
    </view>
    <!-- 加盟店 -->
    <view class="rank-list" wx:if="{{buyMemberShow}}">
        <view class="box">
            <view class="nav ul">
                <view class="nav-a li">编号</view>
                <view class="nav-b li">微信昵称</view>
                <view class="nav-c li">星级加盟店</view>
                <view class="nav-d li">拼团积分</view>
                <view class="nav-e li">加盟时间</view>
            </view>
            <view class="list ul" wx:for="{{buyList}}" wx:key="index">
                <view class="nav-a li">{{index+1}}</view>
                <view class="nav-b li">
                    <view class="img">
                        <image src="{{item.has_one_member.avatar?item.has_one_member.avatar:require('https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/loading.jpg')}}" style="width:100%;height:100%;" />
                    </view>
                    <text class="span">{{item.has_one_member.nickname}}</text>
                </view>
                <template is="wxParse" class="nav-c li" style="word-wrap:break-word;word-break:normal;" data="{{wxParseData:item['star_count'].nodes}}" />
                <!-- <view class="nav-c li" v-html="item.star_count" style="word-wrap:break-word;word-break:normal;"></view> -->
                <view class="nav-d li">
                    <text class="span">{{item.amount_finish}}</text>
                    <text class="span">{{item.status_name}}</text>
                </view>
                <view class="nav-e li">
                    <text class="span">{{item.created_at}}</text>
                </view>
            </view>
        </view>
    </view>
</view>
<shopfoot></shopfoot>