template.wxml
7.0 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
<!-- 待付款 -->
<template name="daifukuan">
<view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
<!-- 状态单号日期 -->
<view class="state">
<view class="stateFontNumber">
<view class="stateFont">待付款</view>
<view class="number">{{item.order_sn}}</view>
<view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
<view class="shopTypeT" wx:else>堂食</view>
</view>
<view class="time">{{item.add_time}}</view>
</view>
<!-- 订单信息 -->
<view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
<image src="{{item.thumb}}"></image>
<view class="nameHint">
<view class="name">{{item.goods_name}}</view>
<view class="hint">{{item.goods_description}}</view>
</view>
<view class="numMon">
<view class="mon">¥{{item.goods_price}}</view>
<view class="num">x{{item.goods_num}}</view>
</view>
</view>
<!-- 付款信息 -->
<view class="payMes">
<view class="all">合计:¥{{item.order_amount}}</view>
<view class="cancel" catchtap='cancel' data-oid='{{item.oid}}'>取消订单</view>
<view class="pay" catchtap='pay' data-oid='{{item.oid}}'>去支付</view>
</view>
</view>
</template>
<!-- 制作中 -->
<template name="zhizuozhong">
<view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
<!-- 状态单号日期 -->
<view class="state">
<view class="stateFontNumber">
<view class="stateFont" style="color:#FEAD00;">制作中</view>
<view class="number">{{item.order_sn}}</view>
<view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
<view class="shopTypeT" wx:else>堂食</view>
</view>
<view class="time">{{item.add_time}}</view>
</view>
<!-- 订单信息 -->
<view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
<image src="{{item.thumb}}"></image>
<view class="nameHint">
<view class="name">{{item.goods_name}}</view>
<view class="hint">{{item.goods_description}}</view>
</view>
<view class="numMon">
<view class="mon">¥{{item.goods_price}}</view>
<view class="num">x{{item.goods_num}}</view>
</view>
</view>
<!-- 付款信息 -->
<view class="payMes">
<view class="all" style="color:#333333;margin-right:0;">合计:¥{{item.order_amount}}</view>
<!-- <view class="cancel" >取消订单</view> -->
<!-- <view class="pay" style="width:183rpx;background:#67C33E;">导航去取货</view> -->
</view>
</view>
</template>
<!-- 待取货 -->
<template name="daiquhuo">
<view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
<!-- 状态单号日期 -->
<view class="state">
<view class="stateFontNumber">
<view class="stateFont" style="color:#67C33E;">待取货</view>
<view class="number">{{item.order_sn}}</view>
<view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
<view class="shopTypeT" wx:else>堂食</view>
</view>
<view class="time">{{item.add_time}}</view>
</view>
<!-- 订单信息 -->
<view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
<image src="{{item.thumb}}"></image>
<view class="nameHint">
<view class="name">{{item.goods_name}}</view>
<view class="hint">{{item.goods_description}}</view>
</view>
<view class="numMon">
<view class="mon">¥{{item.goods_price}}</view>
<view class="num">x{{item.goods_num}}</view>
</view>
</view>
<!-- 付款信息 -->
<view class="payMes">
<view class="all" style="color:#333333;">合计:¥{{item.order_amount}}</view>
<!-- <view class="cancel" >取消订单</view> -->
<view class="pay" catchtap='navigation' data-id='{{item.oid}}' style="width:183rpx;background:#67C33E;color:#fff;">导航去取货</view>
</view>
</view>
</template>
<!-- 待评价-->
<template name="daipingjia">
<view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
<!-- 状态单号日期 -->
<view class="state">
<view class="stateFontNumber">
<view class="stateFont" style="color:#333333;">待评价</view>
<view class="number">{{item.order_sn}}</view>
<view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
<view class="shopTypeT" wx:else>堂食</view>
</view>
<view class="time">{{item.add_time}}</view>
</view>
<!-- 订单信息 -->
<view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
<image src="{{item.thumb}}"></image>
<view class="nameHint">
<view class="name">{{item.goods_name}}</view>
<view class="hint">{{item.goods_description}}</view>
</view>
<view class="numMon">
<view class="mon">¥{{item.goods_price}}</view>
<view class="num">x{{item.goods_num}}</view>
</view>
</view>
<!-- 付款信息 -->
<view class="payMes">
<view class="all" style="color:#333333;">合计:¥{{item.order_amount}}</view>
<!-- <view class="cancel" >取消订单</view> -->
<view class="pay" catchtap='evaluate' data-id='{{item.oid}}' style="width:133rpx;background:#EEEEEE;color:#333333;">去评价</view>
</view>
</view>
</template>
<!-- 已完成-->
<template name="yiwancheng">
<view class="payment" bindtap='orderDetails' data-id='{{item.oid}}'>
<!-- 状态单号日期 -->
<view class="state">
<view class="stateFontNumber">
<view class="stateFont" style="color:#333333;">已完成</view>
<view class="number">{{item.order_sn}}</view>
<view class="shopType" wx:if="{{item.order_type == '1'}}">自提</view>
<view class="shopTypeT" wx:else>堂食</view>
</view>
<view class="time">{{item.add_time}}</view>
</view>
<!-- 订单信息 -->
<view class="spMes" wx:for="{{item.order_goods}}" wx:key="">
<image src="{{item.thumb}}"></image>
<view class="nameHint">
<view class="name">{{item.goods_name}}</view>
<view class="hint">{{item.goods_description}}</view>
</view>
<view class="numMon">
<view class="mon">¥{{item.goods_price}}</view>
<view class="num">x{{item.goods_num}}</view>
</view>
</view>
<!-- 付款信息 -->
<view class="payMes">
<view class="all" style="color:#333333;">合计:¥{{item.order_amount}}</view>
<!-- <view class="cancel" >取消订单</view> -->
<view class="pay" bindtap='recur' style="width:133rpx;background:#FFCC00;color:#333333;">再来一单</view>
</view>
</view>
</template>