<!-- 积分 -->
<view class="integra-top">
	<view class="integra-name">
		<block wx:if="{{type == 'silver'}}">白金账户余额</block>
		<!-- <block wx:elif="{{type == 'gold'}}">金卡余额数</block> -->
		<block wx:elif="{{type == 'drill'}}">钻石账户余额</block>
	</view>
	<view class="integra-info">
		<view class="integra-right">
			<view class="integra-title"><text>可用余额</text>
				<image src="/static/icon/integra_icon00.png"></image>
			</view>
			<view class="integra-number">{{number}}</view>
			<view class="integra-btn"><text>可用余额，入账记录</text></view>
		</view>
		<view class="integra-right">
			<view class="integra-title"><text>待发放</text>
				<image src="/static/icon/integra_icon01.png"></image>
			</view>
			<view class="integra-number">{{blockeds}}</view>
			<navigator hover-class="none" url="/pages/frozen/frozen?type={{type}}&blockeds={{blockeds}}"
				class="integra-btn integra-blue">立即查询<image src="/static/icon/rightsArrow.png"></image>
			</navigator>
		</view>
	</view>
</view>

<view class="integra-cont">
	<view class="integra-cont-title">
		<view class="integra-cont-name">账变记录</view>
		<view class="integra-cont-picker">
			<picker bindchange="screenBind" value="{{screenIndex}}" range-key="name" range="{{screenArray}}">
				{{screenArray[screenIndex].name}}
			</picker>
			<image class="integra-cont-icon" src="/static/icon/arrow_down.png"></image>
		</view>
	</view>
	<block wx:if="{{accounts.length > 0}}">
		<view class="integra-list" wx:for="{{accounts}}" wx:key="integras">
			<view class="integra-text">
				<view class="integra-title">
					<view class="integra-title-tips {{item.channel == 'in' ? 'active' : ''}}">{{item.channel == 'in' ?
						'入' : '出'}}</view>{{item.title}}
				</view>
				<view class="integra-oints {{item.channel == 'in' ? 'active' : ''}}">
					{{item.variable}}
				</view>
			</view>
			<view class="integra-remark">
				{{item.remark}}
			</view>
			<view class="integra-date">
				<view class="integra-time">
					<text>{{item.channel == 'in' ? '有效期：' : '扣除时间：'}}</text>
					{{item.created_at}}{{item.channel == 'in' ? ' 至 ' + item.expired_at : ''}}
				</view>
				<!-- <view class="integra-time">
				<text>到期时间：</text>
			</view> -->
			</view>
		</view>
		<view class="pagesLoding" wx:if="{{lodingStats}}">
			<block wx:if="{{page.has_more}}">
				<image class="pagesLoding-icon" src="/static/icon/refresh_loding.gif" mode="widthFix"></image>加载中...
			</block>
			<block wx:else>
				没有更多了~
			</block>
		</view>
	</block>
	<!-- 暂无内容 -->
	<view class="recommend-hint" wx:else>
		<image src="/static/img/legal_tips.png"></image>
		<view>抱歉，目前暂无内容~</view>
	</view>
</view>