From 8311181967aa5ea239280db33f80ac314831b324 Mon Sep 17 00:00:00 2001
From: liqian <735273025@qq.com>
Date: Thu, 4 Dec 2025 15:30:22 +0800
Subject: [PATCH] =?UTF-8?q?rerfactor:=20=E7=94=B5=E5=8A=9Bpc=20=E5=AF=BC?=
=?UTF-8?q?=E8=88=AA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/index/controller/TopicPowerProdline.php | 37 -------------------
app/index/view/pc/public/header.html | 37 +++++++++++++++++++
.../view/pc/topic_power_prodline/index.html | 8 +---
public/static/index/pc/css/orico_header.css | 1 +
4 files changed, 39 insertions(+), 44 deletions(-)
diff --git a/app/index/controller/TopicPowerProdline.php b/app/index/controller/TopicPowerProdline.php
index df2fa564..df9ce549 100644
--- a/app/index/controller/TopicPowerProdline.php
+++ b/app/index/controller/TopicPowerProdline.php
@@ -12,43 +12,6 @@ use think\Request;
*/
class TopicPowerProdline extends Common
{
- /**
- * 重写控制器初始化
- */
- public function initialize()
- {
- // 获取国家/语言列表
- $languages = $this->getLanguages();
- // 输出国家/语言列表
- if (get_platform() == 'mobile') {
- View::assign('header_languages', $languages);
- }
-
- // 获取当前语言
- $current_language = $this->getCurrentLanguage($languages);
- if (!empty($current_language)) {
- $this->lang_id = $current_language['id'];
- }
-
- // 获取产品分类
- $categorys = $this->getProductCategory($this->lang_id);
- // 输出产品分类
- View::assign('header_categorys', $categorys);
-
- // 获取系统配置
- $configs = $this->getSysConfig($this->lang_id, ['basic', 'contact', 'media']);
- $this->basic_config = $configs['basic'];
- // 输出系统配置
- View::assign('basic_config', $configs['basic']);
- View::assign('contact_config', $configs['contact']);
- View::assign('media_config', $configs['media']);
-
- // 获取底部导航
- $footer_navigation = $this->getNavigation('NAV_67f60be43df8d', $this->lang_id);
- // 输出底部导航
- View::assign('footer_navigation', $footer_navigation);
- }
-
/**
* 专题 - 电力品线首页
*/
diff --git a/app/index/view/pc/public/header.html b/app/index/view/pc/public/header.html
index 8608cd51..934ff36f 100644
--- a/app/index/view/pc/public/header.html
+++ b/app/index/view/pc/public/header.html
@@ -125,6 +125,43 @@
+