zslist.html
8.04 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
<include file="public/layout" />
<link href="__PUBLIC__/static/css/base_add.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/static/css/seller_center_add.css" rel="stylesheet" type="text/css">
<style>
.w150 {
margin-right: 35px;
}
.w378 {
display: inline-block !important;
}
.di-in {
display: inline-block !important;
}
.w160 {
width: 160px !important;
}
.nscs-table-handle {
border-right: 1px solid #dedede;
}
.layui-layer-btn{text-align: center}
.exchange-goods {
vertical-align: middle;
letter-spacing: normal;
word-spacing: normal;
text-align: center;
display: inline-block;
padding: 0 4px;
border-left: solid 1px #E6E6E6;
*display: inline;
border-left: none 0;
}
.exchange-goods a {
color: #777;
background-color: #FFF;
display: block;
padding: 3px 7px;
margin: 1px;
}
.exchange-goods a i { font-size: 14px; line-height: 16px; height: 16px; display: block; clear: both; margin: 0; padding: 0;}
.exchange-goods a p { font: 12px/16px arial; height: 16px; display: block; clear: both; margin: 0; padding: 0;}
.exchange-goods a:hover { text-decoration: none; color: #FFF; margin: 0; border-style: solid; border-width: 1px;background-color:#48CFAE}
</style>
<script type="text/javascript" src="__PUBLIC__/static/js/layer/laydate/laydate.js"></script>
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
<div class="fixed-bar">
<div class="item-title">
<!--<div class="subject">
<h3>商品订单</h3>
<h5>商城实物商品交易订单查询及管理</h5>
</div>-->
<div class="ftitle disib">
<h3 class="disib">礼包列表</h3>
<h5 class="disib">(共<span id="order_count"></span>条记录)</h5>
</div>
<div title="刷新数据" class="pReload disib"><i class="fa fa-refresh"></i></div>
</div>
</div>
<!-- 操作说明 -->
<div id="explanation" class="explanation" style=" width: 99%; height: 100%; display: none;">
<div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
<h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
<span title="收起提示" id="explanationZoom" style="display: block;"></span>
</div>
<ul>
<li>查看操作可以查看订单详情, 包括支付费用, 商品详情等</li>
<li>未支付的订单可以取消</li>
<li>用户收货后, 如果没有点击"确认收货",系统自动根据设置的时间结算.</li>
</ul>
</div>
<div class="flexigrid">
<div class="mDiv mDivHA">
<div class="tabmenu">
<ul id="tab" class="tab pngFix">
<li class="active" data-val="">
<a href="javascript:">所有礼包</a>
</li>
<li class="normal" data-val="0">
<a href="javascript:">待付款</a>
</li>
<li class="normal" data-val="1">
<a href="javascript:">待赠送</a>
</li>
<li class="normal" data-val="2">
<a href="javascript:">已赠送</a>
</li>
<li class="normal" data-val="-1">
<a href="javascript:">已作废</a>
</li>
</ul>
</div>
<form method="get" id="search-form2">
<input type="hidden" name="order_by" value="add_time" />
<input type="hidden" name="sort" value="desc" />
<!--<input type="hidden" name="user_id" value="{$Request.param.user_id}">-->
<input type="hidden" name="order_status" id="order_status" value="" />
<!--用于查看结算统计 包含了哪些订单-->
<input type="hidden" value="{$_GET['order_statis_id']}" name="order_statis_id" />
<table class="search-form">
<tr>
<th> <select name="keytype" id="keytype" class="w80 di-in">
<option value="1">礼包编号</option>
<option value="2">会员手机</option>
</select></th>
<td class="w100"><input type="text" class="text w120" name="keywords" id="keywords" placeholder="请输入关键字" value="" /></td>
<th>下单时间</th>
<td class="w250">
<input type="text" class="text w110" style="display: none" name="add_time_begin" id="add_time_begin" placeholder="开始时间" value="" />
<input type="text" class="text w110" style="display: none" name="add_time_end" id="add_time_end" placeholder="结束时间" value="" />
<include file="public/date" />
</td>
<th>门店查询</th>
<td>
<select name="picksle_type" class="w120 di-in">
<option value="">请选择门店查询</option>
<option value="0">门店编号</option>
<option value="1">门店名称</option>
</select>
<input type="hidden" id="timegap" name="timegap" value="{$timegap}">
<input class="text w120" name="picksle" placeholder="请输入" value="" type="text">
<div class="sDiv2">
<input type="button" id="sumbitbtn" onclick="ajax_get_table('search-form2',1)" class="btn" value="搜索">
</div>
</td>
</tr>
</table>
</form>
</div>
<!--内容页-->
<div id="ajax_return">
</div>
</div>
</div>
<script>
$(document).ready(function() {
$("#exp_type").val("{:urldecode(urldecode($Think.request.exp_type))}");
$("select[name='keytype']").val("{:urldecode(urldecode($Think.request.keytype))}");
$("#keywords").val("{:urldecode(urldecode($Think.request.keywords))}");
$("select[name='picksle_type']").val("{:urldecode(urldecode($Think.request.picksle_type))}");
$("input[name='picksle']").val("{:urldecode(urldecode($Think.request.picksle))}");
$("#order_status").val("{:urldecode(urldecode($Think.request.order_status))}");
$("#add_time_begin").val("{:urldecode(urldecode($Think.request.add_time_begin))}");
$("#add_time_end").val("{:urldecode(urldecode($Think.request.add_time_end))}");
var getinputdate="";
if ($("#add_time_begin").val()!="" && $("#add_time_end").val()!="")
{
getinputdate = $("#add_time_begin").val() + " - " + $("#add_time_end").val();
}
$('#reportrange span').html(getinputdate);
var pp="{$Think.request.p}";
if(pp=="")
pp=0;
ajax_get_table('search-form2', pp);
$("#tab > li").each(function() {
$(this).click(function() {
tabSelect(this);
});
$(this).removeClass('active');
if ($(this).attr("data-val")==$("#order_status").val())
{
$(this).addClass('active');
}
});
});
function tabSelect(obj) {
var currHasClass = $(obj).hasClass('active');
if(currHasClass) return;
$("#tab > li").each(function() {
$(this).removeClass('active');
});
$(obj).addClass('active');
var orderStatus = $(obj).attr("data-val");
if(orderStatus=="") //全部时显示支付状态和发货状态
{
$(".pay_status").show();
$(".shipping").show();
}
else if(orderStatus==0 || orderStatus==1) //未发货不显示发货状态
{
$(".shipping").hide();
$(".pay_status").hide();
}
else
{
$(".shipping").show();
$(".pay_status").hide();
}
//console.log("orderStatus:" + orderStatus);
$("#order_status").val(orderStatus);
ajax_get_table('search-form2', 1);
}
//ajax 抓取页面
function ajax_get_table(tab, page) {
layer.msg('加载中...', {icon: 16,shade: [0.5, '#f5f5f5'],scrollbar: false,offset: '200px', time:100000}) ;
cur_page = page; //当前页面 保存为全局变量
$.ajax({
type: "POST",
url: "/index.php/admin/giftuser/ajaxzslist/p/" + page, //+tab,
data: $('#' + tab).serialize(), // 你的formid
success: function(data) {
$("#ajax_return").html('');
$("#ajax_return").append(data);
layer.closeAll();
}
});
}
</script>
</body>
</html>