<!--pages/make_appointment/changeUserInfo/index.wxml-->

<block>
  <view class="box" wx:if="{{userType=='常客'}}">
    <!-- <view class="end-tip" wx:if="{{isRegularQRCode || temporary_adminInfo}}">
      <text wx:if="{{temporary_adminInfo}}">{{international.Lock[language]}}</text>
      <text wx:if="{{isRegularQRCode}}">{{international.scanRegularQRCode[language]}}</text>
    </view> -->
    <!-- 所在楼宇 -->
    <view class="card card-cont">
      <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="{{building_list}}" index="{{buildingIndex}}" range-key="name" placeholder="{{[international.enter_premises[language]]}}" data-type="buildingAdminId" bind:change="getValue" isAudit="{{disableSelectAdminInfo}}"></zyh-picker>
      </van-cell>
      <!-- 所在公司 -->
      <van-cell border="{{ false }}" 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="{{temporary_adminInfo?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>
  <!-- 认证 -->
  <view class="card card-cont" wx:if="{{userType=='常客'?companyAdminId:'buildingAdminId'}}">
    <zyh-face-verify userType="{{userType}}" bind:certificationState="getCertificationState" bind:updateState="getUpdateState" language="{{language}}" isDisabled="{{isDisabled}}" pageType="更改"  needLoginList="{{needLoginList}}" needPhoto="{{needPhoto}}" needRealname="{{needRealname}}" needPhone="{{needPhone}}"></zyh-face-verify>
  </view>
  <view wx:if="{{userType=='常客'}}">
    <!-- 三码合一 -->
    <view class="card card-cont" wx:if="{{threeCodeList.length>0}}">
      <three_yards xcPhone="{{phone}}" hsHour="{{hsHour}}" threeCodeList="{{threeCodeList}}" bind:isthreeYards="isthreeYards" buildingId="{{buildingAdminId}}" />
    </view>
    <!-- 自定义字段 -->
    <custom-field wx:if="{{isShowApplet}}" orgId="{{buildingAdminId}}" bind:isFillFields="isFillFields" />
  </view>
  <!-- 按钮 -->
  <view class="btn-area"  wx:if="{{userType=='常客'}}">
    <button bindtap="sure" class="{{isSubmit?'bg-blue':'bg-grey'}}" disabled="{{!isSubmit}}">{{international.submit[language]}}</button>
  </view>
</block>