<!--pages/regular_register/regular_register.wxml-->
<zyh-navigator title="{{international.registration[language]}}" title-style="white" bg-color="#2F6FD1"></zyh-navigator>
<view class="top">
	<view class="top-area"></view>
</view>
<view class="top-item">
	<!-- 所在楼宇 -->
	<block>
		<!-- 提示 -->
		<!-- <view class="end-tip" wx:if="{{isRegularQRCode || temporaryAdminInfo}}">
      <text wx:if="{{temporaryAdminInfo}}">{{international.Lock[language]}}</text>
      <text wx:if="{{isRegularQRCode}}">{{international.scanRegularQRCode[language]}}</text>
    </view> -->
		<view class="card card-cont position">
			<image wx:if="{{userInfo && companyAdminId}}" bindtap="goToChange" class="change-icon" src="../../static/images/change-icon.png" mode="" />
			<view>
				<view class="msg_info">{{international.msg_info[language]}}</view>
				<van-cell border="{{ false }}" class="label-sm">
					<view slot="title">
						<text class="{{buildingAdminId?'text-green':'text-red'}}">*</text>
						<text class="van-cell-text">{{international.building[language]}}</text>
					</view>
					<zyh-picker list="{{buildingList}}" index="{{buildingIndex}}" range-key="name" placeholder="{{[international.select_building[language]]}}" data-type="buildingAdminId" bind:change="getValue" isAudit="{{disableSelectAdminInfo}}"></zyh-picker>
				</van-cell>
				<!-- 所在公司 -->
				<van-cell wx:if="{{companyList.length>0 }}" class="label-sm">
					<view slot="title">
						<text class="{{companyAdminId?'text-green':'text-red'}}">*</text>
						<text class="van-cell-text">{{international.company[language]}}</text>
					</view>
					<zyh-picker list="{{usedAdminInfo?companyList:newCompanyList}}" index="{{companyIndex}}" range-key="name" placeholder="{{[international.select_company[language]]}}" data-type="companyAdminId" bind:change="getValue" isAudit="{{disableSelectAdminInfo}}"></zyh-picker>
				</van-cell>
			</view>
			<view wx:if="{{companyAdminId&&buildingAdminId}}" class="m-t">
				<!-- 人员信息 -->
				<zyh-face-verify language="{{language}}" companyName="{{companyName}}" bind:certificationState="getCertificationState" isDisabled="{{isDisabled}}" userInfo="{{userInfo}}" bind:updateState="getUpdateState" userType="常客" needLoginList="{{needLoginList}}" needPhoto="{{needPhoto}}" needRealname="{{needRealname}}" needPhone="{{needPhone}}"></zyh-face-verify>
				<block wx:if="{{isDisabled&&!showMyFun}}">
					<!-- 自定义字段 -->
					<custom-field wx:if="{{isShowApplet}}" orgId="{{buildingAdminId}}" customField="{{customField}}" bind:isFillFields="isFillFields" />
				</block>
			</view>
		</view>
	</block>
	<!-- 功能区 -->
	<view wx:if="{{isDisabled&&showMyFun}}">
		<!-- 标题 -->
		<view class="title">{{international.function[language]}}</view>
		<view class="component-area">
			<view class="component" wx:for="{{component_list}}" wx:key="id" data-id="{{item.id}}" bindtap="goto">
				<image src="{{item.icon}}"></image>
				<text>{{language=='ch'?item.name_ch:item.name_en}}{{item.id == 1 && timeCount && timeCount>0?timeCount+"s":""}}</text>
			</view>
		</view>
	</view>
</view>
<!-- 按钮区 -->
<view class="btn-area" wx:if="{{isDisabled&&!showMyFun}}">
	<button bindtap="sure" class="{{isSubmit?'bg-blue':'bg-grey'}}" disabled="{{!isSubmit}}">{{international.submit[language]}}</button>
</view>