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

中心品质

@@ -110,6 +110,22 @@ class WeixinController extends WeChatBaseController{ @@ -110,6 +110,22 @@ class WeixinController extends WeChatBaseController{
110 110
111 } 111 }
112 112
  113 + //显示服务品质
  114 + public function pinzhi(){
  115 +
  116 + //查询显示首页logo
  117 + $logo = Db::name('slide_item') -> where('slide_id',1) -> find();
  118 + $this -> assign('logo',$logo);
  119 +
  120 + $data = Db::name('portal_category_post') -> where('category_id',33) -> find();
  121 + $res = Db::name('portal_post') -> where('id',$data['post_id']) -> find();
  122 + $res['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($res['post_content']));
  123 + $this -> assign('res',$res);
  124 +
  125 + return $this -> fetch();
  126 +
  127 + }
  128 +
113 129
114 130
115 131
  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>