<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 class="news_nav_item {{newsNavIndex == 1 && ' sec'}}" bindtap="setNav" data-val="1">
    <view>预警处理消息</view>
    <!-- <text>12</text> -->
  </view>
  <view class="news_nav_item {{newsNavIndex == 2 && ' sec'}}" bindtap="setNav" data-val="2">
    <view>系统消息</view>
    <!-- <text>6</text> -->
  </view>
</view>

<view class="news_list" wx:if="{{newsList.length > 0}}">
  <view class="news_item news_item_open" bindtap="openNews" data-chainId="{{item.chainId}}" data-id="{{item.id}}" data-status="{{item.status}}" wx:for="{{newsList}}" wx:for-item="item">
    <view class="news_item_tit">
      <text class="news_item_icon" wx:if="{{item.status == 0}}"></text>
      <text class="news_item_name" wx:if="{{newsNavIndex == 1}}">预警处理消息</text>
      <text class="news_item_name" wx:if="{{newsNavIndex == 2}}">系统消息</text>
      <text class="news_item_time">{{item.createTime}}</text>
    </view>
    <view class="news_item_txt">{{item.content}}</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>