<view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
<cu-custom bgColor="bg-color" isBack="{{true}}" title="预警列表">
  <!-- <view slot="content">预警列表</view> -->
</cu-custom>
<view class="news_nav">
  <view wx:for="{{labelName}}" wx:for-item="item" class="news_nav_item {{newsNavIndex == item && 'sec'}}" bindtap="setTab" data-val="{{item}}">
    <view>{{item}}</view>
  </view>
  <!-- <view class="news_nav_item {{newsNavIndex == 11 && ' sec'}}" bindtap="setTab" data-val="11">
    <view>I型有源</view>
  </view>
  <view class="news_nav_item {{newsNavIndex == 20 && ' sec'}}" bindtap="setTab" data-val="X202">
    <view>II型有源</view>
  </view> -->
</view>

<view class="worningList" wx:if="{{worningList.length > 0}}">
  <view class="list_item" wx:for="{{worningList}}" wx:for-item="item">
    <view class="worningList_item_txt">
      <view>编号：</view>
      <text>{{item}}</text>
    </view>
    <view class="worningList_item_info">
      <view bindtap="toInfo" data-deviceCode="{{item}}">查看详情</view>
      <view bindtap="clearWorning" data-deviceCode="{{item}}">解除预警</view>
    </view>
  </view>
</view>
<view class="news_empty" wx:else>
  <view class="news_empty_mid">
    <image src="/img/news_img1.png"></image>
    <view>抱歉 暂无消息</view>
  </view>
</view>
<view>
  <modal title="处理信息" hidden="{{modalHidden}}" confirm-text="解除预警" cancel-text="取消"
    bindconfirm="modalBindaconfirm" bindcancel="modalBindcancel">
    <input type="text" placeholder="请输入处理信息" value="{{modalVal}}" bindinput="setModalVal"></input>
  </modal>
</view>