my.wxml
6.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<view class='banner_box' bindtap='uoloadImg'>
<view class='banner_info'>
<view class='' bindtap='goBox'>
<text class='iconfont icon-caogaoxiang'></text>
<text>草稿箱</text>
</view>
<view class='' bindtap='goMessage'>
<text class='iconfont icon-xiaoxi'></text>
<text>消息</text>
</view>
</view>
<view class='head_img'>
<image class='banner_img' src='{{avatar}}'></image>
<view class='edit_box' bindtap='editInfo'>
<i class='iconfont icon-bianji'></i>
</view>
</view>
<view class='user_name'>{{user_nickname}}</view>
<view class='user_brief'>{{signature}}</view>
<view class='banner_info' style='padding:0 50rpx;'>
<view bindtap='goList' data-status='2'>
<text class='' style='color:#999;'>粉丝</text>
<text class='user_num'>{{fans_num}}</text>
</view>
<view bindtap='goList' data-status='1'>
<text class='' style='color:#999;'>关注</text>
<text class='user_num'>{{host_num}}</text>
</view>
</view>
</view>
<view class='content_box'>
<view class='list_tab_box'>
<view class="tab_item {{tab_current==1?'tab_active':''}}" data-current='1' bindtap='chargeTime'>
<view>从前</view>
<view class="iconfont icon-caret-up {{tab_current==1?'icon_active':''}}"></view>
</view>
<view class="tab_item {{tab_current==2?'tab_active':''}}" data-current='2' bindtap='chargeTime'>
<view>赞过</view>
<view class="iconfont icon-caret-up {{tab_current==2?'icon_active':''}}"></view>
</view>
<view class="tab_item {{tab_current==3?'tab_active':''}}" data-current='3' bindtap='chargeTime'>
<view>评论</view>
<view class="iconfont icon-caret-up {{tab_current==3?'icon_active':''}}"></view>
</view>
<view class="tab_item {{tab_current==4?'tab_active':''}}" data-current='4' bindtap='chargeTime'>
<view>收藏</view>
<view class="iconfont icon-caret-up {{tab_current==4?'icon_active':''}}"></view>
</view>
</view>
<block wx:if='{{list.length==0}}'>
<!-- <text class='no_data' wx:if='{{tab_current==1}}'>该用户还未发布信息哦~</text> -->
<text class='no_data'>暂无数据</text>
</block>
<block wx:else>
<view class='item_list' wx:key='' wx:for='{{list}}' wx:key bindtap='goDetail' data-id='{{item.list_id}}'>
<block wx:if="{{item.open_time === '昨天' || item.open_time === '今天'||item.open_time === '前天'}}">
<view class='list_title'>{{item.open_time}}</view>
</block>
<block wx:else>
<view class='list_title'>
<view class='year'>{{item.date[0]}}</view>
<view class='month'>{{item.date[1]}}</view>
</view>
</block>
<view class='content_item_box' data-id='{{item.id}}' bindtap='messageDetail'>
<view class='list_content_box'>
<view class='list_img' wx:if="{{item.img!=''}}">
<image src='{{item.img.img}}' wx:key=''></image>
</view>
<view class='list_content' style="{{item.img==''?'width:100%;':''}}">
<view class='content'>
<view class='content_info'>{{item.title}}</view>
<view class='list_label'>{{item.style}}</view>
</view>
<view class='list_state_box' style="{{item.img==''?'margin-top:20rpx;':''}}">
<view class='time'>{{item.open_time}}</view>
<view class='list_icon'>
<view catchtap='likeCharge' data-index="{{index}}" data-id='{{item.list_id}}' >
<text class='iconfont icon-dianzan2 zan' wx:if="{{item.user_support==1}}"></text>
<text class='iconfont icon-huida pinglun1' wx:else></text>
<text class=''>{{item.support}}</text>
</view>
<view catchtap='review' data-id='{{item.list_id}}' data-type='review'>
<text class='iconfont icon-pinglun pinglun1'></text>
<text>{{item.table}}</text>
</view>
<view catchtap='collectInfo' data-index="{{index}}" data-id='{{item.list_id}}' wx:if='{{status!=4}}'>
<text class='iconfont icon-shoucang2 zan' wx:if='{{item.user_collect==1}}'></text>
<text class='iconfont icon-shoucang4 pinglun1' wx:else></text>
<text class=''>{{item.collect}}</text>
</view>
<view class='more_box' wx:if='{{tab_current==1 || tab_current==4}}'>
<text class='iconfont icon-gengduo' catchtap='showMore' data-index='{{index}}'></text>
<block wx:if='{{state2}}'>
<view class='more_label_box more2' wx:if='{{item.more_state}}'>
<view class='more_item' catchtap='collectInfo' data-index="{{index}}" data-id='{{item.list_id}}'>
<text>删除</text>
</view>
</view>
</block>
<block wx:else>
<view class='more_label_box' wx:if='{{item.more_state}}'>
<view class='more_item' catchtap='complain' data-id='{{item.list_id}}' data-index='{{index}}' data-status='4'>
<text>删除</text>
</view>
<!-- <view class='more_line'></view> -->
<view class='more_item' catchtap='complain' data-id='{{item.list_id}}' data-index='{{index}}' data-status='3'>
<text>仅自己可见</text>
</view>
<!-- <view class='more_line'></view> -->
<view class='more_item' catchtap='complain' data-id='{{item.list_id}}' data-index='{{index}}' data-status='2'>
<text>粉丝可见</text>
</view>
<!-- <view class='more_line'></view> -->
<view class='more_item' catchtap='complain' data-id='{{item.list_id}}' data-index='{{index}}' data-status='1'>
<text>公开</text>
</view>
</view>
</block>
</view>
<text class='iconfont icon-suo' wx:if='{{item.open==3}}'></text>
</view>
</view>
</view>
</view>
</view>
</view>
</block>
</view>