<form catchsubmit="beforeFormSubmit">
<view style="padding-bottom: 120px;">

    <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 " style="margin-top: 0;">
        <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" bindinput="bothwayBind" data-type='tel' value="{{userInfo.tel}}" placeholder="请输入电话" placeholder-class="input__placeholder" />
          </view>
        </view>
      </view>
    </view>    


    <view class="weui-cells__group weui-cells__group_form ">
      <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">联系电话</label>
          </view>
          <view class="weui-cell__bd">
            <input class="weui-input" type="number" name="tel" 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">
            <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">
            <radio-group bindchange="radioChange" name="sex" class="fr radiogroup">
              <view class="dib" wx:for="{{sex}}" wx:key="value">
                <radio value="{{item.id}}" color="#ff4400" 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 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" style="align-items:center">
          <view class="weui-cell__hd fsc" style="">
            <label class="weui-label c085 ">家庭住址</label>
          </view>
          <view class="weui-cell__bd">
            <textarea class="weui-input tal" type="text" name="address" bindinput="bothwayBind" data-type='address' value="{{userInfo.address}}" placeholder="请输入家庭住址" placeholder-class="tar c9" auto-height style="min-height:23px"></textarea>
          </view>
        </view>

       
      </view>
    </view>
    <view class="weui-cells__group weui-cells__group_form" style="margin-top: 10px;">
    <view class="weui-cells weui-cells_form">
        <view class="weui-cell" style="display: block;">
          <view class="weui-cell__hd"><label class="weui-label c6 f16">上传附件</label></view>
          <view class="weui-cell__bd1 mt20">
            <view class="weui-uploader__bd">
              <view class="weui-uploader__files" id="uploaderFiles">
                <block wx:for="{{files}}" wx:key="*this">
                  <view class="weui-uploader__file pr" bindtap="previewImage" id="{{item}}">
                    <image src="http://matripe.oss-cn-beijing.aliyuncs.com/nezha/del.svg" data-id="{{item.id}}" data-url="{{item.url}}" catchtap="delImgs" class="delImg" style="width:20px;height: 20px;"></image>
                    <image  catchtap="showImgs" mark:url='{{item.url}}' class="weui-uploader__img" src="{{item.url}}" mode="aspectFill" />
                  </view>
                </block>
              </view>
              <view class="weui-uploader__input-box">
                <view class="weui-uploader__input" bindtap="chooseMedia"></view>
              </view>
            </view>
          </view>
          <view class="clb"></view>
        </view>
        </view>
      </view>

      <view class="f12 ml16 c045 mt12">
  <radio-group  class="dib">
    <radio checked="{{switch1Checked}}" catchtap="switch1Change" value="0" class="dib" color="#ff4400" 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="justify-content: center;">
    <button class="dtBtnD mr12" catchtap="shrink" data-edit="2">取消</button>
    <button type='primary'  class="dtBtn ml12" loading="{{loading}}" hover-class="button-hover" formType="submit">确定</button>

  </view>

</form>