| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?php
- namespace app\home\controller;
- use think\Lang;
- use think\Cache;
- use think\Request;
- use think\Controller;
- use think\Validate;
- /**
- * 关于我们类
- */
- class About extends Controller
- {
- /**
- * 构造函数
- *
- * @access public
- */
- public function __construct()
- {
- parent::__construct();
- }//end __construct()
- /**
- * 关于我们管理
- *
- * @access public
- * @return array JsonString
- */
- public function index()
- {
- // 获取导航.
- $navigationField = [
- 'navigation_zhName',
- 'navigation_enName',
- 'navigation_id',
- ];
- $navigationWhere = ['navigation_type' => 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()
- }
|