tanghaolin
2022-11-04 7408718077dce5375650999e44654444b7b8cae8
video/single/index.wxml
@@ -7,7 +7,7 @@
  <button bindtap="bindPause" class="page-body-button" type="primary">暂停</button>
</view> -->
<video wx:if="{{list.LiveUrl && list}}" id="myVideo" src="{{list.LiveUrl}}" binderror="videoErrorCallback" bindfullscreenchange="fullScreen" title='{{list.Name}}号监控'  enable-play-gesture show-mute-btn autoplay="{{list.LiveUrl.length>0?true:false}}"
<video wx:if="{{list.LiveUrl && list}}" id="myVideo" src="{{list.LiveUrl}}" bindfullscreenchange="fullScreen" title='{{list.Name}}号监控'  enable-play-gesture show-mute-btn autoplay="{{list.LiveUrl.length>0?true:false}}"
show-progress="{{true}}" bindtimeupdate="onBindtimeupdate">
  <view class="v_operation" wx:if='{{list.IsRotateAble==true && fullScreen==true}}'>
    <icon class="iconfont icon-jiantou IsRotateAble   data-cmd='0'" bindtouchstart="fullScreenStart" bindtouchend="fullScreenEnd" ></icon>
@@ -91,15 +91,25 @@
      </view>
</view>
<!-- 告警列表 -->
<scroll-view style="height: calc(100vh - 271px);" scroll-y wx:if="{{videoTabBarIndex == 2}}">
<!-- 时间选择 -->
<view class="cu-form-group" wx:if="{{videoTabBarIndex == 2}}">
    <picker mode="date" value="{{alarmDate}}" start="1900-1-1" end="{{currentDate}}" bindchange="alarmDateChange">
      <view class="picker">
        {{alarmDate}}
      </view>
    </picker>
  </view>
<scroll-view style="height: calc(100vh - 323px);" lower-threshold="72" bindscrolltolower="toLowerLoadAlarmList" scroll-y wx:if="{{videoTabBarIndex == 2}}">
  <view class="cu-list menu menu-avatar" style="margin-top:5rpx">
  <view class="cu-item " wx:for="{{deviceAlarmList}}" wx:for-item="alarm_item" wx:for-index="index" wx:key="index">
    <view class="cu-avatar radius lg" style="background-image:url({{alarm_item.alarmPicUrl}});"></view>
    <view class='content' style="width: 100%;">
      <view>{{alarm_item.alarmName}}</view>
    <view class="cu-avatar radius lg"  style="width: 200rpx;height:110rpx;background-image:url({{alarm_item.alarmPicUrl}});"></view>
    <view class='content' style="width: 100%;left:270rpx">
      <view>告警类型:{{alarm_item.alarmType}}</view>
      <view class='text-gray text-sm'>
        {{alarm_item.alarmTime}}</view>
        告警时间:{{alarm_item.alarmTime}}
      </view>
    </view>
  </view>
  <view wx:if="{{isShowLoadItem}}" class="cu-load bg-grey {{!isLoad?'loading':'over'}}"></view>
  </view>
</scroll-view>