<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="top" bindtap="addwaring">
  <text>添加</text>
</view> -->
<view class="warning">
  <scroll-view scroll-y enable-back-to-top>
    <view>
      <block wx:for="{{ warningList }}" wx:for-item="item" wx:for-index="index" wx:key="index">
        <view class="warningList {{ item.isTouchMove ? 'touch-move-active' : '' }}" bindtouchstart="touchStart"
          bindtouchmove="touchMove" data-index="{{ index }}">
          <view class="info" bindtap="towarningInfo" data-groupid="{{item.id}}">
            <view>
              <text>预警名称：</text>
              <view>{{item.name}}</view>
            </view>
            <view style="padding-top:15rpx;">
              <text>配置时间：</text>
              <view>{{item.createTime}}</view>
            </view>
          </view>
          <view class="scrollText">
            <view class="edit" bindtap="editList" data-groupid="{{item.id}}"> 修改 </view>
            <view class="del" bindtap="delList" data-groupid="{{item.id}}"> 删除 </view>
          </view>
        </view>
      </block>
    </view>
  </scroll-view>
</view>
<view class="addLabel" bindtap="addwaring">
  <text>添加</text>
</view>