<form catchsubmit="beforeFormSubmit" wx:if="{{pageShow}}">
  <view style="padding:0 10px;padding-bottom: 160px;overflow: {{iosDialog1?'hidden':''}};" class="{{iosDialog1?'hasHigh':''}}">
    <!-- <view class="quickapply mt10" catchtap="chooseIdCard">
      <view class="upload">
        <view class="t-icon t-icon-paizhao"></view>
        <view size='mini' class="info">
          <view class="" hover-class="none" hover-stop-propagation="false">拍照或相册上传</view>
          <view class="" hover-class="none" hover-stop-propagation="false">系统智能识别并自动填写</view>
        </view>
      </view>
      <view class="idCardPreview" style="display: flex;align-items: center; justify-content: flex-end;" hover-class="none" hover-stop-propagation="false">
        <image class="" wx:if='{{currentImg}}' src="{{currentImg}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" catchtap='showImg'></image>
        <view class="t-icon t-icon-gengduo111" hover-class="none" hover-stop-propagation="false" style="width: 18px;height: 18px;"  wx:else></view>
      </view>
    </view>-->

    <!-- <view class="weui-cells__group weui-cells__group_form mt10">
      <view class="weui-cells weui-cells_form ">
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c085">联系电话</label>
          </view>
          <view class="weui-cell__bd">
            <input class="weui-input" type="number" name="tel" bindblur="getTel" bindinput="bothwayBind" data-type='tel' value="{{userInfo.tel}}" placeholder="请输入电话" placeholder-class="input__placeholder" />
          </view>
        </view>
      </view>
    </view>-->

    <view class="f14 pl16 c6" hover-class="none" style="height:48px;line-height:67px" hover-stop-propagation="false">信息</view>
    <view class="weui-cells__group weui-cells__group_form" style="border-radius:8px;overflow:hidden">
      <view class="weui-cells weui-cells_form" style="margin-top: 0;">
        <view class="weui-cell name">
          <view class="weui-cell__hd display-flex aic" style="max-width:80px">
            <label class="weui-label c085">
              姓名
              <text class="cfred">*</text>
            </label>
            <image class="idcardImg" wx:if="{{idCardImg}}" bindtap="previewImage" style="width: 48px ;height:32px" src="{{idCardImg}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
          </view>
          <view class="weui-cell__bd">
            <input class="weui-input" type="text" name="userName" bindinput="bothwayBind" data-type="name" value="{{userInfo.name}}" placeholder="手动输入或拍照自动识别 →" placeholder-class="input__placeholder" />
          </view>

          <view class="t-icon t-icon-paizhao5 rightPz" catchtap="chooseIdCard"></view>
        </view>

        <view class="weui-cell sex">
          <view class="weui-cell__hd">
            <label class="weui-label c085">
              性别
              <text class="cfred">*</text>
            </label>
          </view>
          <view class="weui-cell__bd">
            <radio-group bindchange="radioChange" name="sex" class="fr radiogroup">
              <view class="dib" wx:for="{{sex}}" wx:key="value">
                <radio value="{{item.id}}" color="var(--color-ysd)" checked="{{item.checked}}" style="transform:scale(.8);margin-right:4px;">
                  <view class="dib f20" style="margin-left:4px">{{item.value}}</view>
                </radio>
              </view>
            </radio-group>
          </view>
        </view>
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c085">
              年龄
              <text class="cfred">*</text>
            </label>
          </view>
          <view class="weui-cell__bd">
            <!-- <input class="weui-input" type="number" name="age" bindinput="bothwayBind" data-type='age' value="{{userInfo.age}}" placeholder="请输入年龄" placeholder-class="input__placeholder" /> -->

            <picker bindchange="bindPickerChangeAge" value="{{ageIndex}}" range="{{ageArray}}">
              <view class="picker tr">
                <block wx:if="{{ageIndex == -1}}">
                  <view class="ccc tr dib" style="color:#ccc">请选择年龄</view>
                </block>
                <block wx:else>
                  <view class="c3 tr dib">{{ageArray[ageIndex]}}</view>
                </block>
                <i class="iconfont icon-gengduo11 f16 ml4 dib pr c9" style="line-height:1;top:1px;"></i>
              </view>
            </picker>
          </view>
        </view>

        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c085">民族</label>
          </view>
          <!-- <view class="weui-cell__bd">
            <input class="weui-input" type="text" name="nation" value="{{userInfo.nationality}}" placeholder="请输入民族" placeholder-class="weui-input__placeholder" />
          </view>-->
          <view class="weui-cell__bd">
            <picker bindchange="bindPickerChangeNation" data-id="{{item.id}}" value="{{item.name}}" wx:for-item="item" range="{{nationArray}}" range-key="name">
              <view class="picker tr">
                <block wx:if="{{nationIndex == -1}}">
                  <view class="ccc tr dib" style="color:#ccc">请选择民族</view>
                </block>
                <block wx:else>
                  <view class="c3 tr dib">{{nationArray[nationIndex].name}}</view>
                </block>
                <i class="iconfont icon-gengduo11 f16 ml4 dib pr c9" style="line-height:1;top:1px;"></i>
              </view>
            </picker>
          </view>
        </view>
        <!-- <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c085">联系电话</label>
          </view>
          <view class="weui-cell__bd">
            <input class="weui-input" type="number" name="tel" bindblur="getTel" bindinput="bothwayBind" data-type='tel' value="{{userInfo.tel}}" placeholder="请输入电话" placeholder-class="input__placeholder" />
          </view>
        </view>-->
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c085">
              身份证号
              <text class="cfred">*</text>
            </label>
          </view>
          <view class="weui-cell__bd display-flex">
            <input class="weui-input flex-1" type="idcard" name="idCard" bindinput="bothwayBind" data-type="num" value="{{userInfo.num}}" placeholder="请输入身份证号" placeholder-class="input__placeholder" />
          </view>
        </view>
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c085">家庭住址</label>
          </view>
          <view class="weui-cell__bd {{iosDialog1?'heiover':''}}" style="opacity: {{iosDialog1?0:1}} !important;">
            <textarea class="weui-input" type="text" name="address" bindinput="bothwayBind" data-type="address" value="{{userInfo.address}}" disable-default-padding="{{true}}" placeholder="请输入家庭住址" placeholder-class="input__placeholder" auto-height style="min-height:23px"></textarea>
          </view>
        </view>
        <view class="weui-cell display-flex">
          <view class="weui-cell__hd">
            <label class="weui-label c085">上传附件</label>
          </view>
          <!-- <view class="weui-cell__bd">
            <input class="weui-input" type="text" name="nation" value="{{userInfo.nationality}}" placeholder="请输入民族" placeholder-class="weui-input__placeholder" />
          </view>-->
          <view class="weui-cell__bd cbc" style="text-align:right" bindtap="chooseMedia">
            请选择附件上传
            <i class="iconfont icon-gengduo11 f16 ml4 dib pr c9" style="line-height:1;top:1px;"></i>
          </view>
        </view>
        <scroll-view scroll-x="true" wx:if="{{files.length > 0}}" class="uploadImgBox" hover-class="none" hover-stop-propagation="false" enable-flex>
          <!-- <view class="fsa" style="justify-content:start" hover-class="none" hover-stop-propagation="false"> -->
          <view class="uploadImgSubBox" style wx:for="{{files}}" hover-class="none" hover-stop-propagation="false">
            <i class="iconfont icon-guanbi11 close" catchtap="deleteImg" data-id="{{item.id}}"></i>
            <image class src="{{item.url}}" bindtap="showImgs" data-url="{{item.url}}" mode="aspectFill" lazy-load="false" binderror bindload></image>
          </view>
          <!-- </view> -->
        </scroll-view>
      </view>
    </view>

    <!-- <view class="weui-cells__group weui-cells__group_form bt1" style="margin-top: 0px;background-color:#fff">
    </view>-->

    <view class="weui-cells__group weui-cells__group_form mt10" style="margin-top:10px;border-radius:8px;overflow:hidden">
      <view class="weui-cells weui-cells_form">
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c085">电话</label>
          </view>
          <view class="weui-cell__bd">
            <input class="weui-input" type="number" name="tel" bindblur="getTel" bindinput="bothwayBind" data-type="tel" value="{{userInfo.tel}}" placeholder="请输入电话" placeholder-class="input__placeholder" />
          </view>
        </view>
      </view>
    </view>
    <view class="f14 pl16 c6" hover-class="none" style="height:48px;line-height:67px" hover-stop-propagation="false">职位信息</view>
    <view class="weui-cells__group weui-cells__group_form mt10" style="border-radius:8px;overflow:hidden">
      <view class="weui-cells weui-cells_form">
        <view class="weui-cells searchbar-result" wx:if="{{searchListShow}}">
          <view class="weui-cell weui-cell_active weui-cell_access" wx:for="{{storeArray}}" wx:for-item="item" wx:for-index="idx" data-name="{{item.aliasName}}" data-id="{{item.id}}" bindtap="setValue">
            <view class="weui-cell__bd weui-cell_primary">
              <view>{{item.aliasName}}</view>
            </view>
          </view>
        </view>
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c3">
              报名岗位
              <text class="cfred">*</text>
            </label>
          </view>
          <view class="weui-cell__bd">
            <view class hover-class="none" hover-stop-propagation="false" style="text-align:right;color:#333" bindtap="toJobAndAgencySelect" data-type="job">
              <view class hover-class="none" hover-stop-propagation="false" wx:if="{{jobName}}">
                {{jobName}}
                <i class="iconfont icon-gengduo1 f16 ml4 dib pr c9" style="line-height:1;"></i>
              </view>
              <view class hover-class="none" hover-stop-propagation="false" style="text-align:right;color:#ccc" wx:else>
                请选择岗位
                <i class="iconfont icon-gengduo1 f16 ml4 dib pr c9" style="line-height:1;"></i>
              </view>
            </view>
          </view>
        </view>
        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c3">
              面试时间
              <text class="cfred">*</text>
            </label>
          </view>
          <view class="weui-cell__bd tr">
            <picker mode="multiSelector" value="{{dateTime}}" bindchange="changeDateTime" bindcolumnchange="changeDateTimeColumn" range="{{dateTimeArray}}" style="color:#333">
              {{!!currentTime?currentTime:'----'}}
              <i class="iconfont icon-rili f16 ml4 dib pr c9" style="line-height:1;"></i>
            </picker>
          </view>
        </view>

        <view class="weui-cell">
          <view class="weui-cell__hd">
            <label class="weui-label c3">
              <!-- <text class="cfred">*</text> -->
              预计到达
            </label>
          </view>
          <view class="weui-cell__bd tr">
            <picker mode="multiSelector" value="{{dateTime2}}" bindchange="changeDateTime2" bindcolumnchange="changeDateTimeColumn2" range="{{dateTimeArray}}" style="color:#333">
              {{!!currentTime2?currentTime2:'----'}}
              <i class="iconfont icon-rili f16 ml4 dib pr c9" style="line-height:1;"></i>
            </picker>
          </view>
        </view>

        <view class="weui-cell" style="padding-bottom:{{isShowZhedie ? 0 : 16 }}px;">
          <view class="weui-cell__hd">
            <label class="weui-label c3">政策</label>
          </view>
          <view class="weui-cell__bd" style="padding-top:8px">
            <view style="color: #333;white-space:pre-line;line-height:1.8" class="{{!zhedie ? 'over3':''}} {{policy?'tal':'tar'}}">{{policy == "" ?'-':policy}}</view>
          </view>
        </view>

        <block wx:if="{{isShowZhedie}}">
          <view class="tc f14 c9 bt1 mt8 ml10 mr10" style="line-height:42px;" hover-class="thover" catchtap="ifZhedie" wx:if="{{zhedie}}">
            收起
            <i class="iconfont icon-shouqi f14"></i>
          </view>
          <view class="tc f14 c9 bt1 mt8 ml10 mr10" style="line-height: 42px;" hover-class="thover" catchtap="ifZhankai" wx:if="{{!zhedie}}">
            展开
            <i class="iconfont icon-xiala1 f14"></i>
          </view>
        </block>
      </view>
    </view>

    <view class="remark display-flex bgcf mt10 br_8">
      <view class="weui-cell__hd">
        <label class="weui-label c085">备注</label>
      </view>
      <view class="weui-cell__bd {{iosDialog1?'heiover':''}}" style="opacity: {{iosDialog1?0:1}} !important;">
        <textarea class="weui-input" type="text" name="desp" bindinput="bothwayBind" data-type="desp" value="{{userInfo.desp}}" disable-default-padding="{{true}}" placeholder="请输入备注" placeholder-class="input__placeholder" auto-height style="min-height:23px"></textarea>
      </view>
    </view>

    <!-- <view class="weui-cells__group weui-cells__group_form mt10" style="background-color:#fff;margin-top:10px;border-radius:8px;overflow:hidden">
      <view class="weui-cell" style="background-color:#fff">
        <view class="weui-cell__hd">
          <label class="weui-label c6">
            代理
          </label>
        </view>
        <view class="weui-cell__bd">
          <view class hover-class="none" hover-stop-propagation="false" style="text-align:right;color:#999" data-type="agency">
            <view class hover-class="none" hover-stop-propagation="false" wx:if="{{agentName}}">
              {{agentName}}
            </view>
          </view>
        </view>
      </view>
    </view> -->
    <view class="f12 ml8 c045 mt12">
      <radio-group class="dib">
        <radio checked="{{switch1Checked}}" catchtap="switch1Change" value="0" class="dib" color="#0dcc91" style="transform:scale(.7);position:relative;top:-2px;" />
      </radio-group>我已阅读并同意
      <navigator url="../../serviceTerm/index" class="aLink dib">《服务协议》</navigator>及
      <navigator url="../../secret/index" class="aLink dib">《隐私政策》</navigator>
    </view>
  </view>

  <view class="btmFix display-flex" style="padding-left: 16px;padding-right: 16px;height:calc(constant(safe-area-inset-bottom) + 64px);height:calc(env(safe-area-inset-bottom) + 64px);">
    <view class="c6 f16 flex-1" catchtap="shrink" style="line-height: 56px;">取消</view>

    <!-- <button class="dtBtnD mr12" catchtap="showInfo" style="width: 90px !important;margin-right: 16px;">预览</button> -->
    <button class="loginOut ml12" style="width: 260px;" loading="{{loading}}" hover-class="button-hover" formType="submit">立即报名</button>
  </view>
