...
|
...
|
@@ -15,10 +15,16 @@ class Index extends Frontend |
|
|
protected $limit = 20;
|
|
|
protected $page = 1;
|
|
|
protected $group = 8;//分组
|
|
|
protected $keys = '';
|
|
|
protected $description = '';
|
|
|
|
|
|
public function _initialize()
|
|
|
{
|
|
|
parent::_initialize();
|
|
|
$keys = Db::table('fa_config')->where('id',18)->find();
|
|
|
$this->keys = $keys['value'];
|
|
|
$description = Db::table('fa_config')->where('id',19)->find();
|
|
|
$this->description = $description['value'];
|
|
|
}
|
|
|
|
|
|
public function index()
|
...
|
...
|
@@ -39,6 +45,10 @@ class Index extends Frontend |
|
|
}
|
|
|
}
|
|
|
$this->assign('custom',$arr);
|
|
|
|
|
|
//关键字,描述
|
|
|
$this->assign('keys',$this->keys);
|
|
|
$this->assign('description',$this->description);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -65,6 +75,10 @@ class Index extends Frontend |
|
|
$this->assign('hot',$hot);
|
|
|
$this->assign('list',$news);
|
|
|
$this->assign('top',$top);
|
|
|
|
|
|
//关键字,描述
|
|
|
$this->assign('keys',$this->keys);
|
|
|
$this->assign('description',$this->description);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -95,32 +109,51 @@ class Index extends Frontend |
|
|
}
|
|
|
$this->assign('hot',$hot);
|
|
|
$this->assign('detail',$detail);
|
|
|
|
|
|
//关键字,描述
|
|
|
$this->assign('keys',$this->keys);
|
|
|
$this->assign('description',$this->description);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
public function map()
|
|
|
{
|
|
|
return $this->view->fetch();
|
|
|
//关键字,描述
|
|
|
$this->assign('keys',$this->keys);
|
|
|
$this->assign('description',$this->description);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
public function course()
|
|
|
{
|
|
|
return $this->view->fetch();
|
|
|
//关键字,描述
|
|
|
$this->assign('keys',$this->keys);
|
|
|
$this->assign('description',$this->description);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
public function contact()
|
|
|
{
|
|
|
return $this->view->fetch();
|
|
|
//关键字,描述
|
|
|
$this->assign('keys',$this->keys);
|
|
|
$this->assign('description',$this->description);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
public function business()
|
|
|
{
|
|
|
return $this->view->fetch();
|
|
|
//关键字,描述
|
|
|
$this->assign('keys',$this->keys);
|
|
|
$this->assign('description',$this->description);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
public function about()
|
|
|
{
|
|
|
return $this->view->fetch();
|
|
|
//关键字,描述
|
|
|
$this->assign('keys',$this->keys);
|
|
|
$this->assign('description',$this->description);
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|