<!--index.wxml-->
<cu-custom bgColor="bg-darkblue" isBack="{{true}}" isRelaunch="{{false}}">
  <view slot="content" style="color:#FFFFFF;">培训报名</view>
</cu-custom>

<view class="main-box">
  <view class="row">
    <view class="row-title">培训类型:</view>
    <view class="row-content">
      <radio-group bindchange="changeType">
        <radio value="1" checked>初训</radio>
        <radio value="2">复训</radio>
        <radio value="3">换证</radio>
      </radio-group>
    </view>
  </view>
  <view class="row">
    <view class="row-title">姓名:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入姓名" bindinput="editInfo" value="{{signInfo.applyName}}" data-type="name"/>
    </view>
  </view>
  <view class="row" wx:if="{{pageType == '530279c5-32a9-44db-bbf0-a04ef1cdae66'}}">
    <view class="row-title">培训类别:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入培训类别，如：安全员、负责人" bindinput="editInfo" data-type="leibie"/>
    </view>
  </view>
  <view class="row">
    <view class="row-title">性别:</view>
    <view class="row-content">
      <radio-group bindchange="changeGender">
        <radio value="46bec29f-2368-44f7-98d0-b33246e5e16d" checked="{{signInfo.applySex == '46bec29f-2368-44f7-98d0-b33246e5e16d'}}"> 男</radio>
        <radio value="4a5f549a-d339-4403-8d26-9058e80499b1" checked="{{signInfo.applySex == '4a5f549a-d339-4403-8d26-9058e80499b1'}}"> 女</radio>
      </radio-group>
    </view>
  </view>
  <view class="row">
    <view class="row-title">文化程度:</view>
    <view class="row-content">
      <picker bindchange="bindPickerChange" value="{{cultrueIdx}}" range="{{cultrueList}}">
        <view class="picker">
          {{cultrueList[cultrueIdx]}}
        </view>
      </picker>
    </view>
  </view>
  <view class="row">
    <view class="row-title">身份证号:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入身份证号" bindinput="editInfo" data-type="card" value="{{signInfo.applyCardNumber}}"/>
    </view>
  </view>
  <view class="row">
    <view class="row-title">手机号码:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入手机号码" bindinput="editInfo" data-type="phone" value="{{signInfo.applyPhone}}"/>
    </view>
  </view>
  <view class="row">
    <view class="row-title">工作单位:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入工作单位" bindinput="editInfo" data-type="work"/>
    </view>
  </view>
  <view class="row" wx:if="{{pageType == '530279c5-32a9-44db-bbf0-a04ef1cdae66'}}">
    <view class="row-title">单位类型:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入单位类型" bindinput="editInfo" data-type="type"/>
    </view>
  </view>
  <view class="row" wx:if="{{pageType == '530279c5-32a9-44db-bbf0-a04ef1cdae66'}}">
    <view class="row-title">职务:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入职务" bindinput="editInfo" data-type="position"/>
    </view>
  </view>
  <view class="row" wx:if="{{pageType == '530279c5-32a9-44db-bbf0-a04ef1cdae66'}}">
    <view class="row-title">单位所在区域:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入单位所在区域" bindinput="editInfo" data-type="belong"/>
    </view>
  </view>
  <view class="row" wx:if="{{pageType == '530279c5-32a9-44db-bbf0-a04ef1cdae66'}}">
    <view class="row-title">毕业院校:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入毕业院校" bindinput="editInfo" data-type="school"/>
    </view>
  </view>
  <view class="row" wx:if="{{pageType == '530279c5-32a9-44db-bbf0-a04ef1cdae66'}}">
    <view class="row-title">所学专业:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入所学专业" bindinput="editInfo" data-type="subject"/>
    </view>
  </view>
  <view class="row" wx:if="{{pageType == '530279c5-32a9-44db-bbf0-a04ef1cdae66'}}">
    <view class="row-title">职称:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入职称" bindinput="editInfo" data-type="zhicheng"/>
    </view>
  </view>
  <view class="row" wx:if="{{signInfo.applyFenlei == '2' || signInfo.applyFenlei == '3' && pageType == '530279c5-32a9-44db-bbf0-a04ef1cdae66'}}">
    <view class="row-title">再培训证明照片:</view>
    <view class="row-content">
      <image src="../../images/icons/upload-repeixun.png" bindtap="uploadImg" data-type="retrain" style="width: 350rpx;" mode="widthFix" wx:if="{{!signInfo.applyRePeiXunPhoto}}"></image>
      <image src="{{sourceUrl + signInfo.applyRePeiXunPhoto}}" mode="widthFix"  bindtap="uploadImg" data-type="retrain" style="max-width: 80%;" wx:if="{{signInfo.applyRePeiXunPhoto}}"></image>
    </view>
  </view>
  <view class="row" wx:if="{{signInfo.applyFenlei == '2' || signInfo.applyFenlei == '3'}}">
    <view class="row-title">证书个人信息页:</view>
    <view class="row-content">
      <image src="../../images/icons/upload-repeixun.png" bindtap="uploadImg" data-type="person" style="width: 350rpx;" mode="widthFix" wx:if="{{!signInfo.applyTakeCardPhoto}}"></image>
      <image src="{{sourceUrl + signInfo.applyTakeCardPhoto}}" bindtap="uploadImg" data-type="person" mode="widthFix"  style="max-width: 80%;" wx:if="{{signInfo.applyTakeCardPhoto}}"></image>
    </view>
  </view>
  <view class="row" wx:if="{{signInfo.applyFenlei == '2' || signInfo.applyFenlei == '3'}}">
    <view class="row-title">证件号码:</view>
    <view class="row-content">
      <input type="text" placeholder="请输入证件号码" bindinput="editInfo" data-type="take"/>
    </view>
  </view>
  <view class="row" wx:if="{{signInfo.applyFenlei == '2' || signInfo.applyFenlei == '3'}}">
    <view class="row-title">证件有效期:</view>
    <view class="row-content">
      <picker mode="date" value="{{signInfo.cardTimeLimit}}" bindchange="bindDateChange" data-type="limit">
          <view class="picker">
              {{signInfo.cardTimeLimit}}
          </view>
      </picker>
    </view>
  </view>
  <view class="row" wx:if="{{signInfo.applyFenlei == '2' || signInfo.applyFenlei == '3'}}">
    <view class="row-title">复审时间:</view>
    <view class="row-content">
      <picker mode="date" value="{{signInfo.rePeiXunDate}}" bindchange="bindDateChange" data-type="retrain">
          <view class="picker">
              {{signInfo.rePeiXunDate}}
          </view>
      </picker>
    </view>
  </view>
  <view class="row">
    <view class="row-title">照片:</view>
    <view class="row-content">
      <image src="../../images/icons/upload-photo.png" mode="widthFix" wx:if="{{!signInfo.applyUserCardPhoto}}" style="width: 150rpx;" bindtap="uploadImg" data-type="photo"></image>
      <image src="{{sourceUrl + signInfo.applyUserCardPhoto}}" wx:if="{{signInfo.applyUserCardPhoto}}" mode="widthFix" style="width:200rpx" bindtap="uploadImg" data-type="photo"></image>
    </view>
  </view>
  <view class="row">
    <view class="row-title">学历证书:</view>
    <view class="row-content">
      <image src="../../images/icons/upload-edu.png" mode="widthFix" wx:if="{{!signInfo.educationPhoto}}" style="width: 350rpx;" bindtap="uploadImg" data-type="edu"></image>
      <image src="{{sourceUrl + signInfo.educationPhoto}}" mode="widthFix" wx:if="{{signInfo.educationPhoto}}" style="max-width: 80%;" bindtap="uploadImg" data-type="edu"></image>
    </view>
  </view>
  <view class="row">
    <view class="id-card-box">
      <view class="upload-card upload-card-f">
        <view class="card-title">身份证正面:</view>
        <view class="card-photo">
          <image src="../../images/icons/upload-id-f.png" mode="widthFix" wx:if="{{!signInfo.idCardFrontPhoto}}" style="width: 100%;" bindtap="uploadImg" data-type="cardF"></image>
          <image src="{{sourceUrl + signInfo.idCardFrontPhoto}}" wx:if="{{signInfo.idCardFrontPhoto}}" mode="widthFix" style="max-width: 100%;" bindtap="uploadImg" data-type="cardF"></image>
        </view>
      </view>
      <view class="upload-card upload-card-b">
        <view class="card-title">身份证反面:</view>
        <view class="card-photo">
          <image src="../../images/icons/upload-id-f.png" mode="widthFix" wx:if="{{!signInfo.idCardBackPhoto}}" style="width: 100%;" bindtap="uploadImg" data-type="cardB"></image>
          <image src="{{sourceUrl + signInfo.idCardBackPhoto}}" wx:if="{{signInfo.idCardBackPhoto}}" mode="widthFix" style="max-width: 100%;" bindtap="uploadImg" data-type="cardB"></image>
        </view>
      </view>
    </view>
  </view>
</view>
<view class="sign-btn-box">
  <view class="sign-btn" bindtap="submitSignOrg">确认报名</view>
</view>