作者 景龙
1 个管道 的构建 通过 耗费 1 秒

修改头部keys,description

... ... @@ -15,10 +15,16 @@ class Index extends Frontend
protected $limit = 20;
protected $page = 1;
protected $group = 8;//分组
protected $keys = '';
protected $description = '';
public function _initialize()
{
parent::_initialize();
$keys = Db::table('fa_config')->where('id',18)->find();
$this->keys = $keys['value'];
$description = Db::table('fa_config')->where('id',19)->find();
$this->description = $description['value'];
}
public function index()
... ... @@ -39,6 +45,10 @@ class Index extends Frontend
}
}
$this->assign('custom',$arr);
//关键字,描述
$this->assign('keys',$this->keys);
$this->assign('description',$this->description);
return $this->fetch();
}
... ... @@ -65,6 +75,10 @@ class Index extends Frontend
$this->assign('hot',$hot);
$this->assign('list',$news);
$this->assign('top',$top);
//关键字,描述
$this->assign('keys',$this->keys);
$this->assign('description',$this->description);
return $this->fetch();
}
... ... @@ -95,32 +109,51 @@ class Index extends Frontend
}
$this->assign('hot',$hot);
$this->assign('detail',$detail);
//关键字,描述
$this->assign('keys',$this->keys);
$this->assign('description',$this->description);
return $this->fetch();
}
public function map()
{
return $this->view->fetch();
//关键字,描述
$this->assign('keys',$this->keys);
$this->assign('description',$this->description);
return $this->fetch();
}
public function course()
{
return $this->view->fetch();
//关键字,描述
$this->assign('keys',$this->keys);
$this->assign('description',$this->description);
return $this->fetch();
}
public function contact()
{
return $this->view->fetch();
//关键字,描述
$this->assign('keys',$this->keys);
$this->assign('description',$this->description);
return $this->fetch();
}
public function business()
{
return $this->view->fetch();
//关键字,描述
$this->assign('keys',$this->keys);
$this->assign('description',$this->description);
return $this->fetch();
}
public function about()
{
return $this->view->fetch();
//关键字,描述
$this->assign('keys',$this->keys);
$this->assign('description',$this->description);
return $this->fetch();
}
}
... ...
... ... @@ -2,6 +2,8 @@
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="{$keys}">
<meta name="description" content="{$description}">
<title>关于我们</title>
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/public.css">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/about.css">
... ... @@ -244,7 +246,7 @@
</div>
</div>
<div class="footer2">
<p>Copyright@2007-2019 caihua168.com AII Rights Reserved</p>
<p>备案号:京ICP备17069330号-2</p>
</div>
<script type="text/javascript" src="__CDN__/assets/jquery.js"></script>
<script>
... ...
... ... @@ -2,6 +2,8 @@
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="{$keys}">
<meta name="description" content="{$description}">
<title>业务介绍</title>
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/public.css">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/business.css">
... ... @@ -145,7 +147,7 @@
</div>
</div>
<div class="footer2">
<p>Copyright@2007-2019 caihua168.com AII Rights Reserved</p>
<p>备案号:京ICP备17069330号-2</p>
</div>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -2,6 +2,8 @@
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="{$keys}">
<meta name="description" content="{$description}">
<title>联系我们</title>
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/public.css">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/contact.css">
... ... @@ -145,7 +147,7 @@
</div>
</div>
<div class="footer2">
<p>Copyright@2007-2019 caihua168.com AII Rights Reserved</p>
<p>备案号:京ICP备17069330号-2</p>
</div>
<script type="text/javascript" src="__CDN__/assets/js/jquery.js"></script>
</body>
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="{$keys}">
<meta name="description" content="{$description}">
<title>课程体系</title>
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/public.css">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/course.css">
<title>课程体系</title>
</head>
<body>
<!-- header -->
... ... @@ -162,7 +165,7 @@
</div>
</div>
<div class="footer2">
<p>Copyright@2007-2019 caihua168.com AII Rights Reserved</p>
<p>备案号:京ICP备17069330号-2</p>
</div>
<script type="text/javascript" src="__CDN__/assets/jquery.js"></script>
<script>
... ...
... ... @@ -2,6 +2,8 @@
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="{$keys}">
<meta name="description" content="{$description}">
<title>首页</title>
<meta name="viewport" content="width=1200">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/public.css">
... ... @@ -240,7 +242,7 @@
</div>
</div>
<div class="footer2">
<p>Copyright@2007-2019 caihua168.com AII Rights Reserved</p>
<p>备案号:京ICP备17069330号-2</p>
</div>
<script type="text/javascript" src="__CDN__/assets/jquery.js"></script>
<script type="text/javascript" src="__CDN__/assets/css/swiper/swiper.min.js"></script>
... ...
... ... @@ -2,7 +2,9 @@
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="keywords" content="{$keys}">
<meta name="description" content="{$description}">
<title>新闻资讯</title>
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/public.css">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/swiper/swiper.min.css">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/news.css">
... ... @@ -163,7 +165,7 @@
</div>
</div>
<div class="footer2">
<p>Copyright@2007-2019 caihua168.com AII Rights Reserved</p>
<p>备案号:京ICP备17069330号-2</p>
</div>
<script type="text/javascript" src="__CDN__/assets/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="__CDN__/assets/css/swiper/swiper.min.js"></script>
... ...
... ... @@ -2,7 +2,9 @@
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="keywords" content="{$keys}">
<meta name="description" content="{$description}">
<title>新闻资讯</title>
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/public.css">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/swiper/swiper.min.css">
<link rel="stylesheet" type="text/css" href="__CDN__/assets/css/news.css">
... ... @@ -17,6 +19,7 @@
}
</style>
<body>
<div class="contentBox">
<!-- header -->
<div class="header header_bg">
<div class="header_content">
... ... @@ -123,8 +126,10 @@
</div>
</div>
<div class="footer2">
<p>Copyright@2007-2019 caihua168.com AII Rights Reserved</p>
<p>备案号:京ICP备17069330号-2</p>
</div>
</div>
<script type="text/javascript" src="__CDN__/assets/js/jquery-3.2.1.min.js"></script>
</body>
</html>
... ...
... ... @@ -225,3 +225,13 @@
.left_con_txt{
margin-top: 3.8%;
}
.contentBox{
display: flex;
display: -webkit-flex;
min-height: 100vh;
flex-direction: column;
-webkit-flex-direction: column;
}
.main_box{
flex: 1;
}
\ No newline at end of file
... ...