<!--pages/AIWarningList/index.wxml-->
<view class="header_title">
  <view class="header_title_row">
    <van-row>
     
      <van-col span="7">
        <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>


<view class="max_content">

    <view class="modify_echarts_max">
        <view class="video_list_max">
        <view class="ai_warning_list" wx:for="{{videoWarningArray}}" wx:key="index">
            <image src="{{item.photo}}" class="ai_warning_list_img"></image>
            <view class="ai_warning_list_con">
                <view class="ai_warning_list_project">{{item.projectName}}</view>
                <view class="ai_warning_list_reason">预警原因：<text>{{item.alertor_type_name}}</text></view>
                <view class="ai_warning_list_position">预警位置：<text>{{item.stream_name}}</text></view>
                <view class="ai_warning_list_time">
                    <view class="ai_warning_list_time_date">{{item.dateTime}}</view>
                    <view class="ai_warning_list_video_btn"  bindtap="viewVideo" data-token="{{item.video_token}}">
                        <image src="http://fileimg.makalu.cc/WEB_84F967AF6E48448EB73D2AA2A00F57F4.png"></image>
                        <text>查看视频</text>
                    </view>
                </view>
            </view>
        </view>
        </view>
    </view>
</view>

<van-popup show="{{ videoShow }}" bind:close="onViewVideoClose" custom-style="width: 100%;" custom-class='custom_style'>
   <view class="ai_video_popup">
    <live-player src="{{videoStreamUrl}}" autoplay="true" style="width: 100%;"></live-player>
   </view>
</van-popup>

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