作者 郭盛
1 个管道 的构建 通过 耗费 5 秒

修改展示在最前内容

@@ -23,7 +23,8 @@ class Order extends Backend @@ -23,7 +23,8 @@ class Order extends Backend
23 { 23 {
24 parent::_initialize(); 24 parent::_initialize();
25 $this->model = new \app\admin\model\Order; 25 $this->model = new \app\admin\model\Order;
26 - 26 + $this->view->assign("statusList", $this->model->getStatusList());
  27 + $this->view->assign("statusList1", $this->model->setStatusList());
27 } 28 }
28 29
29 /** 30 /**
@@ -28,9 +28,15 @@ class Order extends Model @@ -28,9 +28,15 @@ class Order extends Model
28 'paytime_text', 28 'paytime_text',
29 'expirationtime_text' 29 'expirationtime_text'
30 ]; 30 ];
31 -  
32 31
33 - 32 + public function getStatusList()
  33 + {
  34 + return ['1' => __('进行中'),'2' => __('已完成'),'3'=>__('售后')];
  35 + }
  36 + public function setStatusList()
  37 + {
  38 + return ['1' => __('审核通过'),'2' => __('审核未通过')];
  39 + }
34 40
35 41
36 42
1 <div class="panel panel-default panel-intro"> 1 <div class="panel panel-default panel-intro">
2 - {:build_heading()} 2 + <div class="panel-heading">
  3 + {:build_heading(null,FALSE)}
  4 + <ul class="nav nav-tabs" data-field="finish_status">
  5 + <li class="active"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
  6 + {foreach name="statusList" item="vo"}
  7 + <li><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
  8 + {/foreach}
  9 + </ul>
  10 + <!--<ul class="nav nav-tabs" data-field="order_status">-->
  11 + <!--<li class="active"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>-->
  12 + <!--{foreach name="statusList1" item="vo"}-->
  13 + <!--<li><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>-->
  14 + <!--{/foreach}-->
  15 + <!--</ul>-->
  16 + </div>
3 17
4 <div class="panel-body"> 18 <div class="panel-body">
5 <div id="myTabContent" class="tab-content"> 19 <div id="myTabContent" class="tab-content">
@@ -90,6 +90,7 @@ class Teacher extends Api @@ -90,6 +90,7 @@ class Teacher extends Api
90 $param['behind'] = str_replace($http, '', $param['behind']); 90 $param['behind'] = str_replace($http, '', $param['behind']);
91 $param['thumbnail'] = str_replace($http, '', $param['thumbnail']); 91 $param['thumbnail'] = str_replace($http, '', $param['thumbnail']);
92 $param['createtime'] = time(); 92 $param['createtime'] = time();
  93 + $param['show'] = implode(',',$param['show']);
93 $data = Db::name('teacher')->insertGetId($param); 94 $data = Db::name('teacher')->insertGetId($param);
94 if (empty($data)) { 95 if (empty($data)) {
95 $this->error('提交失败'); 96 $this->error('提交失败');
@@ -144,6 +145,7 @@ class Teacher extends Api @@ -144,6 +145,7 @@ class Teacher extends Api
144 $data['before'] = $qiniu.$data['before']; 145 $data['before'] = $qiniu.$data['before'];
145 $data['behind'] = $qiniu.$data['behind']; 146 $data['behind'] = $qiniu.$data['behind'];
146 $data['thumbnail'] = $qiniu.$data['thumbnail']; 147 $data['thumbnail'] = $qiniu.$data['thumbnail'];
  148 + $data['show'] = explode(',',$data['show']);
147 $data['territory_id'] = explode(',',$data['territory_id']); 149 $data['territory_id'] = explode(',',$data['territory_id']);
148 $this->success('success',$data); 150 $this->success('success',$data);
149 } 151 }
@@ -225,6 +227,7 @@ class Teacher extends Api @@ -225,6 +227,7 @@ class Teacher extends Api
225 $param['status'] = 0; 227 $param['status'] = 0;
226 228
227 $param['updatetime'] = time(); 229 $param['updatetime'] = time();
  230 + $param['show'] = implode(',',$param['show']);
228 $data = Db::name('teacher')->where('id',$param['id'])->update($param); 231 $data = Db::name('teacher')->where('id',$param['id'])->update($param);
229 if (empty($data)) { 232 if (empty($data)) {
230 $this->error('提交失败'); 233 $this->error('提交失败');
@@ -9583,7 +9583,7 @@ @@ -9583,7 +9583,7 @@
9583 9583
9584 <div class="row mt0 footer"> 9584 <div class="row mt0 footer">
9585 <div class="col-md-6" align="left"> 9585 <div class="col-md-6" align="left">
9586 - Generated on 2020-03-20 11:27:27 </div> 9586 + Generated on 2020-03-20 13:30:11 </div>
9587 <div class="col-md-6" align="right"> 9587 <div class="col-md-6" align="right">
9588 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a> 9588 <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
9589 </div> 9589 </div>