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

中心设施

@@ -78,7 +78,21 @@ class WeixinController extends WeChatBaseController{ @@ -78,7 +78,21 @@ class WeixinController extends WeChatBaseController{
78 78
79 } 79 }
80 80
  81 + //显示中心设施
  82 + public function sheshi(){
81 83
  84 + //查询显示首页logo
  85 + $logo = Db::name('slide_item') -> where('slide_id',1) -> find();
  86 + $this -> assign('logo',$logo);
  87 +
  88 + $data = Db::name('portal_category_post') -> where('category_id',31) -> find();
  89 + $res = Db::name('portal_post') -> where('id',$data['post_id']) -> find();
  90 + $res['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($res['post_content']));
  91 + $this -> assign('res',$res);
  92 +
  93 + return $this -> fetch();
  94 +
  95 + }
82 96
83 97
84 98
  1 +<!DOCTYPE html>
  2 +<html lang="en">
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7 + <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8 + <title>關於我們</title>
  9 + <link rel="stylesheet" href="__TMPL__/public/assets/css/wbase.css">
  10 + <script src="__TMPL__/public/assets/js/base.js"></script>
  11 +</head>
  12 +
  13 +<body>
  14 +<!--header-->
  15 +<header class="header">
  16 + <img src="{:cmf_get_image_url($logo.image)}" alt="">
  17 +</header>
  18 +<!-- 内容 -->
  19 +<div class="in1_box">
  20 + <h1>{$res.post_title}</h1>
  21 + <div class="in1_txt">
  22 + {$res.post_content}
  23 + </div>
  24 +</div>
  25 +</body>
  26 +
  27 +</html>