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

核心医疗

... ... @@ -45,11 +45,14 @@ class AboutController extends HomeBaseController{
//显示核心团队
public function team(){
$data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id = b.id','LEFT') -> where('a.category_id',5) -> paginate(6);
$data = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id = b.id','LEFT') -> where('a.category_id',34) -> select();
/* foreach ($data as $key => $value){
$value['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($value['post_content']));
}*/
$this -> assign('data',$data);
$data1 = Db::name('portal_category_post') -> alias('a') -> join('portal_post b','a.post_id = b.id','LEFT') -> where('a.category_id',35) -> select();
$this -> assign('data1',$data1);
return $this -> fetch();
}
... ...
... ... @@ -57,7 +57,7 @@
</div>
<div class="ab3_con_list">
<ul>
<volist name="data" id="val">
<volist name="data1" id="val">
<li>
<php>$arr = json_decode($val['more'],true);</php>
<img src="{:cmf_get_image_url($arr.thumbnail)}" alt="">
... ...