detail.wxml
5.9 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!--pages/wish/wish.wxml-->
<!-- 内容项 -->
<view class='content_box'>
<view class='content_item2'>
<view class='left_box2'>
<view class='head_portrait' catchtap='showModal' data-index="{{index}}">
<image src='{{list.avatar}}'></image>
</view>
<view class='list_head_box2'>
<view class='user_name' catchtap='showModal' data-index="{{index}}">{{list.user_nickname}}</view>
<view class='state_box'>
<block wx:if='{{list.open_user_id!=user_id}}'>
<view class="collect_box {{list.user_host==1?'active':''}}" bindtap='attention' data-id='{{list.open_user_id}}'>
<text class='iconfont icon-shoucang0 star2'></text>
<text class="collect_word">{{list.user_host==1?'取消关注':'关注TA'}}</text>
</view>
</block>
</view>
</view>
</view>
<view class='item_list2'>
<view>
<view class='list_content'>{{list.title}}</view>
<view class='list_img_box'>
<block wx:for='{{list.img}}' wx:for-item='items' wx:key=''>
<image src='{{items.img}}'></image>
</block>
</view>
<view class='list_content'>
<text wx:for='{{list.styles}}' wx:key=''>#{{item}}</text>
</view>
</view>
<view class='list_state_box'>
<view class='time'>{{list.open_time}}</view>
<view class='list_icon'>
<view catchtap='likeCharge' data-id='{{list.id}}'>
<i class='iconfont icon-dianzan2 zan' wx:if="{{list.user_support==1}}"></i>
<text class='iconfont icon-huida pinglun1' wx:else></text>
<text class=''>{{list.support}}</text>
</view>
<view catchtap='review' data-id='{{list.id}}' data-type='review'>
<text class='iconfont icon-pinglun pinglun1'></text>
<text>{{list.table_num}}</text>
</view>
<view catchtap='collectInfo' data-id='{{list.id}}'>
<i class='iconfont icon-shoucang2 zan' wx:if='{{list.user_collect==1}}'></i>
<text class='iconfont icon-shoucang4 pinglun1' wx:else></text>
<text class=''>{{list.collect}}</text>
</view>
<view class='more_box'>
<text class='iconfont icon-gengduo' catchtap='showMore'></text>
<view class='more_label_box' wx:if='{{more_state}}'>
<view class='more_item' catchtap='showPoster' data-id="{{list.id}}">
<text class='iconfont icon-haibao more'></text>
<text>生成分享海报</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain' data-id='{{list.id}}' data-type='complain'>
<text class='iconfont icon-jubao more'></text>
<text>投诉举报</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='content_box'>
<view class='content_item' wx:for='{{tables}}' wx:key>
<view class='left_box'>
<view class='head_portrait' catchtap='showModal' data-index="{{index}}">
<image src='{{item.avatar}}'></image>
</view>
</view>
<view class='item_list'>
<view class='list_head_box'>
<view class='user_name' catchtap='showModal' data-index="{{index}}">{{item.user_nickname}}</view>
<view class='state_box'>
<block wx:if='{{item.user_status==1}}'>
<view class='collect_box active' bindtap='replay' data-index="{{index}}" data-id='{{item.id}}' data-comment_state='{{item.user_status}}' data-name='{{item.user_nickname}}'>
<text class='iconfont icon-pinglun star2'></text>
<text class="collect_word">发布者</text>
</view>
</block>
</view>
</view>
<view bindtap='listDetail' data-post_id='{{item.id}}' data-index="{{index}}">
<view class='list_info_box'>
<text>{{item.create_time}}</text>
</view>
<view class='list_content'>{{item.text}}</view>
</view>
</view>
</view>
</view>
<view class='null_box'></view>
<view class='comment_box' wx:if='{{state}}'>
<textarea placeholder="回复:+{{name}}" bindconfirm='commentInfo' fixed='true'></textarea>
</view>
<!-- wx:else -->
<view class='comment_box'>
<input placeholder='请输入评论内容' value='{{comment_text}}' bindconfirm='submitComment' data-id='{{list.id}}'></input>
<!-- <textarea placeholder='请输入评论内容' bindconfirm='submitComment' fixed='true'></textarea> -->
</view>
<!-- <view class='mask_box' wx:if='{{poster_state}}'>
<view class='popup_box'>
<view>
<view class='popup_content_box'>
<view class='popup_img'>
<image src='/images/img2.png'></image>
<view class='circle'></view>
<view class='circle2'></view>
</view>
<view class='popup_info_box'>
<view class='popup_title'>混搭英伦风,不一样的经典诠释</view>
<view>混搭英伦风,不一样的经典诠释</view>
<view class='popup_icon_box'>
<view class='popup_btn_box'>
<view class='popup_btn'>保存图片</view>
</view>
<image src='/images/img1.png'></image>
</view>
</view>
</view>
</view>
<view class='iconfont icon-quxiao' bindtap='canclePopup'></view>
</view>
</view> -->
<view class='mask_box2' wx:if='{{poster_state}}'>
<view class='popup_box2'>
<view>
<view class='popup_content_box'>
<view class='popup_info_box'>
<view class='popup_img'>
<image src='{{poster}}'></image>
</view>
<view class='popup_icon_box'>
<view class='popup_btn_box' bindtap='saveImg' data-src='{{poster}}'>
<view class='popup_btn2'>保存图片</view>
</view>
</view>
</view>
</view>
</view>
<view class='iconfont icon-quxiao' bindtap='canclePopup'></view>
</view>
</view>