list.wxml
3.72 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
<!--pages/customer/list.wxml-->
<nav>
<view class="view header-tabs flex align-end">
<view class="view item {{tabType<5?'active':''}} margin-right-lg" data-type="1" bindtap="switchType">我的订单</view>
<view class="view item {{tabType>4?'active':''}} flex-ll" data-type="5" bindtap="switchType">
<view>我的套餐</view>
<view class="notice" wx:if="{{shownotice==true}}"></view>
</view>
</view>
</nav>
<view class="view tabs flex padding-lr-lg padding-top-xs justify-between padding-bottom-sm margin-bottom-sm" wx:if="{{tabType<5}}">
<view class="view item {{tabType==1?'active':''}}" data-type="1" bindtap="switchType">等待确认</view>
<view class="view item {{tabType==2?'active':''}}" data-type="2" bindtap="switchType">预订成功</view>
<view class="view item {{tabType==3?'active':''}}" data-type="3" bindtap="switchType">历史订单</view>
<view class="view item {{tabType==4?'active':''}}" data-type="4" bindtap="switchType">无效预订</view>
</view>
<view class="view tabs flex padding-lr-lg padding-top-xs justify-between padding-bottom-sm margin-bottom-sm" wx:else="">
<view class="view item {{tabType==5?'active':''}}" data-type="5" bindtap="switchType">待使用</view>
<view class="view item {{tabType==6?'active':''}}" data-type="6" bindtap="switchType">已使用</view>
<view class="view item {{tabType==7?'active':''}}" data-type="7" bindtap="switchType">已过期</view>
<view class="view item {{tabType==8?'active':''}}" data-type="8" bindtap="switchType">退款</view>
</view>
<view class="view pages">
<block wx:if="{{list[tabType].length==0}}">
<view class="flex-vc empry">
<image src="http://nosqn.colorcun.com/2.0/home%20%2817%29.png"></image>
<view class="Medium">暂无订单哦</view>
</view>
</block>
<block wx:else="">
<block wx:if="{{tabType<5}}">
<navigator wx:for="{{list[tabType]}}" wx:key="*this"
wx:for-item="detail" wx:for-index="dateIndex"
url="/pages/customer/{{detail.navigator}}?id={{detail.id}}">
<card
hasShowStatus bindevent="gotoDetail"
seller="{{detail.seller}}" detail="{{detail}}"></card>
</navigator>
</block>
<view class="view padding-lr" wx:else="">
<navigator wx:for="{{list[tabType]}}" wx:key="*this"
wx:for-item="order" wx:for-index="dateIndex"
class="margin-bottom-lg"
url="/pages/taocan/order?id={{order.order_id}}">
<subject listOrder="{{order}}" hasTopStatus>
<view class="view flex justify-end margin-top">
<view wx:if="{{order.status==2}}"
class="txt-26-h subject-button2 flex justify-center align-center" >到店使用</view>
<navigator url="/pages/taocan/index?sid={{order.sid}}&pid={{order.food_id}}" catchtap="catchtap">
<view wx:if="{{order.status==3}}"
class="txt-26-h subject-button flex justify-center align-center" >再来一单</view>
</navigator>
<navigator url="/pages/taocan/index?sid={{}}&pid={{order.order_id}}" catchtap="catchtap">
<view wx:if="{{order.status==4}}"
class="txt-26-h subject-button flex justify-center align-center" >查看进度</view>
</navigator>
</view>
</subject>
</navigator>
</view>
<view class="view" style="height: 192rpx;"></view>
</block>
</view>
<menu></menu>
<service></service>