42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace app\index\controller;
|
|
|
|
use think\facade\Lang;
|
|
use think\facade\View;
|
|
|
|
/**
|
|
* 关于我们
|
|
*/
|
|
class About extends Base
|
|
{
|
|
public function initialize()
|
|
{
|
|
parent::initialize();
|
|
$this->model = new \app\index\model\About();
|
|
}
|
|
|
|
/**
|
|
* 显示资源列表
|
|
*
|
|
*/
|
|
public function index()
|
|
{
|
|
$inputData = $this->request->param();
|
|
$resource = [];
|
|
// $resource['banner'] = $this->model->getAboutBanner($this->languageId,'关于我们页面-banner');
|
|
// $resource['banner_mobile'] = $this->model->getAboutBanner($this->languageId,'关于我们页面-手机-banner');
|
|
// 增加标签显示
|
|
$metaTitle = $this->model->getMetaTitle($this->languageId,'about');
|
|
View::assign('meta',$metaTitle);
|
|
View::assign('resource',$resource);
|
|
return View::fetch(Lang::getLangSet().DIRECTORY_SEPARATOR.'about/about_us');
|
|
}
|
|
|
|
public function mileage(){
|
|
return View::fetch(Lang::getLangSet().DIRECTORY_SEPARATOR.'about/mileage');
|
|
}
|
|
|
|
}
|