public function index()
{
//halt('ewwewe');
if(isset($GLOBALS['newact'])){
$recommendList = $this->news->order('id desc')->limit(5)->select();
$this->view->assign('recommendList', $recommendList);
if (in_array($GLOBALS['newact'], ['about', 'about1','about2','about4'])) {
$topCateModel = get_top_cate($this->category, $GLOBALS['nowid']);
$this->view->assign('topCateModel', $topCateModel);
$ids = get_delete_ids_static($this->category, 'pid', $topCateModel->id);
$categoryList = $this->category->where('id', 'in', $ids)->select();
$categoryArr = digui($categoryList, 'pid', 'id', $topCateModel->id);
$this->view->assign('categoryArr', $categoryArr);
$lineCate = get_cate_line_ids($this->category, $GLOBALS['nowid']);
$this->view->assign('lineCateIds', $lineCate);
$needCategoryArr = array();