<form catchsubmit="beforeFormSubmit" wx:if="{{pageShow}}">
  <view style="padding:0 10px;padding-bottom: 20px;overflow: {{iosDialog1?'hidden':''}};" class="{{iosDialog1?'hasHigh':''}}">
    <view class="f14 pl8 c6 fsa" hover-class="none" style="height:48px;line-height:67px" hover-stop-propagation="false">
      <view class="" hover-class="none" hover-stop-propagation="false">
        个人信息
      </view>
    <view class="f14 ml8 c045  tar pr10">
      <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="/pages/serviceTerm/index" class="aLink dib">《服务协议》</navigator>及
      <navigator url="/pages/secret/index" class="aLink dib">《隐私政策》</navigator> -->
    </view>
    </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">
          <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 class="t-icon t-icon-paizhao5 rightPz" catchtap="chooseIdCard"></view>
        </view>
        <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>

        <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="tel" bindblur="getTel" bindinput="bothwayBind" data-type="tel" value="{{userInfo.tel}}" placeholder="请输入联系电话" placeholder-class="input__placeholder" />
          </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">
            <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">
            <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 {{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 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="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>
        </scroll-view>-->
      </view>
    </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>
    </view>

  </view>
  <button class="loginOut ml12" style="width: 260px;" loading="{{loading}}" hover-class="button-hover" formType="submit">保存</button>

  <!-- <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="loginOut ml12" style="width: 260px;" loading="{{loading}}" hover-class="button-hover" formType="submit">立即报名</button>
  </view>-->
</form>
