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

使命与愿景

@@ -46,7 +46,21 @@ class WeixinController extends WeChatBaseController{ @@ -46,7 +46,21 @@ class WeixinController extends WeChatBaseController{
46 46
47 } 47 }
48 48
  49 + //显示使命与愿景
  50 + public function shiming(){
49 51
  52 + //查询显示首页logo
  53 + $logo = Db::name('slide_item') -> where('slide_id',1) -> find();
  54 + $this -> assign('logo',$logo);
  55 +
  56 + $data = Db::name('portal_category_post') -> where('category_id',29) -> find();
  57 + $res = Db::name('portal_post') -> where('id',$data['post_id']) -> find();
  58 + $res['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($res['post_content']));
  59 + $this -> assign('res',$res);
  60 +
  61 + return $this -> fetch();
  62 +
  63 + }
50 64
51 65
52 66
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 </a> 25 </a>
26 </li> 26 </li>
27 <li> 27 <li>
28 - <a href="index_detail2.html"> 28 + <a href="{:url('Weixin/shiming')}">
29 <img src="__TMPL__/public/assets/images/bicon (3).png" alt=""> 29 <img src="__TMPL__/public/assets/images/bicon (3).png" alt="">
30 <p>使命與願景</p> 30 <p>使命與願景</p>
31 </a> 31 </a>
  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>