Commit 0801bce9 authored by 章建武's avatar 章建武

dep

parent 973042f9
......@@ -18,9 +18,16 @@ class ArticleController extends Controller
{
$param = $request->param();
$model = $model->scope('where', $param);
$data = $model->where('status',0)->paginate($this->admin['per_page'], false, ['query' => $request->get()]);
if($param){
$where = ['status'=>0,'type'=>$param['_type']];
}else{
$where = ['status'=>0];
}
$data = $model->where($where)->paginate($this->admin['per_page'], false, ['query' => $request->get()]);
foreach ($data as &$v){
$v['language_type'] = $v['language_type'] === 1 ? '英语' : '中文';
$v['type'] = $this->getCat($v['type']);
$v['created_at'] = $v['created_at'] ? date('Y-m-d H:i:s',$v['created_at']) : '';
}
//关键词,排序等赋值
......@@ -133,4 +140,18 @@ class ArticleController extends Controller
return $result ? success('操作成功', URL_RELOAD) : error();
}
protected function getCat($type){
if($type == 1){
return '新闻中心';
}elseif($type == 2){
return '集团新闻';
}elseif($type == 3){
return '项目动态';
}elseif($type == 4){
return '媒体聚焦';
}elseif($type == 5){
return '首页弹窗';
}
}
}
......@@ -29,6 +29,21 @@
$('#_by').select2();
</script>
<div class="form-group">
<select name="_type" id="_cat" class="form-control input-sm index-order">
<option value="">分类筛选</option>
<option value="1" {if isset($_type) && $_type==1}selected{/if}>新闻中心</option>
<option value="2" {if isset($_type) && $_type==2}selected{/if}>集团新闻</option>
<option value="3" {if isset($_type) && $_type==3}selected{/if}>项目动态</option>
<option value="4" {if isset($_type) && $_type==4}selected{/if}>媒体聚焦</option>
<option value="5" {if isset($_type) && $_type==5}selected{/if}>首页弹窗</option>
</select>
</div>
<script>
$('#_cat').select2();
</script>
<div class="form-group">
<button class="btn btn-sm btn-primary" type="submit"><i class="fa fa-search"></i> 查询
</button>
......
......@@ -15,7 +15,7 @@ class IndexArticleInfo extends Model
protected $autoWriteTimestamp = true;
//可搜索字段
protected $searchField = ['title', 'source'];
protected $searchField = ['title', 'source','type'];
public $language_type = [
0 => '中文',
1 => '英语'
......
<?php /*a:9:{s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\manager\index.html";i:1588066599;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588211322;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588154379;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php /*a:9:{s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\manager\index.html";i:1588066599;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588211322;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588830847;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php if(!$admin['pjax']): ?>
<!DOCTYPE html>
<html lang="zh-CN">
......
<?php /*a:9:{s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\manager\add.html";i:1588065380;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588211322;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588154379;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php /*a:9:{s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\manager\add.html";i:1588065380;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588211322;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588830847;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php if(!$admin['pjax']): ?>
<!DOCTYPE html>
<html lang="zh-CN">
......
......@@ -84,7 +84,7 @@
<i class="rotate45"></i>
</a>
</li>
@endforeach
@endforeach
</ul>
</div>
</div>
......@@ -103,9 +103,7 @@
</div>
@endforeach
</div>
</div>
<div class="about-item3" id="maodian3">
......@@ -158,7 +156,7 @@
<p style="text-align: left; line-height: 1.5em;">
<span style="color: rgb(147, 137, 83); font-family: 微软雅黑, &#39;Microsoft YaHei&#39;;">
@if($language_type == 1)
Mr. Guo kuizhang has his own unique philosophy in the company's operation. He believes that the boss's greatest role is to find the future direction for the company, while the company's operation depends on the team strength. The team's growth is the company's development, so under his leadership, Fashion group not only has a professional and efficient elite team, but also becomes the Huangpu Military Academy of commercial real estate talents.
Mr.Guo kuizhang has his own unique philosophy in the company's operation. He believes that the boss's greatest role is to find the future direction for the company, while the company's operation depends on the team strength. The team's growth is the company's development, so under his leadership, Fashion group not only has a professional and efficient elite team, but also becomes the Huangpu Military Academy of commercial real estate talents.
@else
郭奎章先生在公司经营方面拥有自己独特的哲学思想他认为老板最大的作用是为公司寻找未来的方向
而公司运营则要依靠团队力量团队的成长就是公司的发展因此在他的带领下
......@@ -191,7 +189,7 @@ Mr. Guo kuizhang has his own unique philosophy in the co
@foreach($manager as $v)
<li style="float: left; list-style: none; position: relative; width: 238.75px; margin-right: 15px;" class="bx-clone">
<a>
<img src="{{$v->manager_img}}">
<img src="{{$v->url}}{{$v->manager_img}}">
<h1>{{$v->manager_name}}</h1>
<p>
{{$v->manager_company}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment