From 46bd32a991d8c74ba9e0a623b9c67853443ce6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Fri, 5 Sep 2025 16:36:41 +0800 Subject: [PATCH] fix --- application/controllers/information.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 2fea3022..3e3b6d70 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -4261,8 +4261,9 @@ class Information extends CI_Controller { if ($meta_ct_page_type == "tourdetail") { //线路表单,左右结构,用标签来做 $dataform['device'] = $device; $template_form_tourqi = $this->load->view($template_path . '-form-tourqi-new', $dataform, true); - $ic_content = str_replace('', $template_form_tourqi, $ic_content); - $data["CUSTOMCONENT"] = $ic_content; + $ic_content_pc = $ic_content; //需要一个变量来过渡,不然$ic_content改变以后,PC端就没有标签了 + $ic_content_pc = str_replace('', $template_form_tourqi, $ic_content_pc); + $data["CUSTOMCONENT"] = $ic_content_pc; } //两种设备分别调用两种模板 ,静态化 @@ -5201,8 +5202,9 @@ class Information extends CI_Controller { if ($meta_ct_page_type == "tourdetail") { //线路表单,左右结构,用标签来做 $dataform['device'] = $device; $template_form_tourqi = $this->load->view($template_path . '-form-tourqi-new', $dataform, true); - $ic_content = str_replace('', $template_form_tourqi, $ic_content); - $data["CUSTOMCONENT"] = $ic_content; + $ic_content_pc = $ic_content; //需要一个变量来过渡,不然$ic_content改变以后,PC端就没有标签了 + $ic_content_pc = str_replace('', $template_form_tourqi, $ic_content_pc); + $data["CUSTOMCONENT"] = $ic_content_pc; } //两种设备分别调用两种模板 ,静态化 @@ -5575,8 +5577,9 @@ class Information extends CI_Controller { $dataform["InfoData"] = $InfoData; //传递信息平台数据 $template_form_tourqi = $this->load->view($template_path . '-form-tourqi', $dataform, true); - $ic_content = str_replace('', $template_form_tourqi, $ic_content); - $data["CUSTOMCONENT"] = $ic_content; + $ic_content_pc = $ic_content; //需要一个变量来过渡,不然$ic_content改变以后,PC端就没有标签了 + $ic_content_pc = str_replace('', $template_form_tourqi, $ic_content_pc); + $data["CUSTOMCONENT"] = $ic_content_pc; }