myOrder.wxml
12.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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<view class="cancelregister" wx:if="{{cancelorder}}">
<view class="cancelregisterwrap">
<view class="cancelordernot">是否删除该订单</view>
<view class="cancelbtn">
<view class="ordercancel" bindtap="canceltbtn">取消</view>
<view class="ordersure" bindtap="surebtn">确定</view>
</view>
</view>
</view>
<!-- 商户电话 -->
<view class='clerk_fn' wx:if="{{reveal}}" bindtap='tapHide'>
<view class='clerk_box'>
<view class='shopphone'>商家电话</view>
<view class='clerk_con'>{{telshop}}</view>
<view class="clerk_fn_foot">
<view class='close' catchtap='close'>关闭</view>
<view class='close' catchtap='boda'>拨打</view>
</view>
</view>
</view>
<!-- 我的订单页面 -->
<!-- begin:切换头部 -->
<view class='warp_head'>
<view class="warp_name {{orderTab==0?'orderActive':''}}" data-current="0" bindtap='orderClick'>全部</view>
<view class="warp_name {{orderTab==1?'orderActive':''}}" data-current="1" bindtap='orderClick'>待付款</view>
<view class="warp_name {{orderTab==2?'orderActive':''}}" data-current="2" bindtap='orderClick'>待完成</view>
<!-- <view class="warp_name {{orderTab==3?'orderActive':''}}" data-current="3" bindtap='orderClick'>已取消</view> -->
<view class="warp_name {{orderTab==5?'orderActive':''}}" data-current="5" bindtap='orderClick'>待评价</view>
<view class="warp_name {{orderTab==6?'orderActive':''}}" data-current="6" bindtap='orderClick'>已完成</view>
</view>
<!-- begin:切换内容 -->
<view wx:if="{{orderTab==0}}">
<view class='nodata' wx:if="{{orderlist.length==0}}">目前还没有购买过服务,去看看你需要的服务吧</view>
<view wx:else>
<block wx:for="{{orderlist}}" wx:key="">
<view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
<view wx:if="{{item.status==2}}" class="pre">
<view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
<view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
</view>
<view wx:if="{{item.status==5}}" class="pre">
<view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
</view>
<image class='course_img' src='{{item.list_pic}}'></image>
<view class='course_menu'>
<view class='order_name'>{{item.title}}</view>
<view class='order_price'>¥{{item.now_money}}</view>
<view class="paylist">
<view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
<view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==8}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
<view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
<view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
<view class="waitlist" wx:if="{{item.status==1}}">
<view class="waitpay" catchtap='pay' data-id="{{item.id}}">付款</view>
<view class="waitcancel" catchtap='cancelpay' data-id="{{item.id}}">取消</view>
</view>
</view>
</view>
</view>
</block>
</view>
</view>
<view wx:if="{{orderTab==1}}">
<view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
<view wx:else>
<block wx:for="{{orderlist}}" wx:key="">
<view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
<view wx:if="{{item.status==2}}" class="pre">
<view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
<view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
</view>
<view wx:if="{{item.status==5}}" class="pre">
<view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
</view>
<image class='course_img' src='{{item.list_pic}}'></image>
<view class='course_menu'>
<view class='order_name'>{{item.title}}</view>
<view class='order_price'>¥{{item.now_money}}</view>
<view class="paylist">
<view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
<view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==8}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
<view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
<view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
<view class="waitlist">
<view class="waitpay" catchtap='pay' data-id="{{item.id}}">付款</view>
<view class="waitcancel" catchtap='cancelpay' data-id="{{item.id}}">取消</view>
</view>
</view>
</view>
</view>
</block>
</view>
</view>
<view wx:if="{{orderTab==2}}">
<view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
<view wx:else>
<block wx:for="{{orderlist}}" wx:key="">
<view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
<view wx:if="{{item.status==2}}" class="pre">
<view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
<view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
</view>
<view wx:if="{{item.status==5}}" class="pre">
<view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
</view>
<image class='course_img' src='{{item.list_pic}}'></image>
<view class='course_menu'>
<view class='order_name'>{{item.title}}</view>
<view class='order_price'>¥{{item.now_money}}</view>
<view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
<view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==8}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
<view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
<view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
</view>
</view>
</block>
</view>
</view>
<view wx:if="{{orderTab==3}}">
<view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
<view wx:else>
<block wx:for="{{orderlist}}" wx:key="">
<view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
<view wx:if="{{item.status==2}}" class="pre">
<view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
<view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
</view>
<view wx:if="{{item.status==5}}" class="pre">
<view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
</view>
<image class='course_img' src='{{item.list_pic}}'></image>
<view class='course_menu'>
<view class='order_name'>{{item.title}}</view>
<view class='order_price'>¥{{item.now_money}}</view>
<view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
<view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==8}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
<view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
<view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
</view>
</view>
</block>
</view>
</view>
<view wx:if="{{orderTab==4}}">
<view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
<view wx:else>
<block wx:for="{{orderlist}}" wx:key="">
<view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
<view wx:if="{{item.status==2}}" class="pre">
<view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
<view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
</view>
<view wx:if="{{item.status==5}}" class="pre">
<view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
</view>
<image class='course_img' src='{{item.list_pic}}'></image>
<view class='course_menu'>
<view class='order_name'>{{item.title}}</view>
<view class='order_price'>¥{{item.now_money}}</view>
<view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
<view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==8}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
<view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
<view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
</view>
</view>
</block>
</view>
</view>
<view wx:if="{{orderTab==5}}">
<view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
<view wx:else>
<block wx:for="{{orderlist}}" wx:key="">
<view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
<view wx:if="{{item.status==2}}" class="pre">
<view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
<view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
</view>
<view wx:if="{{item.status==5}}" class="pre">
<view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
</view>
<image class='course_img' src='{{item.list_pic}}'></image>
<view class='course_menu'>
<view class='order_name'>{{item.title}}</view>
<view class='order_price'>¥{{item.now_money}}</view>
<view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
<view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==8}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
<view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
<view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
</view>
</view>
</block>
</view>
</view>
<view wx:if="{{orderTab==6}}">
<view class='nodata' wx:if="{{orderlist.length==0}}">暂无数据</view>
<view wx:else>
<block wx:for="{{orderlist}}" wx:key="">
<view class='course_box' bindtap='order_Tap' data-orderid="{{item.id}}">
<view wx:if="{{item.status==2}}" class="pre">
<view class='course_btn yuyue' catchtap="showphone" data-id="{{item.id}}">预约</view>
<view class='course_btn' catchtap="finish" data-id="{{item.id}}">完成</view>
</view>
<view wx:if="{{item.status==5}}" class="pre">
<view class='course_btn' catchtap="evalute" data-id="{{item.id}}">待评价</view>
</view>
<image class='course_img' src='{{item.list_pic}}'></image>
<view class='course_menu'>
<view class='order_name'>{{item.title}}</view>
<view class='order_price'>¥{{item.now_money}}</view>
<view class='order_tab' wx:if="{{item.status==1}}">待付款</view>
<view class='order_tab' wx:if="{{item.status==2}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==8}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==3}}">已取消</view>
<view class='order_tab' wx:if="{{item.status==4}}">待完成</view>
<view class='order_tab' wx:if="{{item.status==5}}">待评价</view>
<view class='order_tab' wx:if="{{item.status==6}}">已完成</view>
</view>
</view>
</block>
</view>
</view>
<view class="searchfuwu" wx:if="{{orderlist.length==0}}" bindtap="searchfu">寻找服务</view>