<!--packageH/signPage/addStaff/addStaff.wxml-->
<view class="add-staff">
    <view class="content">
      <form>
        <van-field
          class="add-input"
          input-class="van"
          value="{{form.name}}"
          name="员工姓名"
          label="员工姓名"
          placeholder="请填写员工姓名"
          data-type="form.name"
          bind:change="handlerInput"
          required
        />
        <van-field
          class="add-input"
          value="{{form.tel}}"
          name="员工手机号"
          label="员工手机号"
          placeholder="请填写员工手机号"
          data-type="form.tel"
          bind:change="handlerInput"
          required
        />
        <van-field
          class="add-input"
          title-width="120px"
          value="{{mobile}}"
          name="法定代表人手机号"
          label="法定代表人手机号"
          placeholder="请填写法定代表人手机号"
          data-type="mobile"
          bind:change="handlerInput"
        />
        <van-field
          class="add-input"
          value="{{form.sms_code}}"
          center
          clearable
          label="短信验证码"
          placeholder="请输入短信验证码"
          data-type="form.sms_code"
          bind:change="handlerInput"
        >
          <van-button slot="button" size="small" round plain type="info" bindtap="sendCode" wx:if="{{count<= 0}}">
            获取验证码
          </van-button>
          <van-button slot="button" size="small" round plain type="info" disabled wx:if="{{count> 0}}">
            {{count}}秒后重新获取
          </van-button>
        </van-field>
      </form>
      <view class="warning" wx:if="{{showWarning}}">
        <text class="red">该用户未完成个人实名认证，为了保证合同签署的合法有效，请通知该用户先完成个人实名认证。</text>
        <navigator
          class="link"
          style="display: inline-block;"
          open-type="redirect"
          url="/packageH/signPage/personBank/personBank"
        >点击跳转至实名认证</navigator>
      </view>
    </view>
    <view class="btn" bindtap="sureAdd">保存</view>

  </view>
