myLike.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
54
55
56
57
58
59
60
61
62
<!-- 企话吧 -->
<scroll-view class='box_right' hidden='{{!ifData}}'>
<view class='mid'>
<!-- 条目 -->
<view class='mid_item' wx:for="{{likeList}}" wx:key="index" bindtap='navdetail' id='{{item.object_id}}'>
<view class='mid_item_top' bindtap='navdetail' id='{{item.object_id}}'>
<view class='mid_item_top_left'>
<!-- 图片 -->
<view class='mid_item_top_left_pic'>
<image src='{{item.avatar}}'></image>
</view>
<!-- 文字 -->
<view class='mid_item_top_left_text'>
{{item.nickname}}
</view>
</view>
<view class='mid_item_top_right'>
{{item.create_time_text}}
</view>
</view>
<!-- 文字内容 -->
<view class='mid_item_text'>{{item.title}}
</view>
<!-- 图片内容 -->
<view class='mid_pic_box' hidden='{{item.images==""}}'>
<view class='mid_pic_box_p' wx:for="{{item.images}}" wx:key="index">
<image src='{{item}}'></image>
</view>
</view>
<!-- 底部 -->
<view class='mid_item_like'>
<view class='mid_item_like_left' >
<!-- 删除 -->
</view>
<view class='mid_item_like_right'>
<!-- 点赞 -->
<view class='mid_like color_blue' catchtap='zan' id='{{item.object_id}}' data-idx='{{index}}' >
<image src='../../images/thumb-up-button@3x.png' class='zan' wx:if='{{item.is_like==1}}'></image>
<image src='../../images/dainzan@3x.png' class='zan' wx:else></image>
</view>
<view class='mid_number color_blue' catchtap='zan' id='{{item.object_id}}' data-idx='{{index}}'>
{{item.likes}}
</view>
<!-- 评论 -->
<view class='mid_like' bindtap='navdetail' id='{{item.id}}'>
<image src='../../images/pinglun@3x.png' wx:if="{{item.is_comment==0}}"></image>
<image src='../../images/pinglun_fill@3x.png' wx:else></image>
</view>
<view class='mid_number commentCount'>
{{item.comment_count}}
</view>
</view>
</view>
</view>
</view>
</scroll-view>
<view class="none-box" hidden="{{ifData}}">
<view>暂无相关点赞</view>
</view>