index.wxml
6.6 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
152
153
<!--pages/wish/wish.wxml-->
<view class='banner_box'>
<view class='search_box'>
<text class="hot_info {{order==1?'hot_active':''}}" data-current='1' bindtap='chargeType'>热度</text>
<text class="hot_info {{order==2?'hot_active':''}}" data-current='2' bindtap='chargeType'>时间</text>
<!-- <view bindtap="goSearch" class="search_input">
<input placeholder='时间' placeholder-class='font-size' bindinput="inputKey" value="{{searchValue}}" disabled='true' />
</view> -->
</view>
<view class='search_icon'>
<view class='iconfont icon-search' bindtap='goSearch'></view>
<view class='iconfont icon-search icon-shaixuan' bindtap='showClassify'></view>
</view>
</view>
<!-- 内容项 -->
<view class='content_box'>
<view class='content_item' wx:for='{{list}}' wx:for-index='mindex' wx:key>
<view class='left_box'>
<view class='head_portrait'>
<image src='{{item.avatar}}'></image>
</view>
</view>
<view class='item_list'>
<view class='list_head_box'>
<view class='user_name'>{{item.user_nickname}}</view>
<view class=' state_box'>
<view class="collect_box {{item.user_host==1?'active':''}}" catchtap='attention' data-index="{{mindex}}" data-id='{{item.open_user_id}}'>
<text class="collect_word">关注TA</text>
</view>
</view>
</view>
<view catchtap='goDetail' data-id='{{item.id}}' data-index="{{index}}">
<view class='list_content'>{{item.title}}</view>
<view class='list_img_box'>
<block wx:for='{{item.img}}' wx:for-item='items' wx:key='' wx:for-index='sindex'>
<image src='{{items.img}}' catchtap='viewImg' data-src='{{items.img}}' data-text='{{items.text}}' data-mindex="{{mindex}}" data-sindex='{{sindex}}'></image>
</block>
</view>
<view class='list_content'>{{item.text}}</view>
</view>
<view class='list_state_box'>
<view class='time'>{{item.open_time}}</view>
<view class='list_icon'>
<view catchtap='likeCharge' data-index="{{mindex}}" data-id='{{item.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.id}}' data-type='review'>
<text class='iconfont icon-pinglun pinglun1'></text>
<text>{{item.table_num}}</text>
</view>
<view catchtap='collectInfo' data-index="{{mindex}}" data-id='{{item.id}}'>
<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'>
<text class='iconfont icon-gengduo' catchtap='showMore' data-index='{{mindex}}'></text>
<view class='more_label_box' wx:if='{{item.more_state}}'>
<view class='more_item' catchtap='showPoster' data-id="{{item.id}}">
<text class='iconfont icon-haibao more'></text>
<text>生成分享海报</text>
</view>
<view class='more_line'></view>
<view class='more_item' catchtap='complain' data-id='{{item.id}}' data-type='complain'>
<text class='iconfont icon-jubao more'></text>
<text>投诉举报</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='iconfont icon-jia' bindtap='releaseInfo'></view>
<view class='mask_box2' wx:if='{{poster_state}}'>
<view class="canvasBox">
<canvas canvas-id='myCanvas' style=''></canvas>
</view>
<view class="btn" bindtap="saveImage">保存图片</view>
<view class='iconfont icon-quxiao quxiao2' bindtap='canclePopup'></view>
<!-- <view class='popup_box2'>
<view>
<view class='popup_content_box'>
<view class='popup_img2'>
<image src='{{poster_list.img}}'></image>
<view class='circle'></view>
<view class='circle2'></view>
</view>
<view class='popup_info_box'>
<view class='popup_title2'>{{poster_list.title}}</view>
<view>{{poster_list.text}}</view>
<view class='popup_icon_box'>
<view class='popup_btn_box'>
<view class='popup_btn2'>保存图片</view>
</view>
<image src='/images/chuanda_quan_90@2x.png'></image>
</view>
</view>
</view>
</view>
<view class='iconfont icon-quxiao' bindtap='canclePopup'></view>
</view> -->
</view>
<!-- catchtap='cancleClassify' -->
<view class='mask_chassify_box' wx:if='{{classify_state}}'>
<view class='classif_popup_box'>
<view class='classify_content_box'>
<view class='classify_item'>
<view>性别</view>
<picker class='chassify_picker' range='{{sex_array}}' value='{{sex_index}}' bindchange='setSex'>
<input placeholder='请选择' value='{{sex}}' disabled='true'></input>
</picker>
<text class='iconfont icon-fanhui'></text>
</view>
<view class='classify_item'>
<view>风格</view>
<picker class='chassify_picker' range='{{style_array}}' value='{{style_index}}' range-key='name' bindchange='setStyle'>
<input placeholder='请选择' value='{{style}}' disabled='true'></input>
</picker>
<text class='iconfont icon-fanhui'></text>
</view>
<view class='classify_item'>
<view>身高</view>
<picker class='chassify_picker' range='{{height_array}}' value='{{height_index}}' bindchange='getHeight'>
<input placeholder='请选择' disabled='true' value='{{stature}}'></input>
</picker>
<text class='iconfont icon-fanhui'></text>
</view>
<view class='classify_item'>
<view>体重</view>
<picker class='chassify_picker' range='{{weight_array}}' value='{{weight_index}}' bindchange='getWeight'>
<input placeholder='请选择' disabled='true' value='{{weight}}'></input>
</picker>
<text class='iconfont icon-fanhui'></text>
</view>
</view>
<view class='classify_btn_box'>
<view class='classify_btn' bindtap='clearData'>重置</view>
<view class='classify_btn classify_active' bindtap='confirmData'>确认</view>
</view>
</view>
</view>
<view class='mask_box mask' wx:if='{{img_state}}' catchtap='cancle_img'>
<view class='img_box'>
<image src='{{imgUrl}}'></image>
<text>{{img_text}}</text>
</view>
</view>