<!-- pages/realName/index.wxml -->
<!-- <view class="navagition">
  <view class="goback iconfont icon-xiangzuo" bindtap='goBack'></view>
</view>-->
<!-- <view class="" hover-class="none" hover-stop-propagation="false" wx:if="{{!isFinish}}">
  <view class="progress">
    <view class="{{level == 1 || level == 2|| level == 3? 'active':''}}"></view>
    <view class="{{level == 2 || level == 3 &&  level != 1 ?'active':''}}"></view>
    <view class="{{level == 3  ?'active':''}}"></view>
  </view>
  <view class="progressInfo" hover-class="none" hover-stop-propagation="false">
    <view class="{{level == 1 || level == 2|| level == 3? 'active':''}}" hover-class="none" hover-stop-propagation="false">身份证正面</view>
    <view class="{{level == 2 || level == 3 &&  level != 1 ?'active':''}}" hover-class="none" hover-stop-propagation="false">身份证背面</view>
    <view class="{{level == 3  ?'active':''}}" hover-class="none" hover-stop-propagation="false">确认信息</view>
  </view>
</view>-->
<view class="IDcardBox" hover-class="none" hover-stop-propagation="false">
  <view class="imgBox" bindtap="uploadCard" data-type="2">
    <image src="{{ user.idcardImgFront ? user.idcardImgFront : 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/face.png'}}" alt />
    <view class="cardText c6" wx:if="{{!user.idcardImgFront}}" hover-class="none" hover-stop-propagation="false">
      <view class="iconfont icon-tianjia f26 c9 fw500"></view>
      <text class selectable="false" space="false" decode="false">人像面照片</text>
    </view>
  </view>
  <view class="imgBox" bindtap="uploadCard" data-type="3">
    <image src="{{user.idcardImgBack ? user.idcardImgBack :   'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/back.png'}}" alt />
    <view class="cardText c6" wx:if="{{!user.idcardImgBack}}" hover-class="none" hover-stop-propagation="false">
      <view class="iconfont icon-tianjia f26 c9 fw500"></view>
      <text class selectable="false" space="false" decode="false">国徽面照片</text>
    </view>
  </view>
</view>
<view class="infoBox mt10">
  <view class="userInfo">
    <view class="bb1 dfsb">
      <span>姓名</span>
      <span>
        <input class="tar" type="text" placeholder-class="c9" placeholder="输入姓名" bindinput="getRealName" value="{{user.realName}}" />
      </span>
    </view>
    <view class="bb1 dfsb">
      <span>性别</span>
      <picker mode="selector" value="{{user.sex}}" bindchange="changeDateTime" bindcolumnchange="changeDateTimeColumn" range="{{sexArr}}" range-key="text" style>
        <view class="{{user.sexStr ? 'c3' : 'c9'}}" hover-class="none" hover-stop-propagation="false">{{!!user.sexStr ? user.sexStr : '选择性别' }}</view>
      </picker>
    </view>
    <view class="dfsb" hover-class="none" hover-stop-propagation="false">
      <span>身份证号</span>
      <span>
        <input class="tar" type="text" placeholder-class="c9" placeholder="输入身份证号" bindinput="getId" value="{{user.IDCard}}" maxlength="18" />
      </span>
    </view>
  </view>
</view>
<view class="successIcon" wx:if="{{isFinish}}">
  <view class="iconfont icon-tijiaochenggong"></view>
  <view class>上传成功</view>
</view>

<!-- <view class="toNext {{user.idcardImgFront ? 'ysd-basebg-color':''}}" hover-class="none" data-level='1' bindtap='toNext' wx:if='{{level == 1 && !isFinish}}'>下一步</view>
<view class="toNext {{user.idcardImgBack ? 'ysd-basebg-color':''}}" hover-class="none" data-level='2'  bindtap='toNext' wx:if='{{level == 2 && !isFinish}}'>下一步</view>
<view class="toNext {{canFinish ? 'ysd-basebg-color':''}}" hover-class="none" bindtap='toFinish' wx:if='{{level == 3 && !isFinish}}'>确定</view>-->
<button wx:if="{{user.idcardImgFront && user.idcardImgBack}}" class="finish loginOut normalBtn mt32" hover-class="none" hover-stop-propagation="false" bindtap="toFinish">确定</button>
<button wx:else class="finish loginOut normalBtn mt32" style="background-color:#ccc" hover-class="none" hover-stop-propagation="false">确定</button>

<view class="f12 tc c045 mt32">
  <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 class="f14 tac" style='color:#576B95' hover-class="none" hover-stop-propagation="false">
  修改认证
</view>-->
