1]; $getNavigation = model('Navigation')->getSelect($navigationField, $navigationWhere); $this->assign('navigation', $getNavigation); // 导航Id. $navigationId = [ 'home', 'service', 'count', 'about-us', 'pricing', 'contact', ]; $this->assign('navigationId', $navigationId); // 获取未显示在导航的标题. $navigationWhere = ['navigation_type' => 2]; $getNavigation = model('Navigation')->getSelect($navigationField, $navigationWhere); $this->assign('navigationTitle', $getNavigation); // 主获取页主介绍. $getIndexIntroduceSlt = ['product_ctitle']; $getIndexIntroduceWhr['product_type'] = 1; $getIndexIntroduce = model('Product')->getSelect($getIndexIntroduceSlt, $getIndexIntroduceWhr); $getIndexIntroduceArr = explode("@#", $getIndexIntroduce[0]['product_ctitle']); $this->assign('indexIntroduceArr', $getIndexIntroduceArr); // 获取服务. $getServiceSlt = [ 'product_ctitle', 'product_title', ]; $getServiceWhr['product_type'] = 2; $getService = model('Product')->getSelect($getServiceSlt, $getServiceWhr); $this->assign('service', $getService); // 获取解决方案. $getSolutionSlt = ['product_title']; $getSolutionWhr['product_type'] = 4; $getSolution = model('Product')->getSelect($getSolutionSlt, $getSolutionWhr); $this->assign('solution', $getSolution); // 获取案例展示. $getCaseSlt = [ 'product_title', 'product_ctitle', ]; $getCaseWhr['product_type'] = 3; $getCase = model('Product')->getSelect($getCaseSlt, $getCaseWhr); $this->assign('case', $getCase); // 合作流程. $getCooperationProcessSlt = ['product_title']; $getCooperationProcessWhr['product_type'] = 7; $getCooperationProcess = model('Product')->getSelect($getCooperationProcessSlt, $getCooperationProcessWhr); $this->assign('cooperationProcess', $getCooperationProcess); // 获取foot. $getFootSlt = [ 'value', 'remark', ]; $getFootWhr = [ ['code' => 'site_phone'], ['code' => 'site_email'], ['code' => 'fax'], ]; $getFoot = model('Config')->getSelect($getFootSlt, $getFootWhr); $this->assign('foot', $getFoot); return $this->fetch(); }//end index() }