<!--packageH/signPage/signCompany/signCompany.wxml-->
<view class="form">

  <!-- 进行认证  第二步 start-->
  <view class="content" wx:if="{{step === 1}}">
    <view class="title row">组织信息核验</view>
    <view class="person row">经办人身份</view>
    <view class="title row">法定代表人</view>
    <van-form bind:submit="onSubmit">
      <view class="gray row">法定代表人信息</view>
      <van-field 
        value="{{form.legal_name}}" 
        name="姓名" 
        label="姓名" 
        placeholder="请填写法定代表人姓名"
        data-type="form.legal_name"
        bind:change="handlerInput"
      />
      <van-field 
        value="{{form.legal_idNo}}" 
        name="身份证号" 
        label="身份证号" 
        placeholder="请填写身份证号"
        data-type="form.legal_idNo"
        bind:change="handlerInput"
      />
      <view class="gray row">组织机构信息</view>


      <view class="inp-item">
        <view class="item-box">
          <view class="left-text" style="width: 200rpx;">证件号类型</view>
          <view class="right-content" style="flex: 1;">
            <van-radio-group 
              value="{{form.org_type}}" 
              direction="horizontal" 
              data-type="form.org_type" 
              bind:change="handlerInput"
            >
              <van-radio style="display: flex;" name="1">统一社会信用代码</van-radio>
              <van-radio style="display: flex; margin-top: 8rpx;" name="2">工商注册号（部分个体户）</van-radio>
            </van-radio-group>
          </view>
        </view>
      </view>

      <view class="row" style="color: #ff2424;">请务必按照营业执照显示选择！</view>
      <van-field 
        value="{{form.name}}" 
        name="组织名称" 
        label="组织名称" 
        placeholder="请填写组织名称"
        data-type="form.name"
        bind:change="handlerInput" 
      />
      <van-field 
        value="{{form.org_code}}" 
        name="证件号" 
        label="证件号" 
        placeholder="请填写证件号"
        data-type="form.org_code"
        bind:change="handlerInput" 
      />
    </van-form>
  </view>
  <view class="btn" wx:if="{{step === 1}}" bindtap="sureIdentify">提交</view>

  <van-popup 
    show="{{showTip}}" 
    round 
    custom-style="width: 70%; height: 35%;" 
    close-on-click-overlay="true"
    bind:close="closeTip"
  >
    <view class="popBox" style="text-align: center; padding: 20rpx;">
      <image class="tips" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/sign/yq_sign_tip@2x.png" alt=""></image>
      <view class="tip-title">为了保证组织机构实名认证有效性，请您在手机短信中点击《E签宝》发送的链接签署法定代表人授权书！然后再点击原芸签发送的合同链接完成合同签署！</view>
    </view>
  </van-popup>

</view>
