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

中心设备

... ... @@ -94,6 +94,22 @@ class WeixinController extends WeChatBaseController{
}
//显示中心设备
public function shebei(){
//查询显示首页logo
$logo = Db::name('slide_item') -> where('slide_id',1) -> find();
$this -> assign('logo',$logo);
$data = Db::name('portal_category_post') -> where('category_id',32) -> find();
$res = Db::name('portal_post') -> where('id',$data['post_id']) -> find();
$res['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($res['post_content']));
$this -> assign('res',$res);
return $this -> fetch();
}
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>關於我們</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/wbase.css">
<script src="__TMPL__/public/assets/js/base.js"></script>
</head>
<body>
<!--header-->
<header class="header">
<img src="{:cmf_get_image_url($logo.image)}" alt="">
</header>
<!-- 内容 -->
<div class="in1_box">
<h1>{$res.post_title}</h1>
<div class="in1_txt">
{$res.post_content}
</div>
</div>
</body>
</html>
\ No newline at end of file
... ...