message.wxml
1.8 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!--pages/index/message/message.wxml-->
<view class='banner_box'>
<view class="label {{status==1?'active':''}}" bindtap='readState' data-status='1'>评论消息</view>
<view class="label {{status==2?'active':''}}" bindtap='readState' data-status='2'>点赞消息</view>
<view class="label {{status ==3?'active':''}}" bindtap='readState' data-status='3'>审核消息</view>
</view>
<view class='content_box'>
<block wx:if='{{status==1||status==2}}'>
<view class='item_list' wx:for='{{list1.data}}' wx:key>
<view class='list_left'>
<image class='head_img' src='{{item.avatar}}'></image>
<view>
<view class=' user_name '>{{item.user_nickname}}</view>
<view>
<text>评论了你的</text>
<text class='list_hint '>{{item.title}}</text>
</view>
</view>
</view>
<view class='point '></view>
</view>
</block>
<!-- <block wx:if='{{status==2}} '>
<view class='item_list '>
<view class='list_left '>
<image class='head_img ' src='/images/img3.png '></image>
<view>
<view class='user_name '>Rose | ローズ</view>
<view>
<text>评论了你的</text>
<text class='list_hint '>今日打卡</text>
</view>
</view>
</view>
<view class='point '></view>
</view>
</block> -->
<block wx:if='{{status==3}} '>
<view class='item_list' wx:for='{{list2}}' wx:key>
<view class='list_left'>
<view>
<view class='user_name' style='font-weight:normal; '>
<text>Rose | ローズ您好,您发布的今日打卡审核</text>
<text class='list_hint2'>未通过</text>
</view>
<view>原因:发布内容有歧义</view>
<view>2018-11-22 14:00</view>
</view>
</view>
</view>
</block>
</view>