<!--pages/regular_visit_records/regular_visit_records.wxml-->
<view>
	<!-- 选择栏 -->
	<view class="tab">
		<view class="item" data-index="{{0}}" data-type="click" bindtap="changeSwiper">
			<image src="../../static/comment/{{currentPage === 0?'pending_records_cur.svg':'pending_records.svg'}}"></image>
			<text class="text-{{currentPage === 0?'blue':'grey'}}">{{international.Apply_record[language]}}</text>
		</view>
		<view class="item" data-index="{{1}}" data-type="click" bindtap="changeSwiper">
			<image src="../../static/comment/{{currentPage === 1?'invite_records_cur.svg':'invite_records.svg'}}"></image>
			<text class="text-{{currentPage === 1?'blue':'grey'}}">{{international.Invited_record[language]}}</text>
		</view>
	</view>
	<swiper class="card-area" current="{{currentPage}}" duration="200" data-type="slide" bindchange="changeSwiper">
		<!-- 申请记录列表 -->
		<swiper-item>
			<scroll-view class="scroll-area" scroll-y="{{currentPage==0}}" bindscrolltolower="reachBottom" data-type="{{2}}">
				<zyh-card-visit label-title="{{international.Access_time[language]}} :" value-title="{{item.startTime}} ~ {{item.endTime}}" label-name="{{international.Visit_name[language]}} :  {{item.name || '-'}} | {{item.phone || ''}}" label-phone="{{international.Visit_unit[language]}} : {{item.visiteeCompany || '-'}}" type="{{item.reviewStatus}}" wx:for="{{list_apply}}" wx:key="{{item.userVisitorListDetailId}}" data-item="{{item}}" data-type="1" bindtap="goDteail" />
				<zyh-tail-tip total="{{totalApply}}" pageNum="{{pageNumApply}}" loadding="{{loaddingApply}}"></zyh-tail-tip>
				<view style="height: 300rpx;"></view>
			</scroll-view>
		</swiper-item>
		<!-- 邀请记录列表 -->
		<swiper-item>
			<scroll-view class="scroll-area" scroll-y="{{currentPage==1}}" bindscrolltolower="reachBottom" data-type="{{2}}">
				<zyh-card-visit label-title="{{international.Access_time[language]}} :" value-title="{{item.startTime}} ~ {{item.endTime}}" label-name="{{international.Visit_name[language]}} : {{item.name || '-'}} | {{item.phone || ''}}" label-phone="{{international.Visit_unit[language]}} : {{item.company || '-'}}" type="{{item.reviewStatus}}" wx:for="{{list_invite}}" wx:key="{{item.userVisitorListDetailId}}" data-item="{{item}}" data-type="2" bindtap="goDteail" />
				<zyh-tail-tip total="{{totalInvite}}" pageNum="{{pageNumInvite}}" loadding="{{loaddingInvite}}"></zyh-tail-tip>
				<view style="height: 300rpx;"></view>
			</scroll-view>
		</swiper-item>
	</swiper>
</view>