<view class="getInfoByNFC" wx:if="{{type == 1}}">
  <view class="getInfoByNFCContent">
    <view class="imageBox">
      <image class src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/idCard.png" style="width: 156px;height: 91px" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>

      <image class="phone" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/phone.png" style="width: 110px;height: 196px;" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
    </view>
    <view class="f14 mt16" hover-class="none" hover-stop-propagation="false">
      请准备好
      <p style="color:#1890ff">本人</p>的身份证
      <view class hover-class="none" hover-stop-propagation="false">将进行证件识别</view>
    </view>
    <view class="f12 tc c045 mt36 fsa" style="margin-top: 106px;">
      <!-- <switch checked="{{switch1Checked}}" class="dib" color="#027AFF" style="transform:scale(.5)" bindchange="switch1Change" /> -->
      <radio-group class="dib">
        <radio checked="{{switch1Checked}}" catchtap="switch1Change" value="0" class="dib" color="#1890ff" style="transform:scale(.7)" />
      </radio-group>
      <view class="fsa" hover-class="none" style hover-stop-propagation="false">
        我已阅读并同意
        <navigator url="../serviceTerm/index" hover-class="thover" class="aLink">《服务协议》</navigator>及
        <navigator url="../secret/index" hover-class="thover" class="aLink">《隐私政策》</navigator>
      </view>
    </view>
    <view class="normalBtn loginOut mt24" bindtap="showNFC" hover-class="none" hover-stop-propagation="false">下一步</view>
    <view class="drawerBox" wx:if="{{drawerShow}}">
      <view class="drawerMask {{drawerShow ? 'showDrawer' : ''}}" bindtap="hideDrawer"></view>
      <view class="drawer {{drawerShow ? 'showDrawer' : ''}}">
        <view class="innerBox">
          <view class wx:if="{{!isGetCardInfo}}" hover-class="none" hover-stop-propagation="false">
            <view class="f24 c9" hover-class="none" hover-stop-propagation="false">已准备好扫描</view>
            <image class="mt32" src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/miniphone.png" mode="aspectFit" lazy-load="false" binderror bindload></image>
            <yz-reader appID="wxbc6d9dbb9dff5b37" class="NFCBox" appKey="7EA59AC2365DBD06D551B7780D78AD1A" appSecret="NzEzODMyZjQ4YWIxNGFiY2MwODI3NGEzZTlhOTdkNmE=" ownIdentification="wechat-nickname" bind:reading="handlerReading" style="opacity:0"></yz-reader>
            <view class="c3" hover-class="none" hover-stop-propagation="false">请把证件放到手机背面</view>
          </view>
          <view class="cardInfo" wx:else hover-class="none" hover-stop-propagation="false">
            <view class="f24 c9 tac mb32" hover-class="none" hover-stop-propagation="false">身份证信息</view>
            <view class style="width: 100%;" hover-class="none" hover-stop-propagation="false">
              <view class="mb6 fw500" hover-class="none" hover-stop-propagation="false">
                <text wx:if="{{users.name}}">{{users.name}}</text>
                <text wx:if="{{users.sex}}">/{{users.sex == '1' ? '男' : (users.sex == '2' ?'女':'')}}</text>
                <text wx:if="{{users.age}}">/{{users.age}}岁</text>
                <text wx:if="{{users.nationStr}}">/{{users.nationStr}}</text>
              </view>
              <view class="mb6" hover-class="none" hover-stop-propagation="false">{{users.address}}</view>
              <view class hover-class="none" hover-stop-propagation="false">
                <i class="t-icon t-icon-shenfenzheng2" style="width: 24px;height: 24px;vertical-align: bottom;"></i>
                {{users.number}}
              </view>
            </view>
            <view class="normalBtn loginOut mt24 tac" bindtap="NFCread" hover-class="none" hover-stop-propagation="false">确定</view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>
<!-- 
  手动输入页面
-->
<view class="getInfoByInput" wx:if="{{type == 3}}">
  <view class="title f24 fw500 pl10 mb12">个人信息</view>
  <form catchsubmit="beforeFormSubmit">
    <view class="weui-cell bb1">
      <view class="weui-cell__hd display-flex aic" style="max-width:80px">
        <label class="weui-label c085">姓名</label>
      </view>
      <view class="weui-cell__bd">
        <input class="weui-input tar" type="text" bindblur="bothwayBind" name="name" data-type="name" value="{{userInfo.name}}" placeholder="请输入姓名" placeholder-class="c9" />
      </view>
    </view>
    <view class="weui-cell bb1 fsa">
      <view class="weui-cell__hd display-flex aic" style="max-width:80px">
        <label class="weui-label c085">性别</label>
      </view>
      <view class="weui-cell__bd sexBox">
        <view class="mr12 {{userInfo.sex==1 ? 'active':''}}" bindtap="changeSex" data-type="1" hover-class="none" hover-stop-propagation="false">男</view>
        <view class="{{userInfo.sex==2 ? 'active':''}}" bindtap="changeSex" data-type="2" hover-class="none" hover-stop-propagation="false">女</view>
      </view>
    </view>
    <view class="weui-cell bb1">
      <view class="weui-cell__hd display-flex aic" style="max-width:80px">
        <label class="weui-label c085">年龄</label>
      </view>
      <view class="weui-cell__bd">
        <input class="weui-input tar" type="text" bindblur="bothwayBind" name="age" data-type="age" value="{{userInfo.age}}" placeholder="请输入年龄" placeholder-class="c9" />
      </view>
    </view>
    <view class="weui-cell bb1">
      <view class="weui-cell__hd display-flex aic" style="max-width:80px">
        <label class="weui-label c085">民族</label>
      </view>
      <view class="weui-cell__bd">
        <input class="weui-input tar" type="text" bindblur="bothwayBind" name="nation" data-type="nation" value="{{userInfo.nation}}" placeholder="请选择民族" placeholder-class="c9" />
      </view>
    </view>
    <view class="weui-cell bb1">
      <view class="weui-cell__hd display-flex aic" style="max-width:80px">
        <label class="weui-label c085">身份证号</label>
      </view>
      <view class="weui-cell__bd">
        <input class="weui-input tar" type="text" bindblur="bothwayBind" name="IDCard" data-type="IDCard" value="{{userInfo.IDCard}}" placeholder="请输入身份证号" placeholder-class="c9" />
      </view>
    </view>
    <view class="weui-cell">
      <view class="weui-cell__hd display-flex aic" style="max-width:80px">
        <label class="weui-label c085">籍贯</label>
      </view>
      <view class="weui-cell__bd">
        <input class="weui-input tar" type="text" bindblur="bothwayBind" name="nativePlace" data-type="nativePlace" value="{{userInfo.nativePlace}}" placeholder="请输入籍贯" placeholder-class="c9" />
      </view>
    </view>
    <button formType="submit" class="normalBtn loginOut sureBtn">确定</button>
  </form>
</view>
