<!--pages/member/integrallist/integrallist.wxml-->
<view class="integrallist">
	<van-tabs active="{{selected}}" bind:change="swichTabTItem">
		<van-tab title="全部">
			<block wx:if="{{recordsList.length>0}}">
				<block wx:for="{{recordsList}}" wx:key="index">
					<view class="tbs" catchtap="tapIs" data-info="{{item}}" data-ind="{{index}}">
						<view class="ul item2">
							<view class="li">{{item.source_name}}</view>
							<view class="li">{{integral?integral:'积分'}}：{{item.after_point}}</view>
							<view class="li item1">{{item.updated_at}}</view>
						</view>
						<view class="item3" wx:if="{{item.point<0}}">
							<view class="span add">{{item.point}}</view>
						</view>
						<view class="item3" wx:if="{{item.point>0}}">
							<view class="span reduce">+{{item.point}}</view>
						</view>
					</view>
					<!-- class="{{item.show ? 'tapShow' : 'tapShowNone'}}" -->
					<block wx:if="{{item.show}}">
						<view class="tapShow" wx:if="{{item.transfer_info}}">
							<view wx:if="{{item.transfer_info.id}}"><text>受让人ID</text>：{{item.transfer_info.id}}</view>
							<view wx:if="{{item.transfer_info.name}}">昵称：{{item.transfer_info.name}}</view>
						</view>
					</block>
				</block>
			</block>
			<block wx:else>
				<view class="nomessage">
					没有更多了
				</view>
			</block>
		</van-tab>
		<van-tab title="收入">
			<block wx:if="{{recordsList.length>0}}">
				<block wx:for="{{recordsList}}" wx:key="index">
					<view class="tbs" catchtap="tapIs" data-info="{{item}}" data-ind="{{index}}">
						<view class="ul item2">
							<view class="li">{{item.source_name}}</view>
							<view class="li">{{integral?integral:'积分'}}：{{item.after_point}}</view>
							<view class="item1 li">{{item.updated_at}}</view>
						</view>
						<view class="item3" wx:if="{{item.point<0}}">
							<view class="span add">{{item.point}}</view>
						</view>
						<view class="item3" wx:if="{{item.point>0}}">
							<view class="span reduce">+{{item.point}}</view>
						</view>
					</view>
				</block>
				<block wx:if="{{item.show}}">
					<view class="tapShow" wx:if="{{item.transfer_info}}">
						<view wx:if="{{item.transfer_info.id}}"><text>受让人ID</text>：{{item.transfer_info.id}}</view>
						<view wx:if="{{item.transfer_info.name}}">昵称：{{item.transfer_info.name}}</view>
					</view>
				</block>
			</block>
			<block wx:else>
				<view class="nomessage">
					没有更多了
				</view>
			</block>
		</van-tab>
		<van-tab title="支出">
			<block wx:if="{{recordsList.length>0}}">
				<block wx:for="{{recordsList}}" wx:key="index">
					<view class="tbs" catchtap="tapIs" data-info="{{item}}" data-ind="{{index}}">
						<view class="ul item2">
							<view class="li">{{item.source_name}}</view>
							<view class="li">{{integral?integral:'积分'}}：{{item.after_point}}</view>
							<view class="li item1">{{item.updated_at}}</view>
						</view>
						<view class="item3" wx:if="{{item.point<0}}">
							<view class="span add">{{item.point}}</view>
						</view>
						<view class="item3" wx:if="{{item.point>0}}">
							<view class="span reduce">+{{item.point}}</view>
						</view>
					</view>
					<block wx:if="{{item.show}}">
						<view class="tapShow" wx:if="{{item.transfer_info}}">
							<view wx:if="{{item.transfer_info.id}}"><text>受让人ID</text>：{{item.transfer_info.id}}</view>
							<view wx:if="{{item.transfer_info.name}}">昵称：{{item.transfer_info.name}}</view>
						</view>
					</block>
				</block>

			</block>
			<block wx:else>
				<view class="nomessage">
					没有更多了
				</view>
			</block>
		</van-tab>
	</van-tabs>
</view>
<!--<shopfoot></shopfoot>-->
