message.wxml
2.2 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
53
<!--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}}' wx:key>
<view class='list_left'>
<image class='head_img' src='{{item.avatar}}' catchtap='goCenter' data-id='{{item.news_user_id}}' data-look_type='{{status}}' data-look="{{item.news_id}}"></image>
<view>
<view class=' user_name '>{{item.user_nickname}}</view>
<view>
<text wx:if='{{status==1}}'>评论了你的</text>
<text wx:elif='{{status==2}}'>点赞了你的</text>
<text class='list_hint' catchtap='goDetail' data-id='{{item.list_id}}' data-news_id='{{item.news_id}}'>{{item.title}}</text>
</view>
</view>
</view>
<view class='point' wx:if='{{item.status!=1}}'></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:elif='{{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>{{item.user_nickname}}您好,您发布的{{title}}审核</text>
<text class='list_hint2'>{{item.status==1?'通过':'未通过'}}</text>
</view>
<view wx:if='{{item.status!=1}}'>原因:{{item.status_text}}</view>
<view>{{item.status_time}}</view>
</view>
</view>
</view>
</block>
</view>