diff --git a/app/controller/Position.php b/app/controller/Position.php index cca8d3c..56122ed 100755 --- a/app/controller/Position.php +++ b/app/controller/Position.php @@ -29,16 +29,20 @@ class Position extends Base $this->setSeo($title, $keywords, $description); - $this->data['item'] = $article; - $this->data['category'] = $category; - $blocks = Block::getByCategoryId($category['id']); - $blocks = Block::convertValue($blocks); - $this->data['blocks'] = $blocks; - $this->data['categoryId'] = $category['id']; - $this->data['topCategoryId'] = Category::firstGradeById($category['id']) ; - return $this->view('/article/joindata'); + $parentBlocks = Block::getByCategoryId($category['parent_id']); + $parentBlocks = Block::convertValue($parentBlocks); + + $this->data['item'] = $article; + $this->data['category'] = $category; +// $blocks = Block::getByCategoryId($category['id']); +// $blocks = Block::convertValue($blocks); +// $this->data['blocks'] = $blocks; + $this->data['parentBlocks'] = $parentBlocks; + $this->data['categoryId'] = $category['id']; + $this->data['categoryPath'] = Category::categoryPath($category['path']); + $this->data['topCategoryId'] = Category::firstGradeId($category['path'], $category['id']); + return $this->view('/article/join_detail'); } - } \ No newline at end of file diff --git a/app/model/Category.php b/app/model/Category.php index c4e9ade..ae7b281 100755 --- a/app/model/Category.php +++ b/app/model/Category.php @@ -30,8 +30,8 @@ class Category extends Base public const CATEGORY_SERVICE = 8; //新闻碎片 public const CATEGORY_NEWS_BLOCK = 14; - //新闻碎片 - public const CATEGORY_JOIN_BLOCK = 15; + //招聘岗位列表 + public const CATEGORY_JOIN_BLOCK = 41; //新闻碎片 public const CATEGORY_SERVE_BLOCK = 16; diff --git a/config/extra/base.php b/config/extra/base.php index 28d9965..3d91c74 100755 --- a/config/extra/base.php +++ b/config/extra/base.php @@ -5,10 +5,11 @@ return array ( 'img_logo' => '/storage/20221009/63423cf817221.png', 'img_logo_m' => '/storage/20221009/63423cf817221.png', 'tel' => '400-000-00001', - 'landline' => '400-000-0000', - 'email' => 'dsdfdd@163.net', + 'landline' => '400-852-1199', + 'email' => 'zzwy@bymk.net', + 'postcode' => '014300', 'addr' => '内蒙古鄂尔多斯市东胜区鄂尔多斯西街汇能大厦B座', - 'url' => 'https://www.zhihu.com/', + 'url' => '', 'copyright' => 'Copyright ©2022 鄂尔多斯市中正物业管理有限公司', 'recordation' => '京ICP备12007778号-1', 'img_float_wechat' => '/storage/20220701/62be550fe65b4.jpg', diff --git a/public/static/web/js/bdmap.js b/public/static/web/js/bdmap.js index efd03eb..c9edda6 100644 --- a/public/static/web/js/bdmap.js +++ b/public/static/web/js/bdmap.js @@ -20,7 +20,7 @@ document.write(' - {php} - $map = json_decode($blocks['map']['value'],true); - {/php} - - \ No newline at end of file +
公司地址:{$system['addr']??''}
+邮箱地址:{$system['email']??''}
+服务热线:{$system['landline']??''}
+邮政编码:{$system['postcode']??''}
+