colleagues_2.wxml
3.6 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<view class='container'>
<view class='item'>
<view class='item_top'>{{detail.title}}</view>
<view class='item_mid'>
<view class='item_mid_text'>
{{detail.content}}
<span class='color_blue'>全部</span>
</view>
<!-- 图片盒子 -->
<view class='item_mid_box' wx:if="{{detail.images}}">
<view class='item_mid_box_pic' wx:for='{{detail.images}}' wx:key=''>
<image src='{{item}}'></image>
</view>
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_left'>
<!-- 头像 -->
<view class='item_left_pic'>
<image src='{{detail.avatar}}'></image>
</view>
<view class='item_name'>
{{detail.nickname}}
</view>
<!-- 时间 -->
<view class='item_time'>
{{detail.create_time_text}}
</view>
<!-- 删除 -->
<view class='item_delete' hidden='{{detail.is_mine==0}}' bindtap='del'>
删除
</view>
</view>
<view class='item_right'>
<!-- 图片 -->
<view class='item_right_pic'>
<image src='../../images/chakan@3x.png'></image>
</view>
<!-- 数量 -->
<view class='item_right_number'>
{{detail.browse_count}}
</view>
<!-- 图片 -->
<view class='item_right_pic2'>
<image src='../../images/pinglun@3x.png'></image>
</view>
<!-- 数量 -->
<view class='item_right_number'>
{{detail.comment_count}}
</view>
</view>
</view>
</view>
<view class='item_box'>
<!-- 回复内容1 -->
<view class='item item_bottom' wx:for='{{comments}}' wx:key=''>
<view class='item_list'>
<view class='item_list_left'>
<view class='item_list_left_pic'>
<image src='{{item.avatar}}'></image>
</view>
</view>
<!-- 右边 -->
<view class='item_list_right'>
<!-- 名字 -->
<view class='item_list_right_name'>
{{item.nickname}}
</view>
<!-- 评论 -->
<view class='item_list_right_title' bindtap='parentSet' id='{{item.id}}'>
{{item.content}}
</view>
<!-- 时间&点赞 -->
<view class='time_bottom'>
<view class='time_bottom_left'>
{{item.create_time_text}}
</view>
<view class='time_bottom_left'>
<view>{{item.likes}}</view>
<view class='time_bottom_left_pic' bindtap='zan' id='{{item.id}}'>
<image src='../../images/zan@3x.png' wx:if="{{item.is_like==0}}"></image>
<image src='../../images/thumb-up-button@3x' wx:else></image>
</view>
</view>
</view>
<!-- 底部评论 -->
<view class='sec_comments' wx:if="{{item.child.length>0}}">
<view class='sec_comment' wx:for='{{item.child}}' wx:for-item='sec' wx:key=''>
<view class='text_bottom' >
<text class='color_blue'>{{sec.nickname}}:</text>{{sec.content}}
</view>
</view>
<view class='underline'></view>
</view>
</view>
</view>
</view>
</view>
<!-- 底部发表按钮 -->
<view class='bottom_box'>
<view class='bottom_box_input'>
<input placeholder='发表评论...' focus='{{startComment}}' bindtap='parentSet' bindinput='subComments' id=''></input>
</view>
<view class='bottom_box_text' bindtap='s'>
发表
</view>
</view>
</view>