<?php namespace app\portal\controller; use cmf\controller\HomeBaseController; use EasyWeChat\Foundation\Application; use think\Db; class HealthController extends HomeBaseController{ //显示中心设施 public function facilities(){ $fac_id = Db::name('portal_category_post') -> where('category_id',7) -> find(); $fac_data = Db::name('portal_post') -> where('id',$fac_id['post_id']) -> find(); $fac_data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($fac_data['post_content'])); $this -> assign('data',$fac_data); return $this -> fetch(); } //显示中心设备 public function shebei(){ $fac_id = Db::name('portal_category_post') -> where('category_id',8) -> find(); $fac_data = Db::name('portal_post') -> where('id',$fac_id['post_id']) -> find(); $fac_data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($fac_data['post_content'])); $this -> assign('data',$fac_data); return $this -> fetch(); } //显示服务品质 public function pinzhi(){ $fac_id = Db::name('portal_category_post') -> where('category_id',9) -> find(); $fac_data = Db::name('portal_post') -> where('id',$fac_id['post_id']) -> find(); $fac_data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($fac_data['post_content'])); $this -> assign('data',$fac_data); return $this -> fetch(); } }