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

首页设施设备服务

... ... @@ -31,6 +31,14 @@ class IndexController extends HomeBaseController
$shebei_data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($shebei_data['post_content']));
$this -> assign('shebei_data',$shebei_data);
$sheshi_data = Db::name('portal_post') -> where('id',47) -> find();
$sheshi_data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($shebei_data['post_content']));
$this -> assign('sheshi_data',$sheshi_data);
$fuwu_data = Db::name('portal_post') -> where('id',48) -> find();
$fuwu_data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($shebei_data['post_content']));
$this -> assign('fuwu_data',$fuwu_data);
//首页澳德咨询
$new_data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id=b.id','LEFT') -> where('category_id',22) -> order('b.id desc') -> limit(5) -> select();
$this -> assign('new_data',$new_data[0]);
... ...
... ... @@ -139,29 +139,21 @@
</div>
</li>
<li style="margin: 0 18px">
<php>$arr = json_decode($shebei_data['more'],true);</php>
<php>$arr = json_decode($sheshi_data['more'],true);</php>
<img src="{:cmf_get_image_url($arr.thumbnail)}" alt="">
<div class="main3_top2_box">
<h2>{$shebei_data.post_title}</h2>
<h2>{$sheshi_data.post_title}</h2>
<div class="oop">
<p>{$shebei_data.post_content}</p>
<p>{$sheshi_data.post_content}</p>
</div>
</div>
</li>
<!--<li class="main3_top2">-->
<!--<div class="main3_top2_box">-->
<!--<h2>{$shebei_data.post_title}</h2>-->
<!--<div class="oop">-->
<!--<p>{$shebei_data.post_content}</p>-->
<!--</div>-->
<!--</div>-->
<!--</li>-->
<li>
<img src="{:cmf_get_image_url($arr.thumbnail)}" alt="">
<div class="main3_top2_box">
<h2>{$shebei_data.post_title}</h2>
<h2>{$fuwu_data.post_title}</h2>
<div class="oop">
<p>{$shebei_data.post_content}</p>
<p>{$fuwu_data.post_content}</p>
</div>
</div>
</li>
... ...