<wxs src="../../utils/util/util.wxs" module="util" />
<!--components/face_verify/face_verify.wxml-->
<view class="msg_info">
	<!-- 标题 -->
	<view class="title">{{international.Personnel_information[language]}}</view>
	<!-- 内容 -->
	<view>
		<view>
			<!-- <view class="tips" wx:if="{{needLoginList.length==0 &&  language === 'ch'&&!isDisabled }}">点击【认证】按钮一键登录</view> -->
			<van-cell-group border="{{ false }}">
				<!-- 外宾 -->
				<block wx:if="{{false}}">
					<!-- 护照原图 -->
					<view class="cu-form-group height">
						<view class="title"><text>{{international.passport_picture[language]}}</text></view>
						<view class="img_box">
							<image src="{{myUserInfo.passportUrl || '../../static/images/default_img.png'}}" class="img" bindtap="previewImg" data-src="{{myUserInfo.passportUrl || ''}}"></image>
						</view>
					</view>
					<!-- 护照头像 -->
					<view class="cu-form-group height">
						<view class="title"><text>{{international.passport_avatar[language]}}</text></view>
						<view class="img_box">
							<image src="{{myUserInfo.hztx || '../../static/images/default_img.png'}}" class="img" bindtap="previewImg" data-src="{{myUserInfo.hztx || ''}}"></image>
						</view>
					</view>
					<!-- 比对照片 -->
					<view class="cu-form-group height">
						<view class="title"><text>{{international.face_photo[language]}}</text></view>
						<view class="img_box">
							<image src="{{myUserInfo.avatar || '../../static/images/default_img.png'}}" class="img" bindtap="previewImg" data-src="{{myUserInfo.avatar || ''}}"></image>
						</view>
					</view>
					<!-- 国家代码 -->
					<van-field class="label" value="{{myUserInfo.countryCode}}" label="{{international.country_code[language]}}" input-align="right" border="{{ false }}" disabled="{{true}}" />
					<!-- 出生日期 -->
					<van-field class="label" value="{{myUserInfo.birthday}}" label="{{international.birthday[language]}}" input-align="right" border="{{ false }}" disabled="{{true}}" />
					<!-- 性别 -->
					<van-field class="label" value="{{myUserInfo.gender}}" label="{{international.sex[language]}}" input-align="right" border="{{ false }}" disabled="{{true}}" />
					<!-- 护照有效期 -->
					<van-field class="label" value="{{myUserInfo.efficientTime}}" label="{{international.passport_validity[language]}}" input-align="right" border="{{ false }}" disabled="{{true}}" />
				</block>
				<!-- 通用内外宾 -->
				<block wx:if="{{ myUserInfo ||  language == 'ch'}}">
					<!-- 姓名 -->
					<van-field wx:if="{{util.indexOf(needLoginList,1)>-1}}" clearable class="label" value="{{username}}" bindinput="getInputName" label="{{international.name[language]}}" placeholder="{{international.name_tit[language]}}" input-align="right" border="{{ false }}" disabled="{{isDisabled || language == 'en'}}" error-message="{{!warnName.status?warnName.errMsg:''}}" error-message-align="right" />
					<!-- 身份证号 -->
					<van-field maxlength="{{18}}" wx:if="{{util.indexOf(needLoginList,2)>-1}}" clearable value="{{myUserInfo&&isDisabled?util.desensitization(idNumber,6,14):idNumber}}" bindinput="getInputIdcard" label="{{international.idNumber[language]}}" placeholder="{{international.idNumber_tit[language]}}" input-align="right" border="{{ false }}" type="idcard" disabled="{{isDisabled || language == 'en'}}" error-message="{{!warnIdcard.status?warnIdcard.errMsg:''}}" error-message-align="right" />
					<!-- 卡号 -->
					<van-field wx:if="{{util.indexOf(needLoginList,4)>-1}}" clearable value="{{cardIdEx}}" bindinput="getCardNumber" label="{{international.Card_number[language]}}" placeholder="{{international.card_prompt[language]}}" input-align="right" border="{{ false }}" type="cardIdEx" disabled="{{isDisabled}}" error-message="{{!warnCardId.status?warnCardId.errMsg:''}}" error-message-align="right" />
					<!-- 手机号 -->
					<van-field wx:if="{{util.indexOf(needLoginList,3)>-1&&needPhone}}" clearable value="{{myUserInfo&&isDisabled?util.desensitization(phone,3,7):phone}}" bindinput="getInputPhone" placeholder="{{international.Phone_prompt[language]}}" label="{{international.Phone[language]}}" error-message="{{!warnPhone.status?warnPhone.errMsg:''}}" error-message-align="right" input-align="right" border="{{ false }}" type="number" disabled="{{isDisabled}}" />
					<van-cell wx:if="{{util.indexOf(needLoginList,3)>-1&&!needPhone}}" title-class="line-height {{isDisabled?'info':''}}" title="{{international.Phone[language]}}" border="{{ false }}">
						<view class="phone-css">{{phone}}</view>
						<button slot="right-icon" class="btn btn1" open-type="getPhoneNumber" disabled="{{isDisabled}}" bindgetphonenumber="getPhoneNumber">
							{{international.Gain[language]}}
						</button>
					</van-cell>
				</block>
			</van-cell-group>
		</view>
		<!-- 按钮区 -->
		<!-- 外宾发起ocr -->
		<view wx:if="{{language === 'en' && !isDisabled && !myUserInfo}}">
			<view class="btn-area">
				<button hover-class="btn-click-submit" hover-stay-time="100" bindtap="goOCR">{{international.clickAuthentication[language]}}</button>
			</view>
		</view>
		<!-- 提交按钮 -->
		<view class="btn-area" wx:if="{{(language === 'ch' && !isDisabled) || (language === 'en' && !isDisabled && myUserInfo)}}">
			<button bindtap="Certification" wx-if="{{language === 'ch' && !isDisabled}}">{{international.Certification[language]}}</button>
			<button hover-class="btn-click-submit" hover-stay-time="100" bindtap="update" wx-if="{{language === 'en' && !isDisabled && myUserInfo}}">{{international.confirm[language]}}</button>
		</view>
	</view>
</view>