正在显示
2 个修改的文件
包含
5 行增加
和
5 行删除
@@ -11,7 +11,7 @@ class AboutController extends WeChatBaseController{ | @@ -11,7 +11,7 @@ class AboutController extends WeChatBaseController{ | ||
11 | //显示关于我们页 | 11 | //显示关于我们页 |
12 | public function index(){ | 12 | public function index(){ |
13 | 13 | ||
14 | - $data = Db::name('portal_post') -> find(); | 14 | + $data = Db::name('portal_post') -> select(); |
15 | $this -> assign('data',$data); | 15 | $this -> assign('data',$data); |
16 | return $this -> fetch(); | 16 | return $this -> fetch(); |
17 | 17 |
@@ -13,16 +13,16 @@ | @@ -13,16 +13,16 @@ | ||
13 | <body> | 13 | <body> |
14 | <div class="about_box"> | 14 | <div class="about_box"> |
15 | <div class="about_contetn"> | 15 | <div class="about_contetn"> |
16 | + <portal:subCategories categoryId="8" item="vo"> | ||
16 | 17 | ||
17 | - | ||
18 | - <h1 class="about_title">{$data.post_title}</h1> | 18 | + <h1 class="about_title">{$vo.post_title}</h1> |
19 | <!--banner--> | 19 | <!--banner--> |
20 | 20 | ||
21 | <!--内容--> | 21 | <!--内容--> |
22 | <div class="about_txt"> | 22 | <div class="about_txt"> |
23 | - {$data.post_content} | 23 | + {$vo.post_content} |
24 | </div> | 24 | </div> |
25 | - | 25 | + </portal:subCategories> |
26 | </div> | 26 | </div> |
27 | </div> | 27 | </div> |
28 | </body> | 28 | </body> |
-
请 注册 或 登录 后发表评论