</form>

<!-- catchtouchmove='preventTouchMove' -->
<view class="fadeIn" wx:if="{{iosDialog1}}" style="position: relative;z-index: 999;">
  <view class="weui-mask" catchtouchmove="preventTouchMove"></view>
  <view class="weui-dialog">
    <view class="weui-dialog__hd" style="border-bottom: 1px solid #eee;padding: 12px 12px;">
      <strong class="weui-dialog__title">报名信息</strong>
    </view>
    <view class="weui-dialog__bd wbv0" style="margin-bottom: 0;">
      <view class="f16 c3 mb8 mt8">
        <text style="min-width:90px" class="dib tr">姓名：</text>

        <block wx:if="{{userInfo.name}}">
          <text class="fwb" wx:if="{{userInfo.name}}">{{userInfo.name}}</text>
          <text class="fwb" wx:if="{{userInfo.sex}}">
            /{{(userInfo.sex == '1' || userInfo.sex == '男') ? '男' :
            '女'}}
          </text>
          <text class="fwb" wx:if="{{userInfo.age}}">/{{userInfo.age}}岁</text>
          <text class="fwb" wx:if="{{userInfo.nationality && userInfo.nationality!='族'}}">/{{userInfo.nationality}}</text>
        </block>
        <block wx:else>-</block>
      </view>

      <view class="f16 c3 mb8">
        <text style="min-width:90px" class="dib tr">电话：</text>
        <text style="color:#576B95;">
          {{userInfo.tel == '' || userInfo.tel == null || userInfo.tel == 'undefined' ? '-' :
          userInfo.tel}}
        </text>
      </view>

      <view class="f16 c3 mb8">
        <text style="min-width:90px" class="dib tr">身份证号：</text>
        <text>{{userInfo.num == '' || userInfo.num == null || userInfo.num == 'undefined' ? '-' : userInfo.num}}</text>
      </view>
      <view class="f16 c3 mb8">
        <text style="min-width:90px" class="dib tr">家庭住址：</text>
        <text>
          {{userInfo.address == '' || userInfo.address == null || userInfo.address == 'undefined' ? '-' :
          userInfo.address}}
        </text>
      </view>

      <view class="f16 c3 mb8 mt20">
        <text style="min-width:90px" class="dib tr">报名岗位：</text>
        <text class="fwb">{{jobName || '-'}}</text>
      </view>
      <view class="f16 c3 mb8">
        <text style="min-width:90px" class="dib tr">面试时间：</text>
        <text>{{currentTime}}</text>
      </view>

      <view class="f16 c3 mb8">
        <text style="min-width:90px" class="dib tr">接待时间：</text>
        <text>{{currentTime2}}</text>
      </view>

      <view class="f16 c3 mb8">
        <text style="min-width:90px" class="dib tr">政策：</text>
        <text style>{{policy || '-'}}</text>
      </view>
    </view>
    <view class="weui-dialog__ft">
      <view aria-role="button" class="weui-dialog__btn weui-dialog__btn_default" bindtap="copyClose">复制文本</view>
      <view aria-role="button" class="weui-dialog__btn weui-dialog__btn_primary" bindtap="close1">知道了</view>
    </view>
  </view>
</view>
