diff --git a/application/controllers/information.php b/application/controllers/information.php index 0e076e0b..2fea3022 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -3396,9 +3396,10 @@ class Information extends CI_Controller { /**替换左右结构的线路表单标签 2024-7-4*/ if (strpos($ic_content, '') !== false) { $template_form_tourqi = $this->load->view($template_path . '-form-tourqi-new', $dataform, true); - $ic_content = str_replace('', $template_form_tourqi, $ic_content); + $ic_content_pc = $ic_content; //需要一个变量来过渡,不然$ic_content改变以后,PC端就没有标签了 + $ic_content_pc = str_replace('', $template_form_tourqi, $ic_content_pc); $data["showFormTourQi"] = false; //如果有标签就不显示外面的表单,因为$ic_content会在第一次就替换掉标签,所以第二次pc端这里不执行。 - $data["CUSTOMCONENT"] = $ic_content; + $data["CUSTOMCONENT"] = $ic_content_pc; } }