my-message.wxml
1.34 KB
<view class="page">
<view class="app__bgc bgc"></view>
<view class="app__bg bg"></view>
<view class="app__content main">
<view class="top-space"></view>
<view class="content">
<view class="func">
<view bindtap="tagReadAll" class="func-item">全部标为已读</view>
<view bindtap="deleteAll" class="func-item func-item2">删除已读消息</view>
</view>
<view class="news">
<view wx:for="{{dataList}}" wx:key="{{index}}" class="border news-item">
<view class="tit">
<view class="tit-item">{{item.announcementTitle}}</view>
<view class="tit-item">
<span bindtap="tagReadItem" data-data="{{item}}" data-index="{{index}}" wx:if="{{item.read == 0}}" class="t1">
标记已读
</span>
<span bindtap="deleteItem" data-data="{{item}}" data-index="{{index}}" wx:if="{{item.read == 1}}" class="t2">
删除
</span>
</view>
</view>
<view class="desc">{{item.announcementContent}}</view>
</view>
<!-- 11wx:if="{{dataList.length <= 0}}" -->
</view>
</view>
<empty-tips wx:if="{{dataList.length <= 0}}"></empty-tips>
</view>
</view>
<van-popup show="{{ authorizeVisible }}">
<authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>