my-message.wxml
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<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}}
<span class="no">{{item.dateStr}}</span>
</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="t1 t2">
删除
</span>
</view>
</view>
<view class="desc">{{item.announcementContent}}</view>
<view class="desc code">订单编号: {{item.announcementCode}}</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>