<form wx:if="{{type == 3 || type == 1}}" catchsubmit="next">
  <view class="item">
      <label>姓名</label>
      <input value="{{name}}" name='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 value="{{idno}}" name='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">
        <text wx:if="{{record<0}}">请选择</text>
          {{recordArray[record]}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view>

  <view class="item">
      <label>手机号</label>
      <input value="{{phone}}"  name='phone' type="number" placeholder="请输入您的手机号"></input>
  </view>

  <view class="item">
      <label>单位全称</label>
      <input placeholder-style="color:#358BFF"  value="{{company}}" name='company' placeholder="单位全称（无单位可不填写）"></input>
  </view>

  <view class="item" wx:if="{{type != 3}}" style="margin-top:10px;">
      <label>作业类别</label>
      <picker  data-name='category'  bindchange="pickerChange" value="{{category}}" range="{{categoryArray}}" range-key="name">
        <view class="picker">
          <text wx:if="{{category<0}}">请选择</text>
          {{categoryArray[category].name}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>

      <view wx:if="{{categoryArray[category].intro}}" class="intro">{{categoryArray[category].intro}}</view>
  </view>
 <view class="item" wx:if='{{dev!=""}}' bindtap="open">
    <label>设备种类</label> <text class="dev_text">{{dev}}</text>
  </view>
  <view class="item" wx:if="{{type != 3}}">
      <label wx:if="{{z_type == '特种作业人员'}}">准操项目</label>
      <label wx:if="{{z_type == '特种设备培训'}}">项目代码</label>
      <label wx:if="{{z_type !== '特种设备培训'&&z_type !== '特种作业人员'}}">资格类型</label>
      <picker  data-name='subject'  bindchange="pickerChange" value="{{subject}}" range="{{subjectArray}}" range-key="name">
        <view class="picker">
        <text wx:if="{{subject<0}}">请选择</text>
          {{subjectArray[subject].name}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
      <view wx:if="{{subjectArray[subject].intro}}" class="intro">{{subjectArray[subject].intro}}</view>
  </view>

  <view class="item">
      <label>培训类型</label>
      <picker name='train_type' data-name='train'  bindchange="pickerChange" value="{{train}}" range="{{trainArray}}" range-key="name">
        <view class="picker">
        <text wx:if="{{train<0}}">请选择</text>
          {{trainArray[train].name}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
      <view wx:if="{{train>=0}}" class="intro">{{trainArray[train].intro}}</view>
  </view>
  <view class="item" wx:if="{{classList.length>0 && selectClass}}">
      <label>班级</label>
      <picker  data-name='class_'  bindchange="pickerChange" value="{{class_}}" range="{{classList}}" range-key="name">
        <view class="picker">
        <text wx:if="{{class_<0}}">请选择</text>
          {{classList[class_].name}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
      <view wx:if="{{class_>=0}}" class="intro">{{classList[class_].remark}}</view>
  </view>

  <!-- <view class="item">
      <label>培训时间</label>
      <picker name='time' data-name='time' value="{{time}}"  mode="date" bindchange="pickerChange">
        <view class="picker">
          {{time}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view> -->

  <!-- <view class="item">
      <label>领取方式</label>
      <picker name='receive_card' data-name='receive'  bindchange="pickerChange" value="{{receive}}" range="{{receiveArray}}">
        <view class="picker">
          {{receiveArray[receive]}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view> -->

  <view class="item" wx:if="{{receive==1}}">
      <label>所在地区</label>
      <picker name='area' data-name='area' value="{{area}}"  mode="region" bindchange="pickerChange">
        <view class="picker">
          {{area[0]}}{{area[1]}}{{area[2]}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view>
  <view class="item" wx:if="{{receive==1}}">
      <label>详细地址</label>
      <input name='address' placeholder="请输入您的详细地址"></input>
  </view>

  <view class="item">
      <label>备注</label>
      <input name='remark' placeholder="请输入您的备注"></input>
  </view>

  <view class="fee">
    <label>培训费用</label>¥{{price}}
  </view>
  <view class="fee">
    <label>审核后需支付费用</label>¥{{price}}
  </view>

  <view class="post"><button formType="submit">下一步，上传资料</button></view>
</form>

<form wx:if="{{type == 2}}" catchsubmit="next">
  <view class="item">
      <label>姓名</label>
      <input value="{{data.name}}" name='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 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 name='phone' value="{{data.phone}}" type="number" placeholder="请输入您的手机号"></input>
  </view>

  <view class="item">
      <label>单位全称</label>
      <input name='company' value="{{data.company}}"  placeholder="请输入您的单位名称"></input>
  </view>

  <view class="item" wx:if="{{!class_id}}">
      <label>作业类别</label>
      <picker  data-name='category'  bindchange="pickerChange" value="{{category}}" range="{{categoryArray}}" range-key="name">
        <view class="picker">
          <text wx:if="{{category<0}}">请选择</text>
          {{categoryArray[category].name}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>

      <view wx:if="{{categoryArray[category].intro}}" class="intro">{{categoryArray[category].intro}}</view>
  </view>
  <view class="item" wx:if='{{dev!=""}}' bindtap="open">
    <label>设备种类</label> <text class="dev_text">{{dev}}</text>
  </view>
  <view class="item" wx:if="{{!class_id}}">
       <label wx:if="{{z_type == '特种作业人员'}}">准操项目</label>
      <label wx:if="{{z_type == '特种设备培训'}}">项目代码</label>
      <label wx:if="{{z_type !== '特种设备培训'&&z_type !== '特种作业人员'}}">资格类型</label>
      <picker  data-name='subject'  bindchange="pickerChange" value="{{subject}}" range="{{subjectArray}}" range-key="name">
        <view class="picker">
        <text wx:if="{{subject<0}}">请选择</text>
          {{subjectArray[subject].name}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
      <view wx:if="{{subjectArray[subject].intro}}" class="intro">{{subjectArray[subject].intro}}</view>
  </view>

  <view class="item">
      <label>培训类型</label>
      <picker name='train_type' data-name='train'  bindchange="pickerChange" value="{{train}}" range="{{trainArray}}" range-key="name">
        <view class="picker">
        <text wx:if="{{train<0}}">请选择</text>
          {{trainArray[train].name}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
      <view wx:if="{{train>=0}}" class="intro">{{trainArray[train].intro}}</view>
  </view>

  <view class="item" wx:if="{{classList.length>0}}">
      <label>班级</label>
      <picker  data-name='class_'  bindchange="pickerChange" value="{{class_}}" range="{{classList}}" range-key="name">
        <view class="picker">
        <text wx:if="{{class_<0}}">请选择</text>
          {{classList[class_].name}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
      <view wx:if="{{class_>=0}}" class="intro">{{classList[class_].remark}}</view>
  </view>

  <!-- <view class="item">
      <label>培训时间</label>
      <picker name='time' data-name='time' value="{{time}}"  mode="date" bindchange="pickerChange">
        <view class="picker">
          {{time}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view> -->

  <!-- <view class="item">
      <label>领取方式</label>
      <picker name='receive_card' data-name='receive'  bindchange="pickerChange" value="{{receive}}" range="{{receiveArray}}">
        <view class="picker">
          {{receiveArray[receive]}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view> -->

  <view class="item" wx:if="{{receive==1}}">
      <label>所在地区</label>
      <picker name='area' data-name='area' value="{{area}}"  mode="region" bindchange="pickerChange">
        <view class="picker">
          {{area[0]}}{{area[1]}}{{area[2]}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view>
  <view class="item" wx:if="{{receive==1}}">
      <label>详细地址</label>
      <input name='address' value="{{data.address}}"  placeholder="请输入您的详细地址"></input>
  </view>

  <view class="item">
      <label>备注</label>
      <input name='remark' value="{{data.remark}}" placeholder="请输入您的备注"></input>
  </view>

  <view class="fee">
    <label>培训费用</label>¥{{data.price}}
  </view>
  <view class="fee">
    <label>审核后需支付费用</label>¥{{data.price}}
  </view>

  <view class="post"><button formType="submit">下一步，上传资料</button></view>
</form>

<view class="bg_dev" style="display:{{show_dev?'block':'none'}}"> 
  <view class="dev">
  <view>设备种类</view>
  <checkbox-group bindchange="checkboxChange">
    <label class="checkbox" wx:for="{{device_cats}}" wx:key='*this'> 
        <checkbox value="{{item}}"/>{{item}}
      </label>
    </checkbox-group>
      <button bindtap="sure">确定</button>
  </view>
</view>
