my.wxml
5.4 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
<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>
<view class='item_list' wx:key='' wx:for='{{list}}' wx:key>
<view class='list_title'>{{item.open_time}}</view>
<view class='content_item_box' data-id='{{item.id}}' bindtap='messageDetail'>
<view class='list_content_box'>
<view class='list_img'>
<image src='{{item.img}}' wx:key=''></image>
</view>
<view class='list_content'>
<view class='content'>
<view class='content_info'>{{item.title}}</view>
<view class='list_label'>{{item.style}}</view>
</view>
<view class='list_state_box'>
<view class='time'>{{item.open_time}}</view>
<view class='list_icon'>
<view bindtap='likeCharge' data-index="{{index}}" data-id='{{item.list_id}}' data-status='2' wx:if='{{tab_current!=4&&tab_current!=3}}'>
<text class='iconfont icon-dianzan2 zan'></text>
<!-- <text class='iconfont icon-huida pinglun1' wx:else></text> -->
<text class=''>{{item.support}}</text>
</view>
<view bindtap='review' data-id='{{item.list_id}}' data-type='review'>
<text class='iconfont icon-pinglun pinglun1'></text>
<text>{{item.table}}</text>
</view>
<view catchtap='collectInfo' wx:if='{{tab_current==4}}' data-status='2' data-index="{{index}}" data-id='{{item.list_id}}'>
<text class='iconfont icon-shoucang2 zan'></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' bindtap='showPoster'>
<text>删除</text>
</view>
</view>
</block>
<block wx:else>
<view class='more_label_box' wx:if='{{item.more_state}}'>
<view class='more_item' bindtap='showPoster'>
<text>删除</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain'>
<text>仅自己可见</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain'>
<text>粉丝可见</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain'>
<text>全部</text>
</view>
</view>
</block>
</view>
<text class='iconfont icon-suo' wx:if='{{tab_current==1}}'></text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='mask_box' wx:if='{{}}' catchtap='cancleMask'>
<view class='popup_box'>
<view class='popup_title'>取消关注</view>
<view>确认取消关注?</view>
<view class='popup_btn_box'>
<view class='popup_btn'>再想想</view>
<view class='popup_btn'>再想想</view>
</view>
</view>
</view>