index.html
7.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
<include file="public@header"/>
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">订单列表</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('index')}">
订单号:
<input class="form-control" type="text" name="num" style="width: 200px;" value="{$num|default=''}"
placeholder="请输入订单号">
订单状态:
<select name="step" class="form-control" style="width: 120px;">
<option value>订单状态</option>
<option value="1" <eq name="$step" value="1"> selected </eq> >待支付</option>
<option value="2" <eq name="$step" value="2"> selected </eq> >待发货</option>
<option value="3" <eq name="$step" value="3"> selected </eq> >待收货</option>
<option value="4" <eq name="$step" value="4"> selected </eq> >待评论</option>
<option value="5" <eq name="$step" value="5"> selected </eq> >已完成</option>
<option value="6" <eq name="$step" value="6"> selected </eq> >待审核</option>
<option value="7" <eq name="$step" value="7"> selected </eq> >待退货</option>
<option value="8" <eq name="$step" value="8"> selected </eq> >待退款</option>
<option value="9" <eq name="$step" value="9"> selected </eq> >已退款</option>
</select>
收货人:
<input class="form-control" type="text" name="name" style="width: 200px;" value="{$name|default=''}"
placeholder="请输入收货姓名">
一级分类:
<select name="yi" class="form-control" style="width: 120px;" onchange="lie(this.value,0)">
<option value>请选择分类</option>
<foreach name="cate1" item="vo">
<option value="{$vo.id}" <eq name="$yi" value="$vo.id"> selected </eq> >{$vo.name}</option>
</foreach>
</select>
二级分类:
<select name="er" class="form-control" style="width: 120px;" id="er">
<option value>请选择分类</option>
</select>
<br/>
手机号:
<input class="form-control" type="number" name="mobile" style="width: 200px;" value="{$mobile|default=''}"
placeholder="请输入收货手机号">
下单时间:
<input type="text" class="form-control js-bootstrap-datetime" name="start_time"
value="{$start_time|default=''}"
style="width: 140px;" autocomplete="off">-
<input type="text" class="form-control js-bootstrap-datetime" name="end_time"
value="{$end_time|default=''}"
style="width: 140px;" autocomplete="off">
<input type="hidden" name="uid" value="{$uid|default=''}">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('index',array('uid'=>$uid))}">清空</a>
<div style="float: right; margin-right: 20px"><font size="+1">总消费积分:{$whole_num} 总消费金额:¥{$total}</font></div>
</form>
<form method="post" class="js-ajax-form">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>订单号</th>
<th>微信商户订单号</th>
<th>下单用户</th>
<th>收货人</th>
<th>收货手机号</th>
<th>收货地址</th>
<th>下单时间</th>
<th>支付方式</th>
<th>完成时间</th>
<th>订单状态</th>
<th>订单金额</th>
<th>订单积分</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="all" item="vo">
<tr>
<td>{$vo.order_num}</td>
<td>{$vo.out_trade_no}</td>
<td>{$vo['user_nickname']}</td>
<td>{$vo.name}</td>
<td>{$vo.mobile}</td>
<td>{$vo.site}</td>
<td>{:date('Y-m-d H:i',$vo.create_time)}</td>
<td>
<if condition="$vo.pay_type eq 1">
微信支付
<elseif condition="$vo.pay_type eq 2">
组合支付
<elseif condition="$vo.pay_type eq 3">
积分支付
</if>
</td>
<td>
<if condition="$vo.step eq 5||$vo.step eq 9">
{:date('Y-m-d H:i',$vo.end_time)}
<elseif condition="$vo.step lt 5">
订单未完成
<elseif condition="$vo.step gt 5&&$vo.step neq 9">
退款未完成
</if>
</td>
<td>
<if condition="$vo.step eq 1">
待支付
<elseif condition="$vo.step eq 2">
待发货
<elseif condition="$vo.step eq 3">
待收货
<elseif condition="$vo.step eq 4">
待评价
<elseif condition="$vo.step eq 5">
已完成
<elseif condition="$vo.step eq 6">
待审核
<elseif condition="$vo.step eq 7">
待退货
<elseif condition="$vo.step eq 8">
待退款
<elseif condition="$vo.step eq 9">
已退款
</if>
</td>
<td>{$vo.whole}</td>
<td>{$vo.whole_num}</td>
<td>
<a href="{:url('detail',array('id'=>$vo['id'],'sta'=>'1'))}">订单详情</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
//分类默认选中
var yi="{$yi}";
var er0="{$er}";
var er1={:json_encode($cate2)};
function lie(ii,ll) {
var ee=document.getElementById('er')
var op=document.createElement('option')
rem(ee)
op.text='请选择分类';
op.value='';
ee.add(op);
if (ii!=''){
for (i=0;i<=er1.length-1;i++){
if (ii==er1[i]['cid']){
var opt=document.createElement('option');
opt.text=er1[i]['name']
opt.value=er1[i]['id']
if (ll==er1[i]['id']){
opt.selected =true
}
ee.add(opt)
}
}
}
}
lie(yi,er0);
//删除option
function rem(ii) {
for (i=ii.options.length-1;i>=0;i--){
ii.remove(i)
}
}
</script>
</body>
</html>