正在显示
2 个修改的文件
包含
615 行增加
和
469 行删除
@@ -54,6 +54,34 @@ class OrderSalesmanController extends WeChatBaseController | @@ -54,6 +54,34 @@ class OrderSalesmanController extends WeChatBaseController | ||
54 | if(empty($school_id)){ | 54 | if(empty($school_id)){ |
55 | $this->error('缺少必要参数'); | 55 | $this->error('缺少必要参数'); |
56 | } | 56 | } |
57 | - | 57 | + $grade = Db::name('grade_class')->where(['school_id'=>$school_id])->select()->toArray(); |
58 | + foreach($grade as $key => $g){ | ||
59 | + $class = explode('-',$g['class']); | ||
60 | + $grade[$key]['start'] = $class[0]; | ||
61 | + $grade[$key]['end'] = $class[1]; | ||
62 | + } | ||
63 | + $this->success('SUCCESS','',$grade); | ||
64 | + } | ||
65 | + public function getOrderSalesman(){ | ||
66 | + $param = $this->request->param(); | ||
67 | + if(!empty($param['school'])){ | ||
68 | + $where['school'] = ['eq',$param['school']]; | ||
69 | + } | ||
70 | + if(!empty($param['grade'])){ | ||
71 | + $where['grade'] = ['eq',$param['grade']]; | ||
72 | + } | ||
73 | + $user_id = $this->user_id; | ||
74 | + $where['salesman_uid'] = ['eq',$user_id]; | ||
75 | + $where['indent_type'] = ['eq',2]; | ||
76 | + $where['state'] = ['neq',4]; | ||
77 | + $indentModel = new IndentModel(); | ||
78 | + $data = $indentModel->selectData($where); | ||
79 | + $indentGoodsModel = new IndentGoodsModel(); | ||
80 | + foreach($data as $key => $vo){ | ||
81 | + $indent_goods = $indentGoodsModel->selectData(['indent_id'=>$vo['id']]); | ||
82 | + $data[$key]['indent_goods'] = $indent_goods; | ||
83 | + $dara[$key]['create_time'] = date('Y-m-d H:i:s',$vo['create_time']); | ||
84 | + } | ||
85 | + $this->success('SUCCESS','',$data); | ||
58 | } | 86 | } |
59 | } | 87 | } |
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html lang="en"> | 2 | <html lang="en"> |
3 | 3 | ||
4 | - <head> | ||
5 | - <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> | ||
6 | - <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" /> | ||
7 | - <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
8 | - <title>学考无忧-订单管理</title> | ||
9 | - <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.min.css" /> | ||
10 | - <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.picker.min.css" /> | ||
11 | - <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css" /> | ||
12 | - <link rel="stylesheet" href="__TMPL__/public/assets/css/log.css" /> | ||
13 | - </head> | 4 | +<head> |
5 | + <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> | ||
6 | + <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/> | ||
7 | + <meta http-equiv="X-UA-Compatible" content="ie=edge"/> | ||
8 | + <title>学考无忧-订单管理</title> | ||
9 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.min.css"/> | ||
10 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.picker.min.css"/> | ||
11 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css"/> | ||
12 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/log.css"/> | ||
13 | +</head> | ||
14 | 14 | ||
15 | - <body> | ||
16 | - <div class="tx_mask_school"> | ||
17 | - <div class="tx_maskCon_school"> | ||
18 | - <div class="three_model_school"> | ||
19 | - <div class="three_model_school_title"> | ||
20 | - 选择学校-班级 | ||
21 | - </div> | ||
22 | - <div class="three_model_school_tab"> | ||
23 | - <div class="three_model_school_left three_model_school_hover word_color"> | ||
24 | - 学校 | ||
25 | - </div> | ||
26 | - <div class="three_model_school_left"> | ||
27 | - 班级 | ||
28 | - </div> | ||
29 | - </div> | ||
30 | - <div> | ||
31 | - <div class="three_model_school_data there_university" style="display: block;"> | ||
32 | - <foreach name="$school" item="s"> | ||
33 | - <div class="three_model_school_name <if condition='$key eq 0'>there_unActive</if> school" data-id="{$s.id}">{$s.school}</div> | ||
34 | - </foreach> | ||
35 | - </div> | ||
36 | - <div class="three_model_school_data there_class"> | ||
37 | - <div class="three_model_school_name">G1-11</div> | ||
38 | - </div> | ||
39 | - </div> | ||
40 | - </div> | ||
41 | - </div> | ||
42 | - </div> | ||
43 | - <!-- 弹窗 --> | ||
44 | - <div class="tx_mask"> | ||
45 | - <div class="tx_maskCon"> | ||
46 | - <div class="tx_maskConImg"> | ||
47 | - <img src="__TMPL__/public/assets/images/90.png" alt="" /> | ||
48 | - </div> | ||
49 | - <div class="tx_maskCon2"> | ||
50 | - <div class="log_three_model"> | ||
51 | - <div class="log_three_model_one"> | ||
52 | - <div class="log_three_model_left">配送时间</div> | ||
53 | - <div class="log_psong"> | ||
54 | - <input type="" name="" id="" value="" placeholder="请输入开始配送时间" /> | ||
55 | - </div> | ||
56 | - </div> | ||
57 | - <div class="log_three_model_one"> | ||
58 | - <div class="log_three_model_left">配送时间</div> | ||
59 | - <div class="log_psong"> | ||
60 | - <input type="" name="" id="" value="" placeholder="请输入结束配送时间" /> | ||
61 | - </div> | ||
62 | - </div> | ||
63 | - <div class="log_three_model_one" style="padding-bottom: 0;"> | ||
64 | - <div class="log_three_model_left" style="margin-top: -0.3rem;">单号</div> | ||
65 | - <div class="log_three_model_right"> | ||
66 | - <input type="text" placeholder="请输入快递单号" /> | ||
67 | - </div> | ||
68 | - </div> | ||
69 | - </div> | ||
70 | - <!-- 确定 --> | ||
71 | - <div class="tx_maskOk">确定</div> | ||
72 | - </div> | ||
73 | - </div> | ||
74 | - </div> | ||
75 | - <div class="tx_maskone"> | ||
76 | - <div class="tx_maskCon"> | ||
77 | - <div class="tx_maskConImg"> | ||
78 | - <img src="__TMPL__/public/assets/images/91.png" alt="" /> | ||
79 | - </div> | ||
80 | - <div class="tx_maskCon2"> | ||
81 | - <div class="log_three_model"> | ||
82 | - <div class="log_three_model_one"> | ||
83 | - <div class="log_three_model_left">配送时间</div> | ||
84 | - <div class="log_psong"> | ||
85 | - <input type="" name="" id="" value="" placeholder="请输入开始配送时间" /> | ||
86 | - </div> | ||
87 | - </div> | ||
88 | - <div class="log_three_model_one"> | ||
89 | - <div class="log_three_model_left">配送时间</div> | ||
90 | - <div class="log_psong"> | ||
91 | - <input type="" name="" id="" value="" placeholder="请输入结束配送时间" /> | ||
92 | - </div> | ||
93 | - </div> | ||
94 | - </div> | ||
95 | - <!-- 确定 --> | ||
96 | - <div class="tx_maskOk">确定</div> | ||
97 | - </div> | ||
98 | - </div> | ||
99 | - </div> | ||
100 | - <div class="log_top_co"> | ||
101 | - <!-- 顶部 --> | ||
102 | - <div class=" order_top log_top_co"> | ||
103 | - <a href=""> | ||
104 | - <img src="__TMPL__/public/assets/images/left.png" alt="" /> | ||
105 | - </a> | ||
106 | - <p>订单管理</p> | ||
107 | - </div> | ||
108 | - </div> | ||
109 | - <!-- tab切换 --> | ||
110 | - <div class="log_three_tab"> | ||
111 | - <div class="log_three_tab_one log_three_tab_two word_color">未发货</div> | ||
112 | - <div class="log_three_tab_one">已发货</div> | ||
113 | - <div class="log_three_tab_one">已完成</div> | ||
114 | - </div> | ||
115 | - <!-- 下拉框 --> | ||
116 | - <div class="log_three_select"> | ||
117 | - <div class="log_three_select_one log_three_select_school"> | ||
118 | - <div class="log_three_select_title log_three_select_school2"> | ||
119 | - 请选择学校/班级 | ||
120 | - </div> | ||
121 | - <div class="log_three_select_img"> | ||
122 | - <img src="__TMPL__/public/assets/images/75.png" alt="" /> | ||
123 | - </div> | ||
124 | - </div> | ||
125 | - <div class="log_three_select_one log_three_select_peisong"> | ||
126 | - <div class="log_three_select_title"> | ||
127 | - 统一配送 | ||
128 | - </div> | ||
129 | - <div class="log_three_select_img"> | ||
130 | - <img src="__TMPL__/public/assets/images/75.png" alt="" /> | ||
131 | - </div> | ||
132 | - </div> | ||
133 | - <div class="log_three_select_one log_three_select_btn search"> | ||
134 | - 搜索 | ||
135 | - </div> | ||
136 | - </div> | ||
137 | - <!-- 列表内容 --> | ||
138 | - <div> | ||
139 | - <!--未发货--> | ||
140 | - <div class="log_three_list_contant" style="display: block;"> | ||
141 | - <foreach name="$data" item="vo"> | ||
142 | - <if condition="$vo.state eq 2"> | ||
143 | - <div class="log_three_list"> | ||
144 | - <div class="log_three_list_top"> | ||
145 | - <div class="log_three_list_top_left"> | ||
146 | - <div class="log_three_list_top_lo"> | ||
147 | - <img src="__TMPL__/public/assets/images/fangkuang.png" alt="" /> | ||
148 | - </div> | ||
149 | - <div class="log_three_list_top_lt"> | ||
150 | - <div class="log_three_zhongbiao"> | ||
151 | - <img src="__TMPL__/public/assets/images/52.png" alt="" /> | ||
152 | - </div> | ||
153 | - <div class="log_three_shijian"> | ||
154 | - {:date('Y-m-d H:i:s',$vo['create_time'])} | ||
155 | - </div> | ||
156 | - </div> | ||
157 | - </div> | ||
158 | - <div class="log_three_list_top_right"> | ||
159 | - <if condition="$vo.state eq 2"> | ||
160 | - 待发货 | ||
161 | - <elseif condition="$vo.state eq 5"/> | ||
162 | - 已发货 | ||
163 | - <elseif condition="$vo.state eq 3"/> | ||
164 | - 已完成 | ||
165 | - </if> | ||
166 | - </div> | ||
167 | - </div> | ||
168 | - <foreach name="$vo.indent_goods" item="i_g"> | ||
169 | - <div class="log_three_list_center"> | ||
170 | - <div class="log_three_list_center_left"> | ||
171 | - <img src="{:cmf_get_image_url($i_g.thumbnail)}" alt="" /> | ||
172 | - </div> | ||
173 | - <div class="log_three_list_center_right"> | ||
174 | - <div class="log_three_center_one"> | ||
175 | - {$i_g.book_name} | ||
176 | - </div> | ||
177 | - <div class="log_three_center_two">×{$i_g.number}</div> | ||
178 | - <div class="log_three_center_three"><span>¥</span>{$i_g.price*$i_g.number}</div> | ||
179 | - </div> | ||
180 | - </div> | ||
181 | - </foreach> | ||
182 | - <!-- 立即发货 --> | ||
183 | - <div class="log_three_bottom_btn"> | ||
184 | - <if condition="$vo.state eq 2"> | ||
185 | - <div class="log_three_bottom" data-indent-id="{$vo.id}" data-id="{$vo.is_courier}"> | ||
186 | - 立即发货 | ||
187 | - </div> | ||
188 | - <elseif condition="$vo.state eq 5"/> | ||
189 | - <if condition="$vo.is_courier eq 2"> | ||
190 | - <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
191 | - 查看物流 | ||
192 | - </div> | ||
193 | - </if> | ||
194 | - <elseif condition="$vo.state eq 3"/> | ||
195 | - <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
196 | - 已完成啦 | ||
197 | - </div> | ||
198 | - </if> | ||
199 | - </div> | ||
200 | - </div> | ||
201 | - </if> | ||
202 | - </foreach> | ||
203 | - </div> | ||
204 | - <!--已发货--> | ||
205 | - <div class="log_three_list_contant"> | ||
206 | - <foreach name="$data" item="vo"> | ||
207 | - <if condition="$vo.state eq 5"> | ||
208 | - <div class="log_three_list"> | ||
209 | - <div class="log_three_list_top"> | ||
210 | - <div class="log_three_list_top_left"> | ||
211 | - <div class="log_three_list_top_lo"> | ||
212 | - <img src="__TMPL__/public/assets/images/fangkuang.png" alt="" /> | ||
213 | - </div> | ||
214 | - <div class="log_three_list_top_lt"> | ||
215 | - <div class="log_three_zhongbiao"> | ||
216 | - <img src="__TMPL__/public/assets/images/52.png" alt="" /> | ||
217 | - </div> | ||
218 | - <div class="log_three_shijian"> | ||
219 | - {:date('Y-m-d H:i:s',$vo['create_time'])} | ||
220 | - </div> | ||
221 | - </div> | ||
222 | - </div> | ||
223 | - <div class="log_three_list_top_right"> | ||
224 | - <if condition="$vo.state eq 2"> | ||
225 | - 代发货 | ||
226 | - <elseif condition="$vo.state eq 5"/> | ||
227 | - 已发货 | ||
228 | - <elseif condition="$vo.state eq 3"/> | ||
229 | - 已完成 | ||
230 | - </if> | ||
231 | - </div> | ||
232 | - </div> | ||
233 | - <foreach name="$vo.indent_goods" item="i_g"> | ||
234 | - <div class="log_three_list_center"> | ||
235 | - <div class="log_three_list_center_left"> | ||
236 | - <img src="{:cmf_get_image_url($i_g.thumbnail)}" alt="" /> | ||
237 | - </div> | ||
238 | - <div class="log_three_list_center_right"> | ||
239 | - <div class="log_three_center_one"> | ||
240 | - {$i_g.book_name} | ||
241 | - </div> | ||
242 | - <div class="log_three_center_two">×{$i_g.number}</div> | ||
243 | - <div class="log_three_center_three"><span>¥</span>{$i_g.price*$i_g.number}</div> | ||
244 | - </div> | ||
245 | - </div> | ||
246 | - </foreach> | ||
247 | - <!-- 立即发货 --> | ||
248 | - <div class="log_three_bottom_btn"> | ||
249 | - <if condition="$vo.state eq 2"> | ||
250 | - <div class="log_three_bottom" data-indent-id="{$vo.id}" data-id="{$vo.is_courier}"> | ||
251 | - 立即发货 | ||
252 | - </div> | ||
253 | - <elseif condition="$vo.state eq 5"/> | ||
254 | - <if condition="$vo.is_courier eq 2"> | ||
255 | - <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
256 | - 查看物流 | ||
257 | - </div> | ||
258 | - </if> | ||
259 | - <elseif condition="$vo.state eq 3"/> | ||
260 | - <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
261 | - 已完成啦 | ||
262 | - </div> | ||
263 | - </if> | ||
264 | - </div> | ||
265 | - </div> | ||
266 | - </if> | ||
267 | - </foreach> | ||
268 | - </div> | ||
269 | - | ||
270 | - <!--已完成--> | ||
271 | - <div class="log_three_list_contant"> | ||
272 | - <foreach name="$data" item="vo"> | ||
273 | - <if condition="$vo.state eq 3"> | ||
274 | - <div class="log_three_list"> | ||
275 | - <div class="log_three_list_top"> | ||
276 | - <div class="log_three_list_top_left"> | ||
277 | - <div class="log_three_list_top_lo"> | ||
278 | - <img src="__TMPL__/public/assets/images/fangkuang.png" alt="" /> | ||
279 | - </div> | ||
280 | - <div class="log_three_list_top_lt"> | ||
281 | - <div class="log_three_zhongbiao"> | ||
282 | - <img src="__TMPL__/public/assets/images/52.png" alt="" /> | ||
283 | - </div> | ||
284 | - <div class="log_three_shijian"> | ||
285 | - {:date('Y-m-d H:i:s',$vo['create_time'])} | ||
286 | - </div> | ||
287 | - </div> | ||
288 | - </div> | ||
289 | - <div class="log_three_list_top_right"> | ||
290 | - <if condition="$vo.state eq 2"> | ||
291 | - 代发货 | ||
292 | - <elseif condition="$vo.state eq 5"/> | ||
293 | - 已发货 | ||
294 | - <elseif condition="$vo.state eq 3"/> | ||
295 | - 已完成 | ||
296 | - </if> | ||
297 | - </div> | ||
298 | - </div> | ||
299 | - <foreach name="$vo.indent_goods" item="i_g"> | ||
300 | - <div class="log_three_list_center"> | ||
301 | - <div class="log_three_list_center_left"> | ||
302 | - <img src="{:cmf_get_image_url($i_g.thumbnail)}" alt="" /> | ||
303 | - </div> | ||
304 | - <div class="log_three_list_center_right"> | ||
305 | - <div class="log_three_center_one"> | ||
306 | - {$i_g.book_name} | ||
307 | - </div> | ||
308 | - <div class="log_three_center_two">×{$i_g.number}</div> | ||
309 | - <div class="log_three_center_three"><span>¥</span>{$i_g.price*$i_g.number}</div> | ||
310 | - </div> | ||
311 | - </div> | ||
312 | - </foreach> | ||
313 | - <!-- 立即发货 --> | ||
314 | - <div class="log_three_bottom_btn"> | ||
315 | - <if condition="$vo.state eq 2"> | ||
316 | - <div class="log_three_bottom" data-indent-id="{$vo.id}" data-id="{$vo.is_courier}"> | ||
317 | - 立即发货 | ||
318 | - </div> | ||
319 | - <elseif condition="$vo.state eq 5"/> | ||
320 | - <if condition="$vo.is_courier eq 2"> | ||
321 | - <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
322 | - 查看物流 | ||
323 | - </div> | ||
324 | - </if> | ||
325 | - <elseif condition="$vo.state eq 3"/> | ||
326 | - <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
327 | - 已完成啦 | ||
328 | - </div> | ||
329 | - </if> | ||
330 | - </div> | ||
331 | - </div> | ||
332 | - </if> | ||
333 | - </foreach> | ||
334 | - </div> | ||
335 | - </div> | ||
336 | - <!-- 底部按钮 --> | ||
337 | - <div class="log_three_list_fixed"> | ||
338 | - <div class="log_three_fixed_left"> | ||
339 | - <div class="log_three_fixed_left_one"> | ||
340 | - <img src="__TMPL__/public/assets/images/fangkuang.png" alt="" /> | ||
341 | - </div> | ||
342 | - <div class="log_three_fixed_left_two"> | ||
343 | - 全选 | ||
344 | - </div> | ||
345 | - </div> | ||
346 | - <div class="log_three_fixed_right"> | ||
347 | - 统一发货 | ||
348 | - </div> | ||
349 | - </div> | ||
350 | - <script src="__TMPL__/public/assets/js/jquery.js"></script> | ||
351 | - <script src="__TMPL__/public/assets/js/base.js"></script> | ||
352 | - <script src="__TMPL__/public/assets/js/mui.min.js"></script> | ||
353 | - <script src="__TMPL__/public/assets/js/mui.picker.min.js"></script> | ||
354 | - <script src="__TMPL__/public/assets/js/city.data-3.js"></script> | ||
355 | - <script> | ||
356 | - // 选择学校 | ||
357 | - $(".three_model_school_left").click(function() { | ||
358 | - var indexs = $(this).index(); | ||
359 | - console.log(indexs); | ||
360 | - $(".three_model_school_data").eq(indexs).css("display", "block").siblings().css("display", "none"); | ||
361 | - }); | 15 | +<body> |
16 | +<div class="tx_mask_school"> | ||
17 | + <div class="tx_maskCon_school"> | ||
18 | + <div class="three_model_school"> | ||
19 | + <div class="three_model_school_title"> | ||
20 | + 选择学校-班级 | ||
21 | + </div> | ||
22 | + <div class="three_model_school_tab"> | ||
23 | + <div class="three_model_school_left three_model_school_hover word"> | ||
24 | + 学校 | ||
25 | + </div> | ||
26 | + <div class="three_model_school_left"> | ||
27 | + 班级 | ||
28 | + </div> | ||
29 | + </div> | ||
30 | + <div> | ||
31 | + <div class="three_model_school_data there_university" style="display: block;"> | ||
32 | + <foreach name="$school" item="s"> | ||
33 | + <div class="three_model_school_name <if condition='$key eq 0'>there_unActive</if> school" | ||
34 | + data-id="{$s.id}">{$s.school} | ||
35 | + </div> | ||
36 | + </foreach> | ||
37 | + </div> | ||
38 | + <div class="three_model_school_data there_class grade"> | ||
362 | 39 | ||
363 | - $(".log_three_tab_one").click(function() { | ||
364 | - var tabIndex = $(this).index(); | ||
365 | - $(this).addClass("log_three_tab_two").addClass("word_color").siblings().removeClass("log_three_tab_two").removeClass("word_color"); | ||
366 | - $('.log_three_list_contant').eq(tabIndex).css('display', 'block').siblings().css('display', 'none'); | ||
367 | - }); | ||
368 | - $(".three_model_school_tab>div").click(function() { | ||
369 | - $(this).addClass("three_model_school_hover").addClass("word_color").siblings().removeClass("three_model_school_hover").removeClass("word_color"); | ||
370 | - }); | 40 | + </div> |
41 | + </div> | ||
42 | + </div> | ||
43 | + </div> | ||
44 | +</div> | ||
45 | +<!-- 弹窗 --> | ||
46 | +<div class="tx_mask"> | ||
47 | + <div class="tx_maskCon"> | ||
48 | + <div class="tx_maskConImg"> | ||
49 | + <img src="__TMPL__/public/assets/images/90.png" alt=""/> | ||
50 | + </div> | ||
51 | + <div class="tx_maskCon2"> | ||
52 | + <div class="log_three_model"> | ||
53 | + <div class="log_three_model_one"> | ||
54 | + <div class="log_three_model_left">配送时间</div> | ||
55 | + <div class="log_psong"> | ||
56 | + <input type="" name="" id="" value="" placeholder="请输入开始配送时间"/> | ||
57 | + </div> | ||
58 | + </div> | ||
59 | + <div class="log_three_model_one"> | ||
60 | + <div class="log_three_model_left">配送时间</div> | ||
61 | + <div class="log_psong"> | ||
62 | + <input type="" name="" id="" value="" placeholder="请输入结束配送时间"/> | ||
63 | + </div> | ||
64 | + </div> | ||
65 | + <div class="log_three_model_one" style="padding-bottom: 0;"> | ||
66 | + <div class="log_three_model_left" style="margin-top: -0.3rem;">单号</div> | ||
67 | + <div class="log_three_model_right"> | ||
68 | + <input type="text" placeholder="请输入快递单号"/> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + </div> | ||
72 | + <!-- 确定 --> | ||
73 | + <div class="tx_maskOk">确定</div> | ||
74 | + </div> | ||
75 | + </div> | ||
76 | +</div> | ||
77 | +<div class="tx_maskone"> | ||
78 | + <div class="tx_maskCon"> | ||
79 | + <div class="tx_maskConImg"> | ||
80 | + <img src="__TMPL__/public/assets/images/91.png" alt=""/> | ||
81 | + </div> | ||
82 | + <div class="tx_maskCon2"> | ||
83 | + <div class="log_three_model"> | ||
84 | + <div class="log_three_model_one"> | ||
85 | + <div class="log_three_model_left">配送时间</div> | ||
86 | + <div class="log_psong"> | ||
87 | + <input type="" name="" id="" value="" placeholder="请输入开始配送时间"/> | ||
88 | + </div> | ||
89 | + </div> | ||
90 | + <div class="log_three_model_one"> | ||
91 | + <div class="log_three_model_left">配送时间</div> | ||
92 | + <div class="log_psong"> | ||
93 | + <input type="" name="" id="" value="" placeholder="请输入结束配送时间"/> | ||
94 | + </div> | ||
95 | + </div> | ||
96 | + </div> | ||
97 | + <!-- 确定 --> | ||
98 | + <div class="tx_maskOk">确定</div> | ||
99 | + </div> | ||
100 | + </div> | ||
101 | +</div> | ||
102 | +<div class="log_top_co"> | ||
103 | + <!-- 顶部 --> | ||
104 | + <div class=" order_top log_top_co"> | ||
105 | + <a href=""> | ||
106 | + <img src="__TMPL__/public/assets/images/left.png" alt=""/> | ||
107 | + </a> | ||
108 | + <p>订单管理</p> | ||
109 | + </div> | ||
110 | +</div> | ||
111 | +<!-- tab切换 --> | ||
112 | +<div class="log_three_tab log_three_tab_top"> | ||
113 | + <div class="log_three_tab_one log_three_tab_two word_color aaa">未发货</div> | ||
114 | + <div class="log_three_tab_one">已发货</div> | ||
115 | + <div class="log_three_tab_one">已完成</div> | ||
116 | +</div> | ||
117 | +<!-- 下拉框 --> | ||
118 | +<div class="log_three_select"> | ||
119 | + <div class="log_three_select_one log_three_select_school"> | ||
120 | + <div class="log_three_select_title log_three_select_school2"> | ||
121 | + 请选择学校/班级 | ||
122 | + </div> | ||
123 | + <div class="log_three_select_img"> | ||
124 | + <img src="__TMPL__/public/assets/images/75.png" alt=""/> | ||
125 | + </div> | ||
126 | + </div> | ||
127 | + <div class="log_three_select_one log_three_select_peisong"> | ||
128 | + <div class="log_three_select_title"> | ||
129 | + 统一配送 | ||
130 | + </div> | ||
131 | + <div class="log_three_select_img"> | ||
132 | + <img src="__TMPL__/public/assets/images/75.png" alt=""/> | ||
133 | + </div> | ||
134 | + </div> | ||
135 | + <div class="log_three_select_one log_three_select_btn search"> | ||
136 | + 搜索 | ||
137 | + </div> | ||
138 | + <input type="hidden" id="school" value=""/> | ||
139 | + <input type="hidden" id="grade" value=""/> | ||
140 | +</div> | ||
141 | +<!-- 列表内容 --> | ||
142 | +<div> | ||
143 | + <!--未发货--> | ||
144 | + <div class="log_three_list_contant" style="display: block;"> | ||
145 | + <foreach name="$data" item="vo"> | ||
146 | + <if condition="$vo.state eq 2"> | ||
147 | + <div class="log_three_list"> | ||
148 | + <div class="log_three_list_top"> | ||
149 | + <div class="log_three_list_top_left"> | ||
150 | + <div class="log_three_list_top_lo"> | ||
151 | + <img src="__TMPL__/public/assets/images/fangkuang.png" alt=""/> | ||
152 | + </div> | ||
153 | + <div class="log_three_list_top_lt"> | ||
154 | + <div class="log_three_zhongbiao"> | ||
155 | + <img src="__TMPL__/public/assets/images/52.png" alt=""/> | ||
156 | + </div> | ||
157 | + <div class="log_three_shijian"> | ||
158 | + {:date('Y-m-d H:i:s',$vo['create_time'])} | ||
159 | + </div> | ||
160 | + </div> | ||
161 | + </div> | ||
162 | + <div class="log_three_list_top_right"> | ||
163 | + <if condition="$vo.state eq 2"> | ||
164 | + 待发货 | ||
165 | + <elseif condition="$vo.state eq 5"/> | ||
166 | + 已发货 | ||
167 | + <elseif condition="$vo.state eq 3"/> | ||
168 | + 已完成 | ||
169 | + </if> | ||
170 | + </div> | ||
171 | + </div> | ||
172 | + <foreach name="$vo.indent_goods" item="i_g"> | ||
173 | + <div class="log_three_list_center"> | ||
174 | + <div class="log_three_list_center_left"> | ||
175 | + <img src="{:cmf_get_image_url($i_g.thumbnail)}" alt=""/> | ||
176 | + </div> | ||
177 | + <div class="log_three_list_center_right"> | ||
178 | + <div class="log_three_center_one"> | ||
179 | + {$i_g.book_name} | ||
180 | + </div> | ||
181 | + <div class="log_three_center_two">×{$i_g.number}</div> | ||
182 | + <div class="log_three_center_three"><span>¥</span>{$i_g.price*$i_g.number}</div> | ||
183 | + </div> | ||
184 | + </div> | ||
185 | + </foreach> | ||
186 | + <!-- 立即发货 --> | ||
187 | + <div class="log_three_bottom_btn"> | ||
188 | + <if condition="$vo.state eq 2"> | ||
189 | + <div class="log_three_bottom" data-indent-id="{$vo.id}" data-is_courier="{$vo.is_courier}"> | ||
190 | + 立即发货 | ||
191 | + </div> | ||
192 | + <elseif condition="$vo.state eq 5"/> | ||
193 | + <if condition="$vo.is_courier eq 2"> | ||
194 | + <a href="#"> | ||
195 | + <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
196 | + 查看物流 | ||
197 | + </div> | ||
198 | + </a> | ||
199 | + </if> | ||
200 | + <elseif condition="$vo.state eq 3"/> | ||
201 | + <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
202 | + 已完成啦 | ||
203 | + </div> | ||
204 | + </if> | ||
205 | + </div> | ||
206 | + </div> | ||
207 | + </if> | ||
208 | + </foreach> | ||
209 | + </div> | ||
210 | + <!--已发货--> | ||
211 | + <div class="log_three_list_contant"> | ||
212 | + <foreach name="$data" item="vo"> | ||
213 | + <if condition="$vo.state eq 5"> | ||
214 | + <div class="log_three_list"> | ||
215 | + <div class="log_three_list_top"> | ||
216 | + <div class="log_three_list_top_left"> | ||
217 | + <div class="log_three_list_top_lo"> | ||
218 | + <img src="__TMPL__/public/assets/images/fangkuang.png" alt=""/> | ||
219 | + </div> | ||
220 | + <div class="log_three_list_top_lt"> | ||
221 | + <div class="log_three_zhongbiao"> | ||
222 | + <img src="__TMPL__/public/assets/images/52.png" alt=""/> | ||
223 | + </div> | ||
224 | + <div class="log_three_shijian"> | ||
225 | + {:date('Y-m-d H:i:s',$vo['create_time'])} | ||
226 | + </div> | ||
227 | + </div> | ||
228 | + </div> | ||
229 | + <div class="log_three_list_top_right"> | ||
230 | + <if condition="$vo.state eq 2"> | ||
231 | + 代发货 | ||
232 | + <elseif condition="$vo.state eq 5"/> | ||
233 | + 已发货 | ||
234 | + <elseif condition="$vo.state eq 3"/> | ||
235 | + 已完成 | ||
236 | + </if> | ||
237 | + </div> | ||
238 | + </div> | ||
239 | + <foreach name="$vo.indent_goods" item="i_g"> | ||
240 | + <div class="log_three_list_center"> | ||
241 | + <div class="log_three_list_center_left"> | ||
242 | + <img src="{:cmf_get_image_url($i_g.thumbnail)}" alt=""/> | ||
243 | + </div> | ||
244 | + <div class="log_three_list_center_right"> | ||
245 | + <div class="log_three_center_one"> | ||
246 | + {$i_g.book_name} | ||
247 | + </div> | ||
248 | + <div class="log_three_center_two">×{$i_g.number}</div> | ||
249 | + <div class="log_three_center_three"><span>¥</span>{$i_g.price*$i_g.number}</div> | ||
250 | + </div> | ||
251 | + </div> | ||
252 | + </foreach> | ||
253 | + <!-- 立即发货 --> | ||
254 | + <div class="log_three_bottom_btn"> | ||
255 | + <if condition="$vo.state eq 2"> | ||
256 | + <div class="log_three_bottom" data-indent-id="{$vo.id}" data-is_courier="{$vo.is_courier}"> | ||
257 | + 立即发货 | ||
258 | + </div> | ||
259 | + <elseif condition="$vo.state eq 5"/> | ||
260 | + <if condition="$vo.is_courier eq 2"> | ||
261 | + <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
262 | + 查看物流 | ||
263 | + </div> | ||
264 | + </if> | ||
265 | + <elseif condition="$vo.state eq 3"/> | ||
266 | + <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
267 | + 已完成啦 | ||
268 | + </div> | ||
269 | + </if> | ||
270 | + </div> | ||
271 | + </div> | ||
272 | + </if> | ||
273 | + </foreach> | ||
274 | + </div> | ||
371 | 275 | ||
372 | - $(".log_three_list_top_lo").click(function() { | ||
373 | - if($(this).find("img").attr("src") == "__TMPL__/public/assets/images/fangkuang.png") { | ||
374 | - $(this).find("img").attr("src", "__TMPL__/public/assets/images/xuanzhong (1).png"); | ||
375 | - } else { | ||
376 | - $(this).find("img").attr("src", "__TMPL__/public/assets/images/fangkuang.png"); | ||
377 | - } | ||
378 | - }); | ||
379 | - $(".log_three_fixed_left_one").click(function() { | ||
380 | - if( | ||
381 | - $(this) | ||
382 | - .find("img") | ||
383 | - .attr("src") == "__TMPL__/public/assets/images/fangkuang.png" | ||
384 | - ) { | ||
385 | - $(this) | ||
386 | - .find("img") | ||
387 | - .attr("src", "__TMPL__/public/assets/images/xuanzhong (1).png"); | ||
388 | - $(".log_three_list_top_lo") | ||
389 | - .find("img") | ||
390 | - .attr("src", "__TMPL__/public/assets/images/xuanzhong (1).png"); | ||
391 | - } else { | ||
392 | - $(this) | ||
393 | - .find("img") | ||
394 | - .attr("src", "__TMPL__/public/assets/images/fangkuang.png"); | ||
395 | - $(".log_three_list_top_lo") | ||
396 | - .find("img") | ||
397 | - .attr("src", "__TMPL__/public/assets/images/fangkuang.png"); | ||
398 | - } | ||
399 | - }); | 276 | + <!--已完成--> |
277 | + <div class="log_three_list_contant"> | ||
278 | + <foreach name="$data" item="vo"> | ||
279 | + <if condition="$vo.state eq 3"> | ||
280 | + <div class="log_three_list"> | ||
281 | + <div class="log_three_list_top"> | ||
282 | + <div class="log_three_list_top_left"> | ||
283 | + <div class="log_three_list_top_lo"> | ||
284 | + <img src="__TMPL__/public/assets/images/fangkuang.png" alt=""/> | ||
285 | + </div> | ||
286 | + <div class="log_three_list_top_lt"> | ||
287 | + <div class="log_three_zhongbiao"> | ||
288 | + <img src="__TMPL__/public/assets/images/52.png" alt=""/> | ||
289 | + </div> | ||
290 | + <div class="log_three_shijian"> | ||
291 | + {:date('Y-m-d H:i:s',$vo['create_time'])} | ||
292 | + </div> | ||
293 | + </div> | ||
294 | + </div> | ||
295 | + <div class="log_three_list_top_right"> | ||
296 | + <if condition="$vo.state eq 2"> | ||
297 | + 代发货 | ||
298 | + <elseif condition="$vo.state eq 5"/> | ||
299 | + 已发货 | ||
300 | + <elseif condition="$vo.state eq 3"/> | ||
301 | + 已完成 | ||
302 | + </if> | ||
303 | + </div> | ||
304 | + </div> | ||
305 | + <foreach name="$vo.indent_goods" item="i_g"> | ||
306 | + <div class="log_three_list_center"> | ||
307 | + <div class="log_three_list_center_left"> | ||
308 | + <img src="{:cmf_get_image_url($i_g.thumbnail)}" alt=""/> | ||
309 | + </div> | ||
310 | + <div class="log_three_list_center_right"> | ||
311 | + <div class="log_three_center_one"> | ||
312 | + {$i_g.book_name} | ||
313 | + </div> | ||
314 | + <div class="log_three_center_two">×{$i_g.number}</div> | ||
315 | + <div class="log_three_center_three"><span>¥</span>{$i_g.price*$i_g.number}</div> | ||
316 | + </div> | ||
317 | + </div> | ||
318 | + </foreach> | ||
319 | + <!-- 立即发货 --> | ||
320 | + <div class="log_three_bottom_btn"> | ||
321 | + <if condition="$vo.state eq 2"> | ||
322 | + <div class="log_three_bottom" data-indent-id="{$vo.id}" data-is_courier="{$vo.is_courier}"> | ||
323 | + 立即发货 | ||
324 | + </div> | ||
325 | + <elseif condition="$vo.state eq 5"/> | ||
326 | + <if condition="$vo.is_courier eq 2"> | ||
327 | + <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
328 | + 查看物流 | ||
329 | + </div> | ||
330 | + </if> | ||
331 | + <elseif condition="$vo.state eq 3"/> | ||
332 | + <div class="log_three_bottom" data-indent-id="{$vo.id}"> | ||
333 | + 已完成啦 | ||
334 | + </div> | ||
335 | + </if> | ||
336 | + </div> | ||
337 | + </div> | ||
338 | + </if> | ||
339 | + </foreach> | ||
340 | + </div> | ||
341 | +</div> | ||
342 | +<!-- 底部按钮 --> | ||
343 | +<div class="log_three_list_fixed"> | ||
344 | + <div class="log_three_fixed_left"> | ||
345 | + <div class="log_three_fixed_left_one"> | ||
346 | + <img src="__TMPL__/public/assets/images/fangkuang.png" alt=""/> | ||
347 | + </div> | ||
348 | + <div class="log_three_fixed_left_two"> | ||
349 | + 全选 | ||
350 | + </div> | ||
351 | + </div> | ||
352 | + <div class="log_three_fixed_right"> | ||
353 | + 统一发货 | ||
354 | + </div> | ||
355 | +</div> | ||
356 | +<script src="__TMPL__/public/assets/js/jquery.js"></script> | ||
357 | +<script src="__TMPL__/public/assets/js/base.js"></script> | ||
358 | +<script src="__TMPL__/public/assets/js/mui.min.js"></script> | ||
359 | +<script src="__TMPL__/public/assets/js/mui.picker.min.js"></script> | ||
360 | +<script src="__TMPL__/public/assets/js/city.data-3.js"></script> | ||
361 | +<script> | ||
362 | + // 选择学校 | ||
363 | + $(".three_model_school_left").click(function () { | ||
364 | + var indexs = $(this).index(); | ||
365 | + console.log(indexs); | ||
366 | + $(".three_model_school_data").eq(indexs).css("display", "block").siblings().css("display", "none"); | ||
367 | + }); | ||
400 | 368 | ||
401 | - $(".log_three_select_peisong").click(function() { | ||
402 | - $(".tx_mask").css({ | ||
403 | - display: "block" | ||
404 | - }); | ||
405 | - }); | ||
406 | - var index = $(".log_three_bottom").index(); | ||
407 | - $(".log_three_bottom").click(function() { | ||
408 | - console.log(index); | ||
409 | - $(".tx_maskone").css({ | ||
410 | - display: "block" | ||
411 | - }); | ||
412 | - }); | 369 | + $(".log_three_tab_one").click(function () { |
370 | + var tabIndex = $(this).index(); | ||
371 | + $(this).addClass("log_three_tab_two").addClass("word_color").addClass('aaa').siblings().removeClass("log_three_tab_two").removeClass("word_color").removeClass("aaa"); | ||
372 | + $('.log_three_list_contant').eq(tabIndex).css('display', 'block').siblings().css('display', 'none'); | ||
373 | + }); | ||
374 | + $(".three_model_school_tab>div").click(function () { | ||
375 | + $(this).addClass("three_model_school_hover").addClass("word_color").addClass('aaa').siblings().removeClass("three_model_school_hover").removeClass("word_color").removeClass("aaa"); | ||
376 | + }); | ||
413 | 377 | ||
414 | - $(".tx_maskOk").click(function() { | ||
415 | - $(".tx_maskone").css({ | ||
416 | - display: "none" | ||
417 | - }); | ||
418 | - $(".tx_mask").css({ | ||
419 | - display: "none" | ||
420 | - }); | ||
421 | - }); | 378 | + $(".log_three_list_top_lo").click(function () { |
379 | + if ($(this).find("img").attr("src") == "__TMPL__/public/assets/images/fangkuang.png") { | ||
380 | + $(this).find("img").attr("src", "__TMPL__/public/assets/images/xuanzhong (1).png"); | ||
381 | + } else { | ||
382 | + $(this).find("img").attr("src", "__TMPL__/public/assets/images/fangkuang.png"); | ||
383 | + } | ||
384 | + }); | ||
385 | + $(".log_three_fixed_left_one").click(function () { | ||
386 | + if ( | ||
387 | + $(this) | ||
388 | + .find("img") | ||
389 | + .attr("src") == "__TMPL__/public/assets/images/fangkuang.png" | ||
390 | + ) { | ||
391 | + $(this) | ||
392 | + .find("img") | ||
393 | + .attr("src", "__TMPL__/public/assets/images/xuanzhong (1).png"); | ||
394 | + $(".log_three_list_top_lo") | ||
395 | + .find("img") | ||
396 | + .attr("src", "__TMPL__/public/assets/images/xuanzhong (1).png"); | ||
397 | + } else { | ||
398 | + $(this) | ||
399 | + .find("img") | ||
400 | + .attr("src", "__TMPL__/public/assets/images/fangkuang.png"); | ||
401 | + $(".log_three_list_top_lo") | ||
402 | + .find("img") | ||
403 | + .attr("src", "__TMPL__/public/assets/images/fangkuang.png"); | ||
404 | + } | ||
405 | + }); | ||
422 | 406 | ||
423 | - //学校/弹窗 | ||
424 | - $(".log_three_select_school").click(function() { | ||
425 | - $(".tx_mask_school").css({ | ||
426 | - display: "block" | ||
427 | - }); | ||
428 | - }); | ||
429 | - // tab 大学 | ||
430 | - var $xuexiao | ||
431 | - $(".there_university div").click(function() { | ||
432 | - var index = $(this).index(); | ||
433 | - $(this).addClass("there_unActive").siblings().removeClass("there_unActive"); | ||
434 | - if($(this).hasClass("there_unActive")) { | ||
435 | - $xuexiao = $(this).attr('data-id'); | ||
436 | - console.log($xuexiao); | ||
437 | - $(".there_university").hide(); | ||
438 | - $(".there_class").show(); | ||
439 | - $('.three_model_school_left').eq(0).removeClass('word_color').removeClass('three_model_school_hover'); | ||
440 | - $('.three_model_school_left').eq(1).addClass('word_color').addClass('three_model_school_hover'); | ||
441 | - } | ||
442 | - }); | ||
443 | - $('.there_class div').click(function() { | ||
444 | - console.log($xuexiao) | ||
445 | - var index2 = $(this).index(); | ||
446 | - $(this).addClass("there_unActive").siblings().removeClass("there_unActive"); | ||
447 | - if($xuexiao == undefined) { | ||
448 | - alert('请选择学校') | ||
449 | - } else if($(this).hasClass("there_unActive")) { | ||
450 | - var banji = $(this).text(); | ||
451 | - $('.log_three_select_school2').text($xuexiao + ' ' + "—" + ' ' + banji); | ||
452 | - $(".log_three_select_school2").css("color","#333") | ||
453 | - $(".tx_mask_school").hide(); | ||
454 | - } | ||
455 | - }) | ||
456 | - // 关闭弹窗 | ||
457 | - $(document).mouseup(function(e) { | ||
458 | - var _con = $('.tx_maskCon_school'); | ||
459 | - if(!_con.is(e.target) && _con.has(e.target).length === 0) { | ||
460 | - $('.tx_mask_school').hide() | ||
461 | - } | ||
462 | - }) | ||
463 | - $(function(){ | ||
464 | - $('.school').click(function(){ | ||
465 | - var school_id = $(this).attr('data-id'); | ||
466 | - console.log(school_id); | ||
467 | - $.ajax({ | ||
468 | - 'url':"{order_salesman/getGradeClass}", | ||
469 | - 'type':'GET', | ||
470 | - 'data':{'school_id':school_id}, | ||
471 | - success:(function(data){ | ||
472 | - console.log(data); | ||
473 | - }) | 407 | + $(".log_three_select_peisong").click(function () { |
408 | + $(".tx_mask").css({ | ||
409 | + display: "block" | ||
410 | + }); | ||
411 | + }); | ||
412 | + var index = $(".log_three_bottom").index(); | ||
413 | + $(".log_three_bottom").click(function () { | ||
414 | + console.log(index); | ||
415 | + $(".tx_maskone").css({ | ||
416 | + display: "block" | ||
417 | + }); | ||
418 | + }); | ||
419 | + | ||
420 | + $(".tx_maskOk").click(function () { | ||
421 | + $(".tx_maskone").css({ | ||
422 | + display: "none" | ||
423 | + }); | ||
424 | + $(".tx_mask").css({ | ||
425 | + display: "none" | ||
426 | + }); | ||
427 | + }); | ||
428 | + | ||
429 | + //学校/弹窗 | ||
430 | + $(".log_three_select_school").click(function () { | ||
431 | + $(".tx_mask_school").css({ | ||
432 | + display: "block" | ||
433 | + }); | ||
434 | + }); | ||
435 | + // tab 大学 | ||
436 | + var $xuexiao | ||
437 | + $(".there_university div").click(function () { | ||
438 | + var index = $(this).index(); | ||
439 | + $(this).addClass("there_unActive").siblings().removeClass("there_unActive"); | ||
440 | + if ($(this).hasClass("there_unActive")) { | ||
441 | + $xuexiao = $(this).text(); | ||
442 | + console.log($xuexiao); | ||
443 | + $(".there_university").hide(); | ||
444 | + $(".there_class").show(); | ||
445 | + $('.three_model_school_left').eq(0).removeClass('word_color').removeClass('three_model_school_hover'); | ||
446 | + $('.three_model_school_left').eq(1).addClass('word_color').addClass('three_model_school_hover'); | ||
447 | + } | ||
448 | + }); | ||
449 | + $('body').on('click', ".there_class div", function () { | ||
450 | + console.log($xuexiao) | ||
451 | + var index2 = $(this).index(); | ||
452 | + $(this).addClass("there_unActive").siblings().removeClass("there_unActive"); | ||
453 | + if ($xuexiao == undefined) { | ||
454 | + alert('请选择学校') | ||
455 | + } else if ($(this).hasClass("there_unActive")) { | ||
456 | + var banji = $(this).text(); | ||
457 | + $('.log_three_select_school2').text($xuexiao + ' ' + "—" + ' ' + banji); | ||
458 | + $(".log_three_select_school2").css("color", "#333") | ||
459 | + $(".tx_mask_school").hide(); | ||
460 | + $('#school').val($xuexiao); | ||
461 | + $('#grade').val(banji); | ||
462 | + } | ||
463 | + }) | ||
464 | + // 关闭弹窗 | ||
465 | + $(document).mouseup(function (e) { | ||
466 | + var _con = $('.tx_maskCon_school'); | ||
467 | + if (!_con.is(e.target) && _con.has(e.target).length === 0) { | ||
468 | + $('.tx_mask_school').hide() | ||
469 | + } | ||
470 | + }) | ||
471 | + $(function () { | ||
472 | + $('.school').click(function () { | ||
473 | + var school_id = $(this).attr('data-id'); | ||
474 | + $.ajax({ | ||
475 | + url: "{:url('order_salesman/getGradeClass')}", | ||
476 | + type: 'GET', | ||
477 | + data: {'school_id': school_id}, | ||
478 | + success: (function (data) { | ||
479 | + if (data.code == 1) { | ||
480 | + var result = data.data; | ||
481 | + var html = ''; | ||
482 | + for (var i = 0; i < result.length; i++) { | ||
483 | + var i2 = Number(result[i].start); | ||
484 | + var j = Number(result[i].end); | ||
485 | + for (i2; i2 <= j; i2++) { | ||
486 | + // if(i == 0){ | ||
487 | + // html += "<div class=\"three_model_school_name there_unActive\" data-id=\""+result[i].id+"\">"+result[i].grade+"—"+i2+"</div>"; | ||
488 | + // } | ||
489 | + html += "<div class=\"three_model_school_name\" data-id=\"" + result[i].id + "\">" + result[i].grade + "—" + i2 + "班</div>"; | ||
490 | + } | ||
491 | + } | ||
492 | + $('.grade').html(html); | ||
493 | + } else { | ||
494 | + alert(data.msg); | ||
495 | + } | ||
496 | + }) | ||
497 | + }) | ||
498 | + }) | ||
499 | + $('.search').click(function () { | ||
500 | + var school = $('#school').val(); | ||
501 | + var grade = $('#grade').val(); | ||
502 | + if (school == '') { | ||
503 | + alert('请选择学校') | ||
504 | + } else if (grade == '') { | ||
505 | + alert('请选择班级') | ||
506 | + } else { | ||
507 | + console.log(school); | ||
508 | + console.log(grade); | ||
509 | + $.ajax({ | ||
510 | + 'url': "{:url('order_salesman/getOrderSalesman')}", | ||
511 | + 'type': "GET", | ||
512 | + 'data': {'school': school, 'grade': grade}, | ||
513 | + 'success': (function (data) { | ||
514 | + if (data.code == 1) { | ||
515 | + var result = data.data; | ||
516 | + console.log(result) | ||
517 | + var html = ''; | ||
518 | + for (var i = 0; i < result.length; i++) { | ||
519 | + if (result[i]['state'] == 2) { | ||
520 | + var state = '待发货'; | ||
521 | + if (result[i]['is_courier'] == 1) { | ||
522 | + var html_bottom = "<div class=\"log_three_bottom_btn\"><div class=\"log_three_bottom\" data-indent-id=\"" + result[i].id + "\" data-is_courier=\"" + result[i].is_courier + "\">\n" + | ||
523 | + "\t\t\t\t\t\t\t\t\t\t立即发货\n" + | ||
524 | + "\t\t\t\t\t\t\t\t\t</div></div>"; | ||
525 | + } else { | ||
526 | + var html_bottom = "<div class=\"log_three_bottom_btn\"><div class=\"log_three_bottom\" data-indent-id=\"" + result[i].id + "\" data-is_courier=\"" + result[i].is_courier + "\">\n" + | ||
527 | + "\t\t\t\t\t\t\t\t\t\t立即发货\n" + | ||
528 | + "\t\t\t\t\t\t\t\t\t</div></div>"; | ||
529 | + } | ||
530 | + } else if (result[i]['state'] == 5) { | ||
531 | + var state = '已发货'; | ||
532 | + var html_bottom = "<a href=\"#\">\n" + | ||
533 | + "\t\t\t\t\t\t\t\t\t\t\t<div class=\"log_three_bottom_btn\"><div class=\"log_three_bottom\" data-indent-id=\"" + result[i].id + "\">\n" + | ||
534 | + "\t\t\t\t\t\t\t\t\t\t\t\t查看物流\n" + | ||
535 | + "\t\t\t\t\t\t\t\t\t\t\t</div></div>\n" + | ||
536 | + "\t\t\t\t\t\t\t\t\t\t</a>"; | ||
537 | + } else { | ||
538 | + var state = '已完成'; | ||
539 | + var html_bottom = "<div class=\"log_three_bottom\" data-indent-id=\"\"+result[i].id+\"\">\n" + | ||
540 | + "\t\t\t\t\t\t\t\t\t\t已完成啦\n" + | ||
541 | + "\t\t\t\t\t\t\t\t\t</div>"; | ||
542 | + } | ||
543 | + var indent_goods_data = result[i].indent_goods; | ||
544 | + var indent_goods_html = ''; | ||
545 | + for(var i3=0;i3<indent_goods_data.length;i3++){ | ||
546 | + indent_goods_html += "<div class=\"log_three_list_center\">\n" + | ||
547 | + " <div class=\"log_three_list_center_left\">\n" + | ||
548 | + " <img src=\"{:cmf_get_image_url('')}"+indent_goods_data[i3].thumbnail+"\" alt=\"\"/>\n" + | ||
549 | + " </div>\n" + | ||
550 | + " <div class=\"log_three_list_center_right\">\n" + | ||
551 | + " <div class=\"log_three_center_one\">\n" + | ||
552 | + " "+indent_goods_data[i3].book_name+"\n" + | ||
553 | + " </div>\n" + | ||
554 | + " <div class=\"log_three_center_two\">×"+indent_goods_data[i3].number+"</div>\n" + | ||
555 | + " <div class=\"log_three_center_three\"><span>¥</span>"+indent_goods_data[i3].price*indent_goods_data[i3].number+"</div>\n" + | ||
556 | + " </div>\n" + | ||
557 | + " </div>"; | ||
558 | + } | ||
559 | + console.log(indent_goods_html); | ||
560 | + html += "<div class=\"log_three_list\">\n" + | ||
561 | + "\t\t\t\t\t\t\t<div class=\"log_three_list_top\">\n" + | ||
562 | + "\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_left\">\n" + | ||
563 | + "\t\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_lo\">\n" + | ||
564 | + "\t\t\t\t\t\t\t\t\t\t<img src=\"__TMPL__/public/assets/images/fangkuang.png\" alt=\"\" />\n" + | ||
565 | + "\t\t\t\t\t\t\t\t\t</div>\n" + | ||
566 | + "\t\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_lt\">\n" + | ||
567 | + "\t\t\t\t\t\t\t\t\t\t<div class=\"log_three_zhongbiao\">\n" + | ||
568 | + "\t\t\t\t\t\t\t\t\t\t\t<img src=\"__TMPL__/public/assets/images/52.png\" alt=\"\" />\n" + | ||
569 | + "\t\t\t\t\t\t\t\t\t\t</div>\n" + | ||
570 | + "\t\t\t\t\t\t\t\t\t\t<div class=\"log_three_shijian\">\n" + | ||
571 | + "\t\t\t\t\t\t\t\t\t\t\t" + result[i].create_time + "\n" + | ||
572 | + "\t\t\t\t\t\t\t\t\t\t</div>\n" + | ||
573 | + "\t\t\t\t\t\t\t\t\t</div>\n" + | ||
574 | + "\t\t\t\t\t\t\t\t</div>\n" + | ||
575 | + "\t\t\t\t\t\t\t\t<div class=\"log_three_list_top_right\">\n" + | ||
576 | + "\t\t\t\t\t\t\t\t\t\t" + state + "\n" + | ||
577 | + "\t\t\t\t\t\t\t\t</div>\n" + | ||
578 | + "\t\t\t\t\t\t\t</div>\n" +indent_goods_html+ | ||
579 | + "\t\t\t\t\t\t</div>"+html_bottom; | ||
580 | + } | ||
581 | + console.log(html); | ||
582 | + var index = $('.log_three_tab_top div').index($('.aaa')); | ||
583 | + $('.log_three_list_contant').eq(index).html(html); | ||
584 | + } else { | ||
585 | + alert('未知错误'); | ||
586 | + } | ||
587 | + }), | ||
588 | + 'error': (function () { | ||
589 | + alert('与服务器断开连接'); | ||
474 | }) | 590 | }) |
475 | - }) | 591 | + }) |
592 | + } | ||
593 | + }) | ||
476 | 594 | ||
477 | - }) | ||
478 | - </script> | ||
479 | - </body> | 595 | + }) |
596 | +</script> | ||
597 | +</body> | ||
480 | 598 | ||
481 | </html> | 599 | </html> |
-
请 注册 或 登录 后发表评论