<view class="informationDetail-page">

  <view class="white-box">
    <view class="form">

      <view class="formItem" wx:if="{{formName==='职业经历'}}">
        <view class="formLabel">单位名称</view>
        <input bindtap="jumpAddAuthName" model:value="{{dwmc}}" placeholder="请输入单位名称" data-key="单位名称" />
      </view>
      <!-- 单位介绍 -->
      <view class="formItem" wx:if="{{formName==='职业经历'}}">
        <!-- <view class="formLabel">单位介绍</view>
        <input model:value="{{dwjs}}" placeholder="请输入单位介绍" /> -->
        <view style="width: 100%;">
          <view class="formLabel">单位介绍</view>
          <textarea model:value="{{dwjs}}" placeholder="请简单描述单位信息。如“该单位是一家互联网信息服务公司，成立于2012年3月" maxlength="-1" style="margin-top:29rpx;height: 120rpx;" />
        </view>
      </view>



      <view class="formItem" wx:if="{{formName==='学历教育'||formName==='非学历教育'}}">
        <view class="formLabel">教育机构</view>
        <input bindtap="jumpAddAuthName" model:value="{{jyjg}}" placeholder="请输入教育机构名称" data-key="教育机构" />
      </view>
      <!-- 机构描述 -->
      <view class="formItem" wx:if="{{formName==='非学历教育'}}">
        <view style="width: 100%;">
          <view class="formLabel">机构描述</view>
          <textarea model:value="{{jgms}}" placeholder="请简单描述机构信息。如“该机构是一家专业的财经职业培训机构,以财会类考试培训为核心业务,包括职业资格考试和注册会计师考试”" maxlength="-1" style="margin-top:29rpx;height: 180rpx;" />
        </view>
      </view>
      <!-- 开始时间 -->
      <view class="formItem">
        <view style="width:100%">
          <view class="">开始时间</view>
          <view class="datePicker">
            <picker mode="date" value="{{date}}" start="{{now}}" bindchange="bindDateChange" data-key="startDate">
              <view wx:if="{{startDate}}" class="picker">
                {{ startDate }}
              </view>
              <view wx:else>请选择开始时间</view>
            </picker>
            <!-- <view class="to"></view>
            <picker mode="date" value="{{date}}" start="{{now}}" bindchange="bindDateChange" data-key="endDate">
              <view wx:if="{{endDate}}" class="picker">
                {{ endDate }}
              </view>
              <view wx:else>请选择结束时间</view>
            </picker> -->
          </view>
        </view>
      </view>
      <!-- 结束时间 -->
      <view class="formItem">
        <view style="width:100%">
          <view class="">结束时间</view>
          <view class="datePicker">
            <!-- <picker mode="date" value="{{date}}" start="{{now}}" bindchange="bindDateChange" data-key="startDate">
              <view wx:if="{{startDate}}" class="picker">
                {{ startDate  }}
              </view>
              <view wx:else>请选择开始时间</view>
            </picker>
            <view class="to"></view> -->
            <radio-group bindchange="radioChange" class="radio-group">
              <label class="weui-cell weui-check__label" wx:for="{{endDateTyeps}}" wx:key="{{item.value}}">
                <view class="weui-cell__hd">
                  <radio value="{{item.value}}" />
                </view>
                <view class="weui-cell__bd">{{item.name}}</view>
              </label>
            </radio-group>
            <!-- <view>
              </view> -->
          </view>
          <view class="datePicker" wx:if="{{endDateType===2}}">
            <picker mode="date" value="{{date}}" start="{{now}}" bindchange="bindDateChange" data-key="endDate">
              <view wx:if="{{endDate}}" class="picker">
                {{ endDate }}
              </view>
              <view wx:else>请选择结束时间</view>
            </picker>
          </view>

        </view>
      </view>

      <!-- 专业名称 -->
      <view class="formItem" wx:if="{{formName==='学历教育'&&(educationStage===4||educationStage===6||educationStage===8)}}">
        <view class="formLabel">专业名称</view>
        <input model:value="{{zymc}}" placeholder="请输入专业名称" />
      </view>
      <!-- 教育产品 -->
      <view class="formItem" wx:if="{{formName==='非学历教育'}}">
        <!-- <view class="formLabel">教育产品</view>
        <input model:value="{{jycp}}" placeholder="请输入教育产品" /> -->

        <view style="width: 100%;">
          <view class="formLabel">教育产品</view>
          <textarea model:value="{{jycp}}" placeholder="请输入接受的教育产品名称。如“初级会计职称、教师资格证培训”" maxlength="-1" style="margin-top:29rpx;height: 100rpx;" />
        </view>
      </view>

      <!-- 专业描述 -->
      <view class="formItem" wx:if="{{formName==='学历教育'&&(educationStage===4||educationStage===6||educationStage===8)}}">
        <view style="width: 100%;">
          <view class="formLabel">专业描述</view>
          <textarea model:value="{{zyms}}" placeholder="请简单描述专业信息。如“通信技术专业主要学习通信技术、通信系统和通信网等方面的知识，能在通信领域中从事研究、设计、制造、应用通信技术与设备。”" maxlength="-1" style="margin-top:29rpx;height: 180rpx;" />
        </view>
      </view>
      <!-- 产品描述 -->
      <view class="formItem" wx:if="{{formName==='非学历教育'}}">
        <view style="width: 100%;">
          <view class="formLabel">产品描述</view>
          <textarea model:value="{{cpms}}" placeholder="请简单描述产品信息。如“初级会计职称考试培训，设经济法基础、初级会计实务两个科目…”" maxlength="-1" style="margin-top:29rpx;height: 140rpx;" />
        </view>
      </view>

      <!-- <view class="formItem" wx:if="{{formName==='学历教育'}}">
        <view class="formLabel">专业编号</view>
        <input model:value="{{zybh}}" placeholder="请输入专业编号" />
      </view> -->

      <!-- <view class="formItem" wx:if="{{formName==='非学历教育'}}">
        <view class="formLabel">产品编号</view>
        <input model:value="{{cpbh}}" placeholder="请输入产品编号" />
      </view> -->
      <!-- 专业层次 -->
      <view class="formItem" wx:if="{{formName==='学历教育'&&educationStage===4}}">
        <view class="formLabel">专业层次</view>
        <!-- <input model:value="{{zyxz}}" placeholder="请输入专业层次" /> -->
        <!-- <picker mode="selector" bindchange="zyccChange" range="{{options}}" range-key="name" value="{{index}}">
          <view class="picker" style="height: 60rpx;">
            {{zycc?zycc:'专业层次'}}
          </view>
        </picker> -->
        <picker mode="selector" value="{{index}}" range="{{zyccOptions}}" range-key="name" bindchange="zyccChange">
          <view class="picker-box">
            {{zycc ? zycc : '请选择'}}
            <image src="/assets/images/inspected/arrows.png" />
          </view>
        </picker>
      </view>
      <!-- 学制 -->
      <view class="formItem" wx:if="{{formName==='学历教育'&&(educationStage===4)}}">
        <view class="formLabel">学制</view>
        <!-- <input model:value="{{xz}}" placeholder="请输入学制" /> -->
        <picker mode="selector" value="{{index}}" range="{{xzOptions}}" range-key="name" bindchange="xzChange">
          <view class="picker-box">
            {{xz ? xz : '请选择'}}
            <image src="/assets/images/inspected/arrows.png" />
          </view>
        </picker>
      </view>
      <!-- 是否全日制 -->
      <view class="formItem" wx:if="{{formName==='学历教育'&&educationStage===4}}">
        <view class="formLabel">是否全日制</view>
        <!-- <input model:value="{{sfqrz}}" placeholder="请输入学制" /> -->
        <picker mode="selector" bindchange="optionsChange" range="{{options}}" range-key="name" value="{{index}}">
          <!-- <view class="picker" style="height: 60rpx;">
            {{sfqrz?sfqrz:'是否全日制'}}
          </view> -->
          <view class="picker-box">
            {{sfqrz ? sfqrz : '请选择'}}
            <image src="/assets/images/inspected/arrows.png" />
          </view>
        </picker>
      </view>
      <!-- 班期 -->
      <view class="formItem" wx:if="{{formName==='学历教育'||formName==='非学历教育'}}">
        <view style="width: 100%;">
          <view class="formLabel">班期</view>
          <textarea model:value="{{bq}}" placeholder="请输入班期信息。如“2022届新闻1班、2022级实验3班”" maxlength="-1" style="margin-top:29rpx;height: 100rpx;" />
        </view>
        <!-- <view class="formLabel">班期</view>
      <input model:value="{{bq}}" placeholder="请输入班期信息。如“2022届新闻1班、2022级实验3班”" /> -->
      </view>

      <!-- 教育结果-学历教育 -->
      <view class="formItem" wx:if="{{formName==='学历教育'}}">
        <view class="formLabel">教育结果</view>
        <!-- <input model:value="{{jyjg1}}" placeholder="请输入教育结果。如“结业、取得教师资格证”" /> -->
        <picker mode="selector" bindchange="bindJyjgChange" range="{{jyjgOptions}}" range-key="name" value="{{index}}">
          <!-- {{jyjg1?jyjg1:'请选择'}} -->
          <view class="picker-box">
            {{jyjg1 ? jyjg1 : '请选择'}}
            <image src="/assets/images/inspected/arrows.png" />
          </view>
        </picker>
      </view>
      <!-- 教育结果-非学历教育 -->
      <view class="formItem" wx:if="{{formName==='非学历教育'}}">
        <view style="width: 100%;">
          <view class="formLabel">教育结果</view>
          <textarea model:value="{{jyjg1}}" placeholder="请输入教育结果。如“结业、取得教师资格证”" maxlength="-1" style="margin-top:29rpx;height: 100rpx;" />
        </view>
        <!-- <view class="formLabel">教育结果</view>
      <input model:value="{{jyjg1}}" placeholder="请输入教育结果。如“结业、取得教师资格证”" /> -->
        <!-- <view style="width: 100%;">
          <view class="formLabel">教育结果</view>
          <textarea model:value="{{jyjg1}}" auto-height placeholder="请输入教育结果。如“结业、取得教师资格证”" maxlength="-1" style="margin-top:29rpx;padding-bottom: 40rpx;" />
        </view> -->
        <!-- <picker mode="selector" bindchange="bindJyjgChange" range="{{jyjgOptions}}" range-key="name" value="{{index}}">
            {{jyjg1?jyjg1:'请选择教育结果'}}
          <view class="picker-box">
            {{jyjg1 ? jyjg1 : '请选择'}}
            <image src="/assets/images/inspected/arrows.png" />
          </view>
        </picker> -->
      </view>




      <!-- 附件 -->
      <view class="formItem">
        <view class="formLabel">附件</view>
        <!-- <view class="uploadImg" bindtap="uploadImg">请选择图片格式的附件</view> -->
        <uploadImages bindmyevent="myEventListener" isText="{{true}}"></uploadImages>
        <!-- <input type="file" model:value="{{form['附件']}}" placeholder="请选择图片格式的附件"/> -->
      </view>

      <view class="fileList">
        <view class="fileItem" wx:for="{{fileList}}" wx:key="index">
          <view class="fileItem_bottom">
            <view>
              <image class="icon_img" src="/assets/images/information/icon_img.png"></image> 附件{{index+1}}
            </view>
            <image class="icon_delete" src="/assets/images/information/icon_delete1.png" bindtap="handleDeleteFile" data-index="{{index}}"></image>
          </view>

        </view>
      </view>
    </view>

    <view class="submitLayout">
      <btn width="652rpx" height="82rpx" fontSize="28rpx" bindtap="handleCreate">确认添加</btn>
    </view>
  </view>
</view>