<!--pages/msg/push-index/index.wxml-->
<title-bar title="发布通知"></title-bar>
<!-- 列表 -->
<scroll-view scroll-y style="height: calc(100vh - {{topBarH}}px);" refresher-enabled bindrefresherrefresh="refresh" bindscrolltolower="getList" refresher-triggered="{{freshIng}}">
  <view wx:if="{{list.length>0}}">
    <view class="item-bg" wx:for="{{list}}">
      <view catchtap="toDetail" data-item="{{item}}" class="item">
        <view class="head h-div v-center">
          <view class="single"></view>
          <view class="title ellipsis">{{TypeData[item.type-1]||''}}</view>
        </view>
        <view class="tv ellipsis--l2">{{item.content}} </view>
        <view class="line"></view>
        <view class="h-div bottom">
          <text>发布时间：{{item.createTime}}</text>
        </view>
        <image class="bottom-img" src="/images/task/icon-bottom-line.png" mode="aspectFill" />
      </view>
    </view>
    <view class="space"></view>
  </view>
  <empty wx:else />
</scroll-view>
<view class="option">
  <view catchtap="push" class="btn">发布通知</view>
</view>