<form wx:if="{{!id}}" catchsubmit="next">
  <view class="item">
      <label>姓名</label>
      <input  bindinput="inputChange" data-name='name' value="{{data.name}}" placeholder=""></input>
  </view>
  <view class="item">
      <label>性别</label>
      <picker name='sex' data-name='sex' bindchange="pickerChange" value="{{sex}}" range="{{sexArray}}">
        <view class="picker">
          {{sexArray[sex]}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view>
  <view class="item">
      <label>身份证</label>
      <input bindinput="inputChange" data-name='idno'  value="{{data.idno}}" type="idcard" placeholder=""></input>
  </view>

  <view class="item">
      <label>文化程度</label>
      <picker name='education' data-name='record'  bindchange="pickerChange" value="{{record}}" range="{{recordArray}}">
        <view class="picker">
          {{recordArray[record]}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view>
  <view class="item">
      <label>手机号</label>
      <input bindinput="inputChange" data-name='phone'  value="{{data.phone}}" type="number" placeholder="请输入您的手机号"></input>
  </view>

  <view class="item">
      <label>单位全称</label>
      <input bindinput="inputChange" data-name='company'  value="{{data.company}}" placeholder="请输入您的单位名称"></input>
  </view>
  
  <!-- <view class="item xs">
      <label>学时证明</label>
      <image bindtap="preview" wx:if='{{data.classhour_imgs}}' src="{{data.classhour_imgs[0]}}" mode="widthFix"></image>
  </view> -->
</form>

<view class="content">
  <view class="item">
      <image wx:if='{{data.idnoimg_face}}' data-id='1' bindtap="takePhoto" src="{{data.idnoimg_face}}" mode="scaleToFill"></image>
      <image wx:else data-id='1' bindtap="takePhoto" src="../../images/upload.png" mode="widthFix"></image>
      <view class="title">身份证正面照，务必保持清晰</view>
      <text>注意：拍完整不能斜着拍，和复印效果一样！</text>
      <view data-id='1' bindtap="showImg" class="tips">点击查看参考图片</view>
  </view>

  <view class="item">
      <image wx:if='{{data.idnoimg_back}}' data-id='2' bindtap="takePhoto" src="{{data.idnoimg_back}}" mode="scaleToFill"></image>
      <image wx:else data-id='2' bindtap="takePhoto" src="../../images/upload.png" mode="widthFix"></image>
      <view class="title">身份证反面照，务必保持清晰</view>
      <text>注意：拍完整不能斜着拍，和复印效果一样！</text>
      <view data-id='2' bindtap="showImg" class="tips">点击查看参考图片</view>
  </view>

  <view class="item">
      <image wx:if='{{data.halfbody_img}}' data-id='3' bindtap="takePhoto" src="{{data.halfbody_img}}" mode="scaleToFill"></image>
      <image wx:else data-id='3' bindtap="takePhoto" src="../../images/upload.png" mode="widthFix"></image>
      <view class="title">上半身照，务必保持清晰</view>
      <text>注意：头像大小与1寸照片相近，纯色背景，不能穿红色衣服！</text>
      <view data-id='3' bindtap="showImg" class="tips" style="margin:0;">点击查看参考图片</view>
  </view>

  <view class="item">
      <image wx:if='{{data.education_img}}' data-id='4' bindtap="takePhoto" src="{{data.education_img}}" mode="scaleToFill"></image>
      <image wx:else data-id='4' bindtap="takePhoto" src="../../images/upload.png" mode="widthFix"></image>
      <view class="title">毕业证书照或户口本个人现实学历页，务必保持清晰！</view>
      <text>注意：拍完整不能斜着拍，和复印效果一样！</text>
      <view data-id='4' bindtap="showImg" class="tips" style="margin:0;">点击查看参考图片</view>
  </view>

  <view class="item">
      <image wx:if='{{data.oldcard_img}}' data-id='5' bindtap="takePhoto" src="{{data.oldcard_img}}" mode="scaleToFill"></image>
      <image wx:else data-id='5' bindtap="takePhoto" src="../../images/upload.png" mode="widthFix"></image>
      <view class="title">复审/换证证件照，务必保持清晰</view>
      <text>注意：拍完整不能斜着拍，和复印效果一样！</text>
      <view data-id='5' bindtap="showImg" class="tips" style="margin:0;">点击查看参考图片</view>
  </view>
</view>

<view bindtap="post" class="post">提交资料</view>

<view class="model {{show?'show':''}}" bindtap="hideImg">
  <image src="{{img}}" mode="widthFix"></image>
</view>