detail.html
12.1 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
290
291
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">订单详情</a></li>
</ul>
<div class="row">
<div class="col-md-5">
<table class="table table-bordered">
<tr>
<th style="width: 40%;">订单编号</th>
<td>
<span>{$one.order_num}</span>
</td>
</tr>
<tr>
<th>订单状态</th>
<td>
<span>
<if condition="$one.step eq 1">
待支付
<elseif condition="$one.step eq 2">
待发货
<elseif condition="$one.step eq 3">
待收货
<elseif condition="$one.step eq 4">
待评价
<elseif condition="$one.step eq 5">
已完成
<elseif condition="$one.step eq 6">
待审核
<elseif condition="$one.step eq 7">
待退货
<elseif condition="$one.step eq 8">
待退款
<elseif condition="$one.step eq 9">
已退款
</if>
</span>
</td>
</tr>
<tr>
<th>下单用户</th>
<td>
<span>{$one.user_nickname}</span>
</td>
</tr>
<tr>
<th>联系方式</th>
<td>
<span>{$one.mobile}</span>
</td>
</tr>
<tr>
<th>下单时间</th>
<td>
<span>{:date('Y-m-d H:i',$one.create_time)}</span>
</td>
</tr>
<tr>
<th>所购商品</th>
<td>
<foreach name="all" item="vo">
<span>{$vo.name}*{$vo.num}</span><br/>
</foreach>
</td>
</tr>
<tr>
<th>支付时间</th>
<td>
<span>
<if condition="$one.pay_time neq ''">
{:date('Y-m-d H:i',$one.pay_time)}
</if>
</span>
</td>
</tr>
<tr>
<th>支付方式</th>
<td>
<span>
<if condition="$one.pay_type eq 1">
微信支付
<elseif condition="$one.pay_type eq 2">
组合支付
<elseif condition="$one.pay_type eq 3">
积分支付
</if>
</span>
</td>
</tr>
<tr>
<th>订单完成时间</th>
<td>
<span>
<if condition="$one.step eq 5||$one.step eq 9">
{:date('Y-m-d H:i',$one.end_time)}
<elseif condition="$one.step lt 5">
订单未完成
<elseif condition="$one.step gt 5&&$one.step neq 9">
退款未完成
</if>
</span>
</td>
</tr>
<tr>
<th>订单金额</th>
<td>
<span>{$one.whole}</span>
</td>
</tr>
<tr>
<th>订单积分</th>
<td>
<span>{$one.whole_num}</span>
</td>
</tr>
<tr>
<th>订单备注</th>
<td>
<span>{$one.remark}</span>
</td>
</tr>
<if condition="$one.step gt 2 && $one.kid neq 0">
<tr>
<th>物流轨迹</th>
<td>
<foreach name="kdgj" item="vo">
<p><span>{$vo.AcceptTime}</span> {$vo.AcceptStation}</p>
</foreach>
</td>
</tr>
</if>
</table>
<if condition="$one.step gt 5">
<table class="table table-bordered">
<tr>
<th style="width: 40%;">申请退款时间</th>
<td>
<span>
<if condition="$one.refund_time neq 0">
{:date('Y-m-d H:i',$one.refund_time)}
</if>
</span>
</td>
</tr>
<tr>
<th>退款原因</th>
<td>
<span>{$one.cause}</span>
</td>
</tr>
<tr>
<th>退款快递</th>
<td>
<span>{$one.company}</span>
</td>
</tr>
<tr>
<th>退款快递单号</th>
<td>
<span>{$one.com_order}</span>
</td>
</tr>
<tr>
<th>订单退款完成备注</th>
<td>
<if condition="$one.remarkt neq ''">
<span>{$one.remarkt}</span>
</if>
</td>
</tr>
</table>
</if>
</div>
<div class="col-md-5">
<form action="{:url('detailPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
<table class="table table-bordered">
<if condition="$one.step eq 2||$one.step eq 1">
<tr>
<th>收货人</th>
<td>
<input type="text" name="name" value="{$one.name}" class="form-control">
</td>
</tr>
<tr>
<th>收货手机号</th>
<td>
<input type="number" name="mobile" value="{$one.mobile}" class="form-control">
</td>
</tr>
<tr>
<th>收货地址</th>
<td>
<input type="text" name="site" value="{$one.site}" class="form-control">
</td>
</tr>
<elseif condition="$one.step gt 2&&$one.step lt 5">
<tr>
<th>收货人</th>
<td>
<span>{$one.name}</span>
</td>
</tr>
<tr>
<th>收货手机号</th>
<td>
<span>{$one.mobile}</span>
</td>
</tr>
<tr>
<th>收货地址</th>
<td>
<span>{$one.site}</span>
</td>
</tr>
<tr>
<th>快递公司</th>
<td>
<select name="kid" class="form-control" style="width: 120px;">
<option value="0">自提</option>
<foreach name="kd" item="vo">
<option value="{$vo.id}" <eq name="$one.kid" value="$vo.id">selected</eq>>{$vo.name}</option>
</foreach>
</select>
</td>
</tr>
<tr>
<th>快递单号</th>
<td>
<input type="text" name="kd_num" value="{$one.kd_num}" class="form-control">
</td>
</tr>
<elseif condition="$one.step gt 5">
<tr>
<th>收货人</th>
<td>
<span>{$one.name}</span>
</td>
</tr>
<tr>
<th>收货手机号</th>
<td>
<span>{$one.mobile}</span>
</td>
</tr>
<tr>
<th>收货地址</th>
<td>
<span>{$one.site}</span>
</td>
</tr>
<tr>
<th>快递公司</th>
<td>
<span>{$one.kname}</span>
</td>
</tr>
<tr>
<th>快递单号</th>
<td>
<span>{$one.kd_num}</span>
</td>
</tr>
</if>
</table>
<if condition="$one.step elt 5">
<input type="hidden" value="{$one.id}" name="id">
<input type="hidden" value="{$one.step}" name="step">
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
<a href="{$url}" class="btn btn-primary" >返回</a>
</div>
</div>
</if>
</form>
</div>
</div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>