spell-list.wxml
9.3 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!--pages/spell-list/spell-list.wxml-->
<view class="fix-box">
<view class="head">
<view class="position">
<!--<picker class="picker" bindchange="cityPickerChange" value="{{current_city}}" range="{{city_picker_list}}" class="picker">-->
<!--<view class="left">-->
<!--<view class="iconfont icon-location"></view>-->
<!--<text>{{city_picker_list[current_city] || city}}</text>-->
<!--<view class="iconfont icon-arrow-down"></view>-->
<!--</view>-->
<!--</picker>-->
<view class="picker" bindtap="chooseCity"
class="picker">
<view class="left">
<view class="iconfont icon-location"></view>
<text>{{addr}}</text>
<view class="iconfont icon-arrow-down"></view>
</view>
</view>
<view class="right" bindtap="search">
<view class="input"></view>
<image src="../../images/search@2x.png"></image>
<!--<view class="iconfont icon-arrow-down"></view>-->
</view>
</view>
</view>
<view class='tab_box'>
<view class="tab_item {{current==0?'active':''}}" data-current='{{0}}' bindtap='chargeTab'>拼餐</view>
<view class="tab_item {{current==1?'active':''}}" data-current='{{1}}' bindtap='chargeTab'>拼活动</view>
</view>
<view class="sort-select-box">
<!--智能排序按钮-->
<view class="sort-box" bindtap='clickSort'>
<view class='' class="sort-btn">智能排序</view>
<view class="iconfont icon-arrow-down"></view>
</view>
<!--筛选按钮-->
<view class="select-box" bindtap='clickSelect'>
<view class='' class="select-btn">筛选</view>
<view class="iconfont icon-arrow-down"></view>
</view>
</view>
<!--智能排序列表-->
<view class='rent_mask' wx:if='{{is_showSort}}' bindtap="closeMask">
<view class='rent_popup'>
<view class="rent_item {{currentSort===index?'active':''}}" wx:for="{{sort}}" wx:key="index"
catchtap='chooseSort' data-index="{{index}}">{{item.name}}
</view>
</view>
</view>
<!--筛选列表-->
<view class='rent_mask' wx:if='{{is_showSelect}}' bindtap="closeMask">
<view class='rent_popup time-box' catchtap="openMask">
<text class="title">时间:</text>
<view class="picker-box">
<picker bindchange="changeStartTime" value="{{start_time_date}}" mode="date">
<view class="time-select-box">
<view class="select-picker">
<view class="picker">
{{start_time_date}}
</view>
</view>
<view class="iconfont icon-arrow-down arrow"></view>
</view>
</picker>
<text>-</text>
<picker bindchange="changeEndTime" value="{{end_time_date}}" mode="date">
<view class="time-select-box">
<view class="select-picker">
<view class="picker">
{{end_time_date}}
</view>
</view>
<view class="iconfont icon-arrow-down arrow"></view>
</view>
</picker>
</view>
<text class="title">类别:</text>
<view class="type">
<text catchtap="chooseAll" class="{{is_all?'change-color':''}}">全部</text>
<text class="{{current_type === index?'change-color':''}}"
wx:for="{{cate}}" wx:key="index" catchtap="chooseType"
data-index="{{index}}" data-id="{{item.id}}">{{item.name}}
</text>
</view>
<!--<view class="rent_item {{currentSelect===index?'active':''}}" wx:for="{{select}}" wx:key="index"-->
<!--catchtap='chooseSort' data-index="{{index}}">{{item.name}}</view>-->
</view>
</view>
</view>
<!--拼餐-->
<view class='content_box' wx:if='{{current==0}}'>
<view class="no-data" wx:if="{{list.length === 0}}">暂无拼餐活动</view>
<view class='content_item' wx:for='{{list}}' wx:key="index" wx:if="{{list.length>0}}"
bindtap='goMealDetail' data-index="{{index}}" data-id="{{item.id}}">
<!--<image src="http://pk86rwhci.bkt.clouddn.com/activity_img@2x.png"></image>-->
<image src="{{item.pic}}" mode="aspectFill"></image>
<view class="title">
<text class="area">{{item.address}} {{item.time}}</text>
<!--已加入人数小于最低人数-->
<view class="num" wx:if="{{item.join_number<item.number}}">还差{{item.people}}人</view>
<view class="num" wx:else>还可加入{{item.max_number - item.join_number}}人</view>
</view>
<view class="user">
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" class="avatar"></image>
<text>{{item.userName}}</text>
</view>
</view>
</view>
<!--拼活动-->
<view class="content_box" wx:if='{{current==1}}'>
<view class="no-data" wx:if="{{list.length === 0}}">暂无拼活动</view>
<view class='content_item' wx:for='{{list}}' wx:key="index" wx:if="{{list.length>0}}"
bindtap='goActivityDetail' data-index="{{index}}" data-id="{{item.id}}">
<!--<image src="http://pk86rwhci.bkt.clouddn.com/b1@2x%20%281%29.png"></image>-->
<image src="{{item.pic}}" mode="aspectFill"></image>
<view class="title">
<text class="area">{{item.address}} {{item.time}}</text>
<!--已加入人数小于最低人数-->
<text class="num" wx:if="{{item.join_number<item.min}}">还差{{item.people}}人</text>
<text class="num" wx:else>还可加入{{item.max - item.join_number}}人</text>
</view>
<view class="user">
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" class="avatar"></image>
<text>{{item.userName}}</text>
</view>
</view>
</view>
<!--底部tab-->
<import src="/templates/templates.wxml"/>
<template is="tabBar" data='{{...tabcurrent}}'/>
<!--去答题弹框-->
<view class="input-box" wx:if="{{is_showAnswer}}" catchtouchmove="disableScroll">
<image class="sorry-img" src="../../images/sorry@2x.png"></image>
<view class="title">目前只对</view>
<view class="title">首批会员开放发布功能</view>
<view class="tips">答题后可能获得第一批次入场卷</view>
<view class="answer-btn" catchtap="goAnswer">答题</view>
</view>
<view class="modal_box" wx:if="{{is_showAnswer}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>
<!--去完善个人信息弹框-->
<view class="input-box" wx:if="{{is_showUserInfo}}" catchtouchmove="disableScroll">
<image class="sorry-img" src="../../images/user_info@2x.png"></image>
<view class="title">为了更好的体验</view>
<view class="title">请先完善个人信息</view>
<view class="answer-btn" bindtap="goUserInfo">完成</view>
</view>
<view class="modal_box" wx:if="{{is_showUserInfo}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>
<!--发布-->
<view class="release-btn-box" wx:if="{{is_showRelease}}">
<view class="left-btn" bindtap="releaseMeal">
<image src="../../images/pincan@2x.png"></image>
<view class="text">发布拼餐</view>
</view>
<view class="right-btn" bindtap="releaseActivity">
<image src="../../images/pinhuodong@2x.png"></image>
<view class="text">发布拼活动</view>
</view>
</view>
<view class="modal_box" wx:if="{{is_showRelease}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>
<!--分数>=80弹框-->
<view class="input-box score-box" wx:if="{{show_gold_modal}}" catchtouchmove="disableScroll">
<image class="sorry-img gold-img" src="../../images/gold@2x.png"></image>
<view class="title text">恭喜您</view>
<view class="title text">获得首批入场卷</view>
<view class="tips text">并得到一枚金火柴等级勋章</view>
<view class="tips share-text">将喜悦分享给好友</view>
<view class="share-box">
<view class="answer-btn close" catchtap="close">完成</view>
<button class="answer-btn share" open-type="share">去分享</button>
</view>
</view>
<view class="modal_box" wx:if="{{show_gold_modal}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>
<!--分数<80弹框-->
<view class="input-box score-box normal-box" wx:if="{{show_normal_modal}}" catchtouchmove="disableScroll">
<image class="sorry-img img" src="../../images/achieve-answer-img@2x.png"></image>
<view class="title text margin">恭喜您获得入场卷</view>
<view class="title text margin">等待开放权限</view>
<view class="answer-btn close close-btn" catchtap="close">随便看看</view>
</view>
<view class="modal_box" wx:if="{{show_normal_modal}}" bindtap="handleBackground" catchtouchmove="disableScroll"></view>