...
|
...
|
@@ -160,14 +160,23 @@ class RegionController extends HomeBaseController |
|
|
$this->assign('page',$res['page']);
|
|
|
|
|
|
//城市分类
|
|
|
$enjoyModel = new EnjoyController();
|
|
|
$city_name = $enjoyModel->getCityName();
|
|
|
$city_name = $this->getVideoCityName();
|
|
|
$this->assign('city_name',$city_name);
|
|
|
|
|
|
$this->assign('city_id',$city_id);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
//获取城市名称
|
|
|
public function getVideoCityName(){
|
|
|
$res = Db::name('city_category')
|
|
|
->where('pid','<>',0)
|
|
|
->where('id','<>',CityCategoryModel::xqgh_cc)
|
|
|
->where('delete_time',0)
|
|
|
->field('id,name')->select()->toArray();
|
|
|
return $res;
|
|
|
}
|
|
|
|
|
|
//明星访谈更多
|
|
|
public function getMoreStar(){
|
|
|
$position['category_id'] = CityCategoryModel::mxft;
|
...
|
...
|
|