myPost.wxml
1.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
<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' bindtap='navdetail' id='{{item.id}}'>{{item.content}}</view>
<!-- 图片盒子 -->
<view class='item_mid_box' hidden='{{item.images.length==0}}' bindtap='navdetail' id='{{item.id}}'>
<view class='item_mid_box_pic' wx:for="{{item.images}}" wx:for-item="sec" wx:key=''>
<image src='{{sec}}' mode='widthFix'></image>
</view>
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_left' id='{{item.id}}' bindtap='delArticle' data-indx = "{{index}}">
删除
</view>
<view class='item_right'>
<!-- 图片 -->
<view class='item_right_pic'>
<image src='../../images/chakan@3x.png' mode='widthFix'></image>
</view>
<!-- 数量 -->
<view class='item_right_number'>
{{item.browse_count}}
</view>
<!-- 图片 -->
<view class='item_right_pic2'>
<image src='../../images/pinglun@3x.png' mode='widthFix'></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>