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 +
+
+

鄂尔多斯市中正物业管理有限公司

+ Ordos Zhongzheng Property Management Co., Ltd +
+

公司地址:{$system['addr']??''}

+

邮箱地址:{$system['email']??''}

+

服务热线:{$system['landline']??''}

+

邮政编码:{$system['postcode']??''}

+
+
+
+
+ + + diff --git a/view/page/business2.html b/view/page/business2.html new file mode 100755 index 0000000..f4b2f5c --- /dev/null +++ b/view/page/business2.html @@ -0,0 +1,57 @@ +{layout name="layout_two"/} +{php} +use app\model\Category; +$position = Category::getPosition($category["id"]); +{/php} +
+
{$category['title']}
+
+
+
+ +
+
+
+
+
+
+
+
+
+
{$blocks["BUSINESS-COOPERATION"]['value']??''}
+
{$blocks["BUSINESS-COOPERATION"]['title']??''}
+
+
+
公司地址:{$system['addr']??''}
+
邮箱地址:{$system['email']??''}
+
服务热线:{$system['landline']??''}
+
+
+
+
+
+
+
+
+
+
+ + {php} + $map = json_decode($blocks['map']['value'],true); + {/php} + +
\ No newline at end of file diff --git a/view/page/join.html b/view/page/join.html index 2e2d43e..5773406 100755 --- a/view/page/join.html +++ b/view/page/join.html @@ -2,54 +2,51 @@ {php} use app\model\Category; use app\model\PositionModel; -use app\model\Block; -$position = Category::getPosition($category["id"]); -$joinList = PositionModel::getByCategoryId($category["id"],true,99999); -$blocks = Block::getByCategoryId(Category::CATEGORY_JOIN_BLOCK); -$blocks = Block::convertValue($blocks); +$childrenMenu = Category::getChildrenByParentId($topCategoryId); +$joinList = PositionModel::getByCategoryId(Category::CATEGORY_JOIN_BLOCK,true,99999); {/php} +{include file="public/about_second" /} -
-
-