作者 刘朕

合并分支 '1iuzhen' 到 'master'

1iuzhen



查看合并请求 !15
@@ -44,7 +44,7 @@ class LogisticsController extends AdminBaseController @@ -44,7 +44,7 @@ class LogisticsController extends AdminBaseController
44 if(isset($param['keyword'])) { 44 if(isset($param['keyword'])) {
45 $where['name'] = ['like','%'.$param['keyword'].'%']; 45 $where['name'] = ['like','%'.$param['keyword'].'%'];
46 } 46 }
47 - $list = $this->singleData($this->table,$where,2,['create_time'=>'DESC']); 47 + $list = $this->singleData($this->table,$where,2,['create_time'=>'DESC','is_del'=>0]);
48 $list->appends($param); 48 $list->appends($param);
49 $this->assign('list',$list->items()); 49 $this->assign('list',$list->items());
50 $this->assign('page',$list->render()); 50 $this->assign('page',$list->render());
@@ -83,6 +83,9 @@ class LogisticsController extends AdminBaseController @@ -83,6 +83,9 @@ class LogisticsController extends AdminBaseController
83 $insert['version'] = $update['version'] = $v[2]; 83 $insert['version'] = $update['version'] = $v[2];
84 $insert['express'] = $update['express'] = $v[3]; 84 $insert['express'] = $update['express'] = $v[3];
85 $insert['is_del'] = $update['is_del'] = $v[4]; 85 $insert['is_del'] = $update['is_del'] = $v[4];
  86 + if(empty($v[4])) {
  87 + $insert['is_del'] = $update['is_del'] = 0;
  88 + }
86 $info = $this->logistics_model->where(['express'=>$insert['express']])->find(); 89 $info = $this->logistics_model->where(['express'=>$insert['express']])->find();
87 if($info) { 90 if($info) {
88 $update['id'] = $info['id']; 91 $update['id'] = $info['id'];
@@ -388,7 +388,7 @@ class OrderController extends HomeBaseController @@ -388,7 +388,7 @@ class OrderController extends HomeBaseController
388 $where = [ 388 $where = [
389 'mobile' => $keyword 389 'mobile' => $keyword
390 ]; 390 ];
391 - $list = $logistics_model->where($where)->order(['send_time'=>'DESC'])->limit(3)->select(); 391 + $list = $logistics_model->where($where)->order(['send_time'=>'DESC','is_del'=>0])->limit(3)->select();
392 $this->assign('list',$list); 392 $this->assign('list',$list);
393 return $this->fetch(); 393 return $this->fetch();
394 // } 394 // }
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 <div class="swiper-container"> 33 <div class="swiper-container">
34 <div class="swiper-wrapper"> 34 <div class="swiper-wrapper">
35 <volist name="slideList" id="vo"> 35 <volist name="slideList" id="vo">
36 - <div class="swiper-slide"><div class="index_swiper"><img src="{:cmf_get_asset_url($vo['image'])}"/></div></div> 36 + <div class="swiper-slide"><div class="index_swiper"><img src="{:cmf_get_asset_url($vo['image'])}" style="vertical-align:middle;"/><span style="display:inline-block; height:100%; vertical-align:middle;"></span></div></div>
37 </volist> 37 </volist>
38 </div> 38 </div>
39 <!-- Add Pagination --> 39 <!-- Add Pagination -->
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 5
6 .index_swiper{ 6 .index_swiper{
7 width: 100%; 7 width: 100%;
8 - height: 9.5rem; 8 + /*height: 9.5rem;*/
9 } 9 }
10 .swiper-pagination-bullet-active { 10 .swiper-pagination-bullet-active {
11 opacity: 1; 11 opacity: 1;