作者 anyv
1 个管道 的构建 通过 耗费 0 秒

4

@@ -633,6 +633,15 @@ class PersonalcenterController extends WeChatBaseController{ @@ -633,6 +633,15 @@ class PersonalcenterController extends WeChatBaseController{
633 $where['a.class'] = trim($school_grade_class[1]); 633 $where['a.class'] = trim($school_grade_class[1]);
634 } 634 }
635 635
  636 + if($res['is_courier'] != ''){
  637 + if($res['is_courier'] == '统一配送'){
  638 + $where['a.is_courier'] = 1;
  639 + }
  640 + if($res['is_courier'] == '快递配送'){
  641 + $where['a.is_courier'] = 2;
  642 + }
  643 + }
  644 +
636 if($res['start_time'] != '' && $res['end_time'] != ''){ 645 if($res['start_time'] != '' && $res['end_time'] != ''){
637 $start_time = strtotime($res['start_time']); 646 $start_time = strtotime($res['start_time']);
638 $end_time = strtotime($res['end_time']); 647 $end_time = strtotime($res['end_time']);
@@ -208,6 +208,17 @@ @@ -208,6 +208,17 @@
208 <img src="__TMPL__/public/assets/images/29.png" alt="" /> 208 <img src="__TMPL__/public/assets/images/29.png" alt="" />
209 </div> 209 </div>
210 </div> 210 </div>
  211 + <div class="log_nine_list_one log_banjis log_three_select_tongyi">
  212 + <div class="log_nine_list_one_left">
  213 + <div class="log_ten_money_select_title ">
  214 + 选择配送方式
  215 + </div>
  216 + </div>
  217 + <div class="log_xue school_grade_class express_word xekuaidi">请选择配送方式</div>
  218 + <div class="log_nine_list_one_right">
  219 + <img src="__TMPL__/public/assets/images/29.png" alt="" />
  220 + </div>
  221 + </div>
211 <div class="log_nine_list_one log_nineKai"> 222 <div class="log_nine_list_one log_nineKai">
212 <div class="log_nine_list_one_left"> 223 <div class="log_nine_list_one_left">
213 <div class="log_ten_money_select_title"> 224 <div class="log_ten_money_select_title">
@@ -276,6 +287,13 @@ @@ -276,6 +287,13 @@
276 <script src="__TMPL__/public/assets/js/mui.picker.min.js"></script> 287 <script src="__TMPL__/public/assets/js/mui.picker.min.js"></script>
277 <script src="__TMPL__/public/assets/js/city.data-3.js"></script> 288 <script src="__TMPL__/public/assets/js/city.data-3.js"></script>
278 <script> 289 <script>
  290 +
  291 +</script>
  292 +<script>
  293 + var expresspicker = new mui.PopPicker();
  294 +
  295 +
  296 +
279 var schoolpicker = new mui.PopPicker(); 297 var schoolpicker = new mui.PopPicker();
280 var classpicker = new mui.PopPicker(); 298 var classpicker = new mui.PopPicker();
281 var class_arr = ''; 299 var class_arr = '';
@@ -286,6 +304,13 @@ @@ -286,6 +304,13 @@
286 school_arr = {$school}; 304 school_arr = {$school};
287 console.log(data_class_arr,'dfdfds'); 305 console.log(data_class_arr,'dfdfds');
288 $.ready(function() { 306 $.ready(function() {
  307 + expresspicker.setData([{
  308 + value: '1',
  309 + text: '快递配送'
  310 + }, {
  311 + value: '2',
  312 + text: '统一配送'
  313 + }]);
289 schoolpicker.setData(school_arr); 314 schoolpicker.setData(school_arr);
290 classpicker.setData(data_class_arr); 315 classpicker.setData(data_class_arr);
291 }); 316 });
@@ -317,6 +342,17 @@ @@ -317,6 +342,17 @@
317 alert("请先选择学校") 342 alert("请先选择学校")
318 } 343 }
319 }) 344 })
  345 + var express_word
  346 + $(".log_three_select_tongyi").click(function() {
  347 + expresspicker.show(function(e) {
  348 + console.log(e, '3333')
  349 + console.log(e[0].value);
  350 + console.log(e[0].text);
  351 + school_name = e[0].value
  352 + $(".express_word").text(e[0].text);
  353 + $('.express_word').css('color', '#333333');
  354 + });
  355 + })
320 </script> 356 </script>
321 <script> 357 <script>
322 /** 358 /**
@@ -354,7 +390,7 @@ @@ -354,7 +390,7 @@
354 xegread = $('.xegread').text(); 390 xegread = $('.xegread').text();
355 start_time = $('.start_time').text(); 391 start_time = $('.start_time').text();
356 end_time = $('.end_time').text(); 392 end_time = $('.end_time').text();
357 - 393 + is_courier = $('.xekuaidi').text();
358 394
359 grade_class = xeschool+' '+xegread; 395 grade_class = xeschool+' '+xegread;
360 console.log(grade_class); 396 console.log(grade_class);
@@ -367,12 +403,13 @@ @@ -367,12 +403,13 @@
367 if(start_time == '请选择开始时间'){ 403 if(start_time == '请选择开始时间'){
368 start_time = ''; 404 start_time = '';
369 } 405 }
  406 + if(is_courier == '请选择配送方式'){
  407 + is_courier = '';
  408 + }
370 if(end_time == '请选择结束时间'){ 409 if(end_time == '请选择结束时间'){
371 end_time = ''; 410 end_time = '';
372 } 411 }
373 - window.location.href = "{:url('Personalcenter/mall_profit')}?school="+xeschool+"&start_time="+start_time+"&end_time="+end_time+"&grade="+xegread;  
374 -  
375 - 412 + window.location.href = "{:url('Personalcenter/mall_profit')}?school="+xeschool+"&start_time="+start_time+"&end_time="+end_time+"&grade="+xegread+"&is_courier="+is_courier;
376 } 413 }
377 414
378 </script> 415 </script>