myPost.wxml
2.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
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
<scroll-view class='container' scroll-y='true' hidden='{{!ifData}}' style='height:{{windowHeight}}px'>
<block wx:for="{{articleList}}" wx:key="">
<view class='item'>
<view class='item_top'>{{item.title}}</view>
<view class='item_mid'>
<view class='item_mid_text'>{{item.content}}</view>
<!-- 图片盒子 -->
<view class='item_mid_box' wx:if="{{item.images}}">
<view class='item_mid_box_pic'>
<image src='{{item.images}}'></image>
</view>
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_left' data-id='{{item.id}}' bindtap='delArticle'>
删除
</view>
<view class='item_right'>
<!-- 图片 -->
<view class='item_right_pic'>
<image src='../../images/chakan@3x.png'></image>
</view>
<!-- 数量 -->
<view class='item_right_number'>
{{item.browse_count}}
</view>
<!-- 图片 -->
<view class='item_right_pic2'>
<image src='../../images/pinglun@3x.png'></image>
</view>
<!-- 数量 -->
<view class='item_right_number'>
{{item.comment_count}}
</view>
</view>
</view>
</view>
<view class='item'>
<view class='item_top'>{{item.title}}</view>
<view class='item_mid'>
<view class='item_mid_text'>{{item.content}}</view>
<!-- 图片盒子 -->
<view class='item_mid_box' wx:if="{{item.images}}">
<view class='item_mid_box_pic'>
<image src='{{item.images}}'></image>
</view>
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_left' id='{{item.id}}' bindtap='delArticle'>
删除
</view>
<view class='item_right'>
<!-- 图片 -->
<view class='item_right_pic'>
<image src='../../images/chakan@3x.png'></image>
</view>
<!-- 数量 -->
<view class='item_right_number'>
{{item.browse_count}}
</view>
<!-- 图片 -->
<view class='item_right_pic2'>
<image src='../../images/pinglun@3x.png'></image>
</view>
<!-- 数量 -->
<view class='item_right_number'>
{{item.comment_count}}
</view>
</view>
</view>
</view>
</block>
<!-- 底部按钮 -->
<!-- <view class='button'>
发表帖子
</view> -->
</scroll-view>
<view class="none-box" hidden="{{ifData}}">
<!-- <view>你还没有帖子,快去<text class='fabiao' bindtap='subArticle'>发表</text>吧!</view> -->
<view>你还没有帖子,快去<text class='fabiao' >发表</text>吧!</view>
</view>