正在显示
2 个修改的文件
包含
43 行增加
和
0 行删除
@@ -94,6 +94,22 @@ class WeixinController extends WeChatBaseController{ | @@ -94,6 +94,22 @@ class WeixinController extends WeChatBaseController{ | ||
94 | 94 | ||
95 | } | 95 | } |
96 | 96 | ||
97 | + //显示中心设备 | ||
98 | + public function shebei(){ | ||
99 | + | ||
100 | + //查询显示首页logo | ||
101 | + $logo = Db::name('slide_item') -> where('slide_id',1) -> find(); | ||
102 | + $this -> assign('logo',$logo); | ||
103 | + | ||
104 | + $data = Db::name('portal_category_post') -> where('category_id',32) -> find(); | ||
105 | + $res = Db::name('portal_post') -> where('id',$data['post_id']) -> find(); | ||
106 | + $res['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($res['post_content'])); | ||
107 | + $this -> assign('res',$res); | ||
108 | + | ||
109 | + return $this -> fetch(); | ||
110 | + | ||
111 | + } | ||
112 | + | ||
97 | 113 | ||
98 | 114 | ||
99 | 115 |
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> |
-
请 注册 或 登录 后发表评论