<view class="custom_queue">
	<view class="content">
		<view class="header_box">
			<view class="img">
				<image src="{{MemberData.avatar_image}}" mode='widthFix' />
			</view>
			<view class="head_name">
				<view class="span">{{MemberData.nickname}}</view>
			</view>
		</view>
		<view class="reward_box">
			<view class="ul reward_a">
				<view class="li"><text class="span">{{language['money']}}</text>{{rewardsData.amountTotal || 0}}</view>
				<view class="li">累计奖励</view>
			</view>
			<view class="ul reward_b">
				<view class="li"><text class="span">{{language['money']}}</text>{{rewardsData.amountSurplusTotal || 0}}
				</view>
				<view class="li">待奖励</view>
			</view>
		</view>
		<van-tabs active="{{active}}" bind:change="handleClickbtn">
			<van-tab title="权益队列">
				<view class="queue_box" wx:for="{{recordsList}}" wx:key="index">
					<view class="queue_a">
						<view class="span">权益排序：{{item.sort}}</view>
					</view>
					<view class="queue_b">
						<view class="queue_center">
							<view class="ul reward_queue_a">
								<view class="li"><text class="span">{{language['money']}}</text>{{item.amount}}</view>
								<view class="li">奖励金额</view>
							</view>
							<view class="ul reward_queue_b">
								<view class="li"><text class="span">{{language['money']}}</text>{{item.finish_amount}}</view>
								<view class="li">已奖励</view>
							</view>
							<view class="ul reward_queue_c">
								<view class="li">{{item.status_name}}</view>
							</view>
						</view>
					</view>
					<view class="queue_c" catchtap="showMore" data-index="{{index}}" data-item="{{item}}">
						<view class="span">展示完整信息</view>
						<icon wx:if="{{amount_id == item.id && item.show}}" class="iconfont icon-down"></icon>
						<icon wx:else class="iconfont icon-up"></icon>
					</view>
					<view class="button_box" wx:if="{{amount_id == item.id && item.show}}">
						<view class="ul queue_c_down">
							<view class="li">
								<view class="span">权益金额</view>
								<view class="span">{{item.amount}}</view>
							</view>
							<view class="li">
								<view class="span">订单商品金额</view>
								<view class="span">{{language['money']}}{{item.goods_price}}</view>
							</view>
							<view class="li">
								<view class="span">奖励比例：</view>
								<view class="span">{{item.ratio}}%</view>
							</view>
							<view class="li">
								<view class="span">时间：</view>
								<view class="span time">{{item.created_at}}</view>
							</view>
						</view>
					</view>
				</view>
			</van-tab>
			<van-tab title="奖励记录">
				<view class="queue_box" wx:for="{{recordsList}}" wx:key='index'>
					<view class="queue_a">
						<view class="span">奖励队列：{{item.queue_id}}</view>
						<view class="sum span">{{language['money']}}{{item.amount}}</view>
					</view>
					<view class="queue_b">
						<view class="queue_center" wx:if="{{item.has_one_queue}}">
							<view class="ul reward_queue_a">
								<view class="li"><text class="span">{{language['money']}}</text>{{item.has_one_queue.finish_amount}}</view>
								<view class="li">已奖励金额</view>
							</view>
							<view class="ul reward_queue_b">
								<view class="li"><text class="span">{{language['money']}}</text>{{item.has_one_queue.surplus_amount}}</view>
								<view class="li">未奖励金额</view>
							</view>
							<view class="ul reward_queue_c">
								<view class="li">{{item.has_one_queue.status_name}}</view>
							</view>
						</view>
					</view>
					<view class="queue_c" catchtap="showMore" data-item="{{item}}">
						<view class="span">展示完整信息</view>
						<icon wx:if="{{amount_id == item.id && item.show}}" class="iconfont icon-down"></icon>
						<icon wx:else class="iconfont icon-up"></icon>
					</view>
					<view class="button_box" wx:if="{{amount_id == item.id && item.show}}">
						<view class="ul queue_c_down">
							<view class="li" wx:if="{{item.has_one_order}}">
								<view class="span">订单编号</view>
								<view class="span">{{item.has_one_order.order_sn}}</view>
							</view>
							<view class="li">
								<view class="span">订单商品金额</view>
								<view class="span">{{language['money']}}{{item.goods_price}}</view>
							</view>
							<view class="li">
								<view class="span">奖励比例：</view>
								<view class="span">{{item.ratio}}%</view>
							</view>
							<view class="li">
								<view class="span">时间：</view>
								<view class="span time">{{item.created_at}}</view>
							</view>
						</view>
					</view>
				</view>
			</van-tab>
		</van-tabs>
	</view>
</view>
