<!--packageH/circleCommunity/circleExtend/circleExtend.wxml-->


<view class="top-bg">
	<view class="left">
		<view class="avatar">
			<image src="{{member.avatar}}"></image>
		</view>
		<view class="name">
			<view>{{member.nickname}}</view>

		</view>
	</view>
</view>
<view class="tabs">
	<van-tabs active="{{ activeName }}" bind:change="bindActiveNameChange">
		<van-tab title="付费记录" name="0"></van-tab>
		<van-tab title="打赏记录" name="1"></van-tab>
		<van-tab title="视频奖励" name="2"></van-tab>
	</van-tabs>
</view>
<view wx:if="{{activeName=='0'}}">
	<view class="total-money">
		<view class="left">
			累计金额
		</view>
		<view class="right">
			￥{{incomeCount}}
		</view>
	</view>
	<view class="pay-record" wx:if="{{listData.length>0 && networkLoading}}">
		<view class="list" wx:for="{{listData}}" wx:key="{{index}}">
			<view class="top">
				<view class="name">{{item.name}}</view>
				<view class="money">{{item.payment_amount}}元</view>
			</view>
			<view class="bottom">
				<view class="pay-name">付费者：{{item.nickname}}</view>
				<view class="time">{{item.created_at}}</view>
			</view>
		</view>
	</view>
	<!-- <view style="margin-top:1.4688rem;">暂无数据~</view> -->
</view>
<view wx:if="{{activeName=='1'}}">
	<view class="Reward">
		<view class="left">
			<view class="cash">￥{{myRewardCount}}</view>
			<view class="text">收到的打赏</view>
		</view>
		<view class="right">
			<view class="cash">￥{{rewardCount}}</view>
			<view class="text">我的打赏</view>
		</view>
	</view>
	<view class="Reward-tabs">
		<van-tabs v-model="activeReward" bind:change="bindActiveRewardChange">
			<van-tab title="收到的打赏" name="0"></van-tab>
			<van-tab title="我的打赏" name="1"></van-tab>
		</van-tabs>
		<view class="Reward-list" wx:if="{{listData.length>0 && networkLoading}}">
			<view class="list" wx:for="{{listData}}">
				<view class="ordersn">订单编号：{{item.order_sn}}</view>
				<view class="tip-title">帖子标题：<span style="color: #3175fe;">{{item.title}}</span></view>
				<view class="Reward-people">
					<view style="font-size:0.75rem;">打赏人：{{item.nickname}}</view>
					<view style="font-size: 1rem;color: #f15353;">{{activeReward==0 ? '+' : '-'}}{{item.money}}元</view>
				</view>
				<view class="time">
					<view>{{item.created_at}}</view>
					<view style="color: #4fa34e;">{{activeReward==0 ? (item.pay_status==1 ? '已结算' : '未结算') : item.pay_name}}</view>
				</view>
			</view>
		</view>
	</view>
</view>
<view wx:if="{{activeName=='2'}}">
	<view class="commision">
		<view class="left">
			<view class="cash">￥{{unsettlement}}</view>
			<view class="text">未结算佣金</view>
		</view>
		<view class="right">
			<view class="cash">￥{{settlement}}</view>
			<view class="text">已结算佣金</view>
		</view>
	</view>
	<view class="video-record">
		<view class="record" wx:for="{{listData}}">
			<view class="title">{{item.month}}</view>
			<view class="record-list" wx:for="{{item.value}}" wx:for-item="item1" wx:for-index="index1">
				<view class="list">
					<view class="list-order">
						<view class="ordersn">订单编号：{{item1.order_sn}}</view>
						<view class="cash">+{{item1.amount}}元</view>
					</view>
					<view class="list-amount">
						<view class="amount">
							<view>订单金额：￥{{item1.order_price}}</view>
							<view style="margin-left:2.1875rem;">比例：{{item1.rebate}}%</view>
						</view>
						<view class="wait">
							{{item1.status==1 ? '已结算' : '未结算'}}
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</view>

<view wx:if="{{listData.length==0 && networkLoading}}" class="blank">
	<image  src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
</view>
