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

公司介绍

... ... @@ -37,6 +37,18 @@ class AboutController extends HomeBaseController{
}
//公司介绍显示页
public function about(){
$data = Db::name('portal_category_post') -> where('category_id',15) -> find();
$shuju = Db::name('portal_post') -> where('id',$data['post_id']) -> find();
$shuju['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($shuju['post_content']));
$this -> assign('data',$shuju);
return $this -> fetch();
}
//显示关于我们
public function index(){
... ...
... ... @@ -81,6 +81,9 @@ class NewController extends HomeBaseController{
}
... ...
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>公司介绍</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
</head>
<body class="pro2_box">
<include file="public@nav"/>
<div class="product2_main">
<div class="prp_tit">
<a href="">首页</a>
<img src="__TMPL__/public/assets/images/aicon09.png" alt="">
<a href="">公司介绍</a>
</div>
<div class="product2_mainBox">
<div class="pro2_tit">
<h2>{$data.post_title}</h2>
<p>发布时间:{$data.create_time|date="Y-m-d H:i:s",###}</p>
</div>
<div class="pro2_Txt">
{$data.post_content}
</div>
</div>
</div>
<include file="public@footer" />
<script type="text/javascript" src="__TMPL__/public/assets/js/jquery.js"></script>
<script>
// 头部下拉
$('.header2_box>ul>li').each(function () {
$(this).mouseover(function () {
$(this).children('.header2_box2').show();
}).mouseout(function () {
$(this).children('.header2_box2').hide();
})
});
</script>
</body>
</html>
\ No newline at end of file
... ...