myComments.wxml
3.0 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!-- 企话吧 -->
<view>
<view class='mid'>
<!-- 条目 -->
<view class='mid_item' wx:for="{{commentsList}}" wx:key="index">
<view class='mid_item_top'>
<view class='mid_item_top_left'>
<!-- 图片 -->
<view class='mid_item_top_left_pic'>
<image src='{{item.my_avatar}}'></image>
</view>
<!-- 文字 -->
<view class='mid_item_top_left_text color_blue'>
{{item.my_nickname}}
</view>
</view>
<view class='mid_item_top_right '>
{{item.create_time_text}}
</view>
</view>
<!-- 文字内容 -->
<view class='mid_item_text'>
{{item.comment_content}}
</view>
<!-- 文本内容 -->
<view class='mid_item_content' bindtap='navdetail' id='{{item.object_id}}'>
<!-- 条目 -->
<view class='mid_item content'>
<view class='mid_item_top'>
<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 class='icon_tm'>
<image src='../../images/guangfang@2x.png'></image>
</view> -->
</view>
</view>
<view class='mid_item_top_right'>
{{item.create_time_text}}
</view>
</view>
<!-- 文字内容 -->
<view class='mid_item_text'>
{{item.content}}
</view>
<!-- 图片内容 -->
<view class='mid_pic_box'>
<view class='mid_pic_item' wx:for="{{item.images}}" wx:key="index">
<image src='{{item}}' mode='widthFix'></image>
</view>
</view>
</view>
</view>
<!-- 底部 -->
<view class='mid_item_like'>
<view class='mid_item_like_left' bindtap='delCom' id='{{item.id}}' data-indx='{{index}}'>
删除
</view>
<view class='mid_item_like_right'>
<!-- 点赞 -->
<view class='mid_like color_blue' bindtap='zan' id='{{item.id}}' data-idx='{{index}}' data-type='{{item.is_like}}'>
<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'>
{{item.likes}}
</view>
<!-- 评论 -->
<view class='mid_like' bindtap='navdetail' id='{{item.id}}'>
<image src='../../images/pinglun@3x.png'></image>
</view>
<view class='mid_number commentCount'>
{{item.comment_count}}
</view>
</view>
</view>
</view>
</view>
</view>
<view class="none-box" hidden="{{ifData}}">
<view>暂无相关评论</view>
</view>