<!--pages/educations-list/index.wxml-->
<!-- <view class="header_title">
  <view class="header_title_row">
    <van-row>
      <van-col span="3">
        <view class="header_img" bindtap="showPopup"><image src="/images/core.png"></image></view>
      </van-col>
      <van-col span="4">
        <view class="header_img" bindtap="goGCLB">
          <image src="/images/left.png"></image>
          <text class="header_fh">返回</text>
        </view>
      </van-col>
      <van-col span="10">
        <view class="header_name">教育培训</view>
      </van-col>
    </van-row>
  </view>
</view> -->

<!-- 
<van-popup show="{{ show }}" position="left" custom-style="width: 70%;height:100%;background:#191d28" bind:close="onClose" >
  <view class="left_max">
    <van-row class="demo clearfix">
      <van-col span="10">
        <view class="left_head"><image src="http://fileimg.makalu.cc/szgl/9015e824c5004e629049c4f72967cfdc.png"></image></view>
      </van-col>
      <van-col span="14">
        <view class="left_info">
          <view class="left_info_name">{{userName}}</view>
          <view class="left_info_name">{{loginName}}</view>
        </view>
      </van-col>
    </van-row>
  </view>
</van-popup> -->

<view class="max_new_content" style="padding-bottom: 0;">
  <project-select init="{{initData}}" bindchange="onProjectSelect"></project-select>
  <!-- <view class="video_add">
    <view class="video_address">
      <view class="video_address_min" bindtap="GOMAP">
        {{projectName}}
      </view>
    </view>
  </view> -->

  <view class="modify_video_nav" style="margin-top: 64rpx;">
      <view class="{{activeState==4?'active':''}}" bindtap="trainingTypeJump" data-index="4"><text>三级安全教育</text></view>
      <view class="{{activeState==5?'active':''}}" bindtap="trainingTypeJump" data-index="5"><text>班前讲话</text></view>
      <view class="{{activeState==3?'active':''}}" bindtap="trainingTypeJump" data-index="3"><text>专项培训</text></view>
      <view class="{{activeState==6?'active':''}}" bindtap="trainingTypeJump" data-index="6"><text>应急演练</text></view>
  </view>

  <view class="video_num">
    <van-row>
      <van-col span="12">
        <view class="video_icon">
          培训次数：
          <text>{{numTime}}</text>
          次
        </view>
      </van-col>
      <van-col span="12">
        <view class="video_icon">
          培训人数：
          <text>{{attendNumber}}</text>
          个
        </view>
      </van-col>
    </van-row>
  </view>

  <view class="modify_echarts_max" >
    <view class="modify_echarts_title_min">
        <view class="modify_eharts_title">{{titleName}}</view> 
        <pz-screen-training columns="{{DeviceGroupData}}" bindscreen="screenCondition"></pz-screen-training>
    </view>
  </view>
  <!-- 冬季施工安全专项培训 342+150-->
  <view>
    <view class="Winter-training"  wx:for="{{trainingList}}" wx:key="index">
      <view class="Winter-training-box">
        <!-- 上盒子 -->
        <view class="Winter-training-topBox">
          <!-- 左盒子 -->
          <view class="Winter-training-leftBox">
              <view class="Winter-training-left-box">
                {{index+1}}
              </view>
              <view class="Winter-training-right-box">
              {{item.content}}
              </view>
          </view>
          <!--右盒子 15+15-->
          <view class="Winter-training-Img" data-set="{{index}}" data-url="{{item.qr_url}}" bindtap="winterPut">
            <image src="http://fileimg.makalu.cc/WEB_635514B7BEA4463FA176EDE34180EB38.png" mode=""/>
          </view>
        </view>

      <!-- 下盒子 -->
      <view class="Winter-training-bottomBox" bindtap="checkDetailsData" data-id="{{item.main_id}}" data-ranksId="{{item.company_id}}" data-type="{{item.cultivate_type}}">
      <!-- 上部分 305+54-->
        <view class="Winter-training-bottomBox-top">
          <view class="Winter-training-bottomBox-left-box">
            <image src="{{item.front_images_url[0]}}" mode=""/>
          </view>
          <view class="Winter-training-bottomBox-right-box">
            <view style="margin-bottom: 26rpx;display: flex;width: 460rpx;height: 32rpx;justify-content: space-between;">
              <view style="display: flex;">
                参与人数：<view style="color: #ff8301;">
                {{item.people_number}}
              </view>
              </view>
              <view style="display: flex;">
                签名人数：<view style="color: green;">
                  {{item.people_number_all}}
                </view>
              </view>
            </view>
            <view style="display: flex;">
              培训时间：<view style="color: #43abf9;">
              {{item.cultivate_time}}~{{item.cultivate_end == null?'':item.cultivate_end}}
              </view>
            </view>
          </view>
        </view>
        <!-- 下部分 -->
        <view style="font-size: 26rpx;display: flex;">
         <view style="width:130rpx;">
          协作队伍:
         </view>
         <view style="color: #7489c7;width:calc(100% - 140rpx); display: -webkit-box;overflow:hidden;white-space: normal !important;text-overflow: ellipsis;word-wrap: break-word;-webkit-line-clamp: 3;-webkit-box-orient: vertical">
    {{item.partnership}}
    </view>
        </view>
      </view>

      </view>
    </view>
    <!-- 图片放大弹窗 -->
    <view class="popup_img" wx:if="{{imgShow}}" bindtap="closeImages">
      <view class="popup_images" 
      style="background: url('{{imgUrl}}') no-repeat center/100%"></view>
    </view>
    <!-- 新增模块 -->
    <view class="button-add" bindtap="add">
    <view style="width: 38rpx;height: 38rpx;">
      <image src="http://fileimg.makalu.cc/WEB_73DDBFC7781A41C082FC10AB5F530472.png" mode=""/>
    </view>
    <view style="font-size: 26rpx;color: #748bca;">
      新增
    </view>
  </view>
  </view>
</view>

<van-toast id="van-toast" />

<van-overlay show="{{loadShow}}">
  <view class="gif">
    <image src="../../images/loding2.gif"></image>
    <view>数据加载中！请稍后...</view>
  </view>
</van-overlay>  